On Mon, 21 Mar 2005 08:04:31 -0600 (CST), [EMAIL PROTECTED]
<[EMAIL PROTECTED]> wrote:
> 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?

Yes.

> 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.

Danger alert!  Danger alert!

What you'll find is that you can write the script, and it will mostly work,
but there will be constant issues.  For instance someone will walk in
to look at the batch job, will jiggle the mouse, then everything breaks.

> Command line functionality is not an option as many of the programs are
> gui only.

Many gui programs can be manipulated through Win32::OLE.

Many gui programs have a command-line replacement, or can
be rewritten in Perl.

Both approaches will be far more reliable than trying to drive a
gui programmatically.

> 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...

There are Perl modules that allow you to send mail directly.
Using them will be far simpler and more reliable.  Trust me on
this.

> Am I off in la-la land, or can this be done, and be done with perl?

It can.  Been there, done that, have the scars.

Which is why I'm telling you to only use that as a method of last
resort.

Cheers,
Ben
 
_______________________________________________
Boston-pm mailing list
[email protected]
http://mail.pm.org/mailman/listinfo/boston-pm

Reply via email to