Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Perl > Perl Misc > Control actions of DOS in perl

Reply
Thread Tools

Control actions of DOS in perl

 
 
rajendra
Guest
Posts: n/a
 
      04-01-2008
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


 
Reply With Quote
 
 
 
 
smallpond
Guest
Posts: n/a
 
      04-01-2008
On Apr 1, 9:58 am, "rajendra" <rajendra.pra...@in.bosch.com> 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.
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
IOS DoS defense causes DoS to itself:) Igor Mamuziæ Cisco 2 05-19-2006 11:59 PM
start some actions with Perl without Cron? PHP2 Perl Misc 9 08-27-2004 05:39 PM
Unable to run MS-DOS in Windows and DOS properties tabs missing Don Computer Support 5 02-11-2004 07:20 PM
my own perl "dos->unix"/"unix->dos" Robert Wallace Perl Misc 7 01-21-2004 11:28 PM
Executing DOS (yes, DOS) program from within Python? Ben Fairbank Python 2 10-07-2003 08:51 AM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57