Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Control actions of DOS in perl

0 views
Skip to first unread message

rajendra

unread,
Apr 1, 2008, 9:58:55 AM4/1/08
to
Hello All,

I would like to know is it possible to execute control operations like
Ctrl-C(to abort an action), Ctrl-Q(to mark an email as read) etc in a perl
script.


With Rgds,
Raj


smallpond

unread,
Apr 1, 2008, 2:04:19 PM4/1/08
to

It sounds like you want to stuff characters into the keyboard buffer
and
have them interpreted as though they were typed by the user, like
Sendkeys
in VB.

Win32::GuiTest has a SendKeys interface that may let you do some of
these
things, but I haven't tried it.

If you know what action you want, you can do it another way. You can
use
the kill function to do the equivalent of Ctrl-C for example.

Robbie Hatley

unread,
Apr 1, 2008, 10:49:53 PM4/1/08
to

"rajendra" wrote:

> I would like to know is it possible to execute control operations like
> Ctrl-C(to abort an action), Ctrl-Q(to mark an email as read) etc in a perl
> script.

Dunno if Perl can do that or not, but when I need to automate stuff in
Windows, I use AutoIt3: http://www.autoitscript.com/autoit3/
That allows you to write and run scripts that can move and click the
mouse any place you like, depress any keys you want, etc.

--
Cheers,
Robbie Hatley
lonewolf aatt well dott com
www dott well dott com slant user slant lonewolf slant


0 new messages