Click here to get back home

Control actions of DOS in perl

 HomeNewsGroups | Search | About
 comp.lang.perl.misc    Post an article   get this group's latest topics as an RSS feed add this group's latest topics to your My MSN content add this group's latest topics to your My Yahoo content
Subject Author Date
Control actions of DOS in perl rajendra 04-01-2008
Posted by rajendra on April 1, 2008, 9:58 am
Please log in for more thread options
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



Posted by smallpond on April 1, 2008, 2:04 pm
Please log in for more thread options
> 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.

Posted by Robbie Hatley on April 1, 2008, 10:49 pm
Please log in for more thread options

"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



Similar ThreadsPosted
start some actions with Perl without Cron? August 21, 2004, 1:33 am
Multiple submit actions. December 28, 2004, 4:57 pm
control vICQ via Perl September 13, 2007, 6:23 am
Using a dotNet dll from Perl to control Word September 14, 2005, 11:57 am
Control Modelsim simulation from Perl Script October 25, 2006, 7:40 am
Perl ActiveX: A VBA string passed to my control is treated as a doubel-quoted string October 9, 2006, 4:03 pm
process control September 28, 2004, 12:12 am
How to control version of OS September 27, 2005, 1:52 pm
How to control PDF printer July 29, 2006, 8:11 am
having trouble with control structures December 10, 2004, 10:07 pm

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap