Control actions of DOS in perl

R

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
 
S

smallpond

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,772
Messages
2,569,593
Members
45,111
Latest member
KetoBurn
Top