I've seen programs that can monitor your keystrokes and mouse clicks, etc, in order to replay them against the operating system. Does perl have the ability to do something like that?
The purpose of my search is that I want to automate certain responsibilities which necessitate using windows based programs, but not being a "Windows" programmer, I have no clue on how to do this. I don't know if it's possible, or if perl can do the trick. But I'm hoping someone else does.
Command line functionality is not an option as many of the programs are gui only.
For an example, lets say I wanted to write a script that would open quickmail on my system, click the new message button, type in some stuff in the window, and then click send...
John,
Hi there. Yes, it can be done. There is a brief mention of this in chapter four of the O'Reilly Perl for System Administration book by David Blank-Edelman.
There are at least two ways to approach it, one uses Win32:Setupsup available from http://jenda.krynicky.cz/perl/ and the other is to use WMI.
Win32::Setupsup may do all that you need, you can read the contents of windows, feed keystrokes, etc. I'd try this first.
WMI will require digging through the MS docs, start at: http://www.msdn.microsoft.com/developer/sdk and search for WMI SDK You should probably look at OLE as well if you use WMI.
The setupsup route will be faster, but you may run into something that will require WMI, so its worth a look to get some background.
Also, check out the activestate perl mailing lists. Lots more windows folks there than here.
Mike
_______________________________________________ Boston-pm mailing list [email protected] http://mail.pm.org/mailman/listinfo/boston-pm

