Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re^3: reinitiating a exe program

by zork42 (Monk)
on Jun 22, 2013 at 08:39 UTC ( #1040255=note: print w/ replies, xml ) Need Help??


in reply to Re^2: reinitiating a exe program
in thread reinitiating a exe program

It might be worth ignoring all of the following and instead concentrating on marto's post on using Win32::GuiTest !

I've used Win32::GuiTest and I know it can do the sort of things you want. But the following might be of interest so I've posted it.

================================================================

I'm afraid I have not played with IPC, also Windows does not implement some functions.

If you run your script from the command line, do you still need to press (Tab+Enter) and then (Ctrl+R)?

Before you try anything complicated you might want to try piping stuff in to and out of the script on the command line to see what you can achieve with dos's < > and |.
eg can you pipe the equivalent of (Tab+Enter) and then (Ctrl+R) into the script somehow?

If it turns out that you need to send (Tab+Enter) and then (Ctrl+R) using Win32::GuiTest then it still might be worth monitoring the output of the script to see what it's done, and when to send the keys. (But Win32::GuiTest can do useful related stuff)

These might be useful:
  • system()
  • Backquoted string
  • open() command as filehandle for output
  • open() command as filehandle for input

After that it gets very complicated, and all I can really offer is a bunch of things to read. And as I said some of this stuff is not implemented under Windows.


Comment on Re^3: reinitiating a exe program

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1040255]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others meditating upon the Monastery: (18)
As of 2014-09-22 14:27 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (195 votes), past polls