Control actions of DOS in perl
am 01.04.2008 15:58:55 von Rajendra
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
Re: Control actions of DOS in perl
am 01.04.2008 20:04:19 von smallpond
On Apr 1, 9:58 am, "rajendra" wrote:
> 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
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.
Re: Control actions of DOS in perl
am 02.04.2008 04:49:53 von Robbie Hatley
"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