Re: Window control program help needed Jan. 24, 2006
- From: "edgrsprj" <edgrsprj@xxxxxxxxxxxxx>
- Date: Tue, 24 Jan 2006 22:33:34 GMT
"A. Sinan Unur" <1usa@xxxxxxxxxxxxxxxxxxx> wrote in message
news:Xns975583A43D442asu1cornelledu@xxxxxxxxxxxx
> > 1. I would like Perl to send characters etc. to the Windows operating
> > system as if the instructions were being entered from the keyboard.
>
> http://search.cpan.org/search?query=sendkeys
>
Thanks for the information.
I was able to download Win32-GuiTest from that Web site and somehow got it
installed without really understanding what I was doing. And its SendKeys()
command does actually do what is needed.
Goal # 2 has to do with redirecting input from the keyboard.
If Perl is the active window then
$word = readline STDIN;
will pull in a character or word from the keyboard after you hit the ENTER
key.
However if a text file for example is the active window and you enter
anything on the keyboard then the text will print directly to the screen in
the text file window.
There is probably some Perl routine which can direct keyboard input to be
sent to a Perl program even though a text file window is the one you are
looking at. So, if something were typed in, nothing would appear on the
screen unless the Perl program used the SendKeys() command to print the text
to the screen.
.
- Follow-Ups:
- Thanks for the comments Jan. 25, 2006
- From: edgrsprj
- Re: Window control program help needed Jan. 24, 2006
- From: A. Sinan Unur
- Re: Window control program help needed Jan. 24, 2006
- From: Jim Gibson
- Re: Window control program help needed Jan. 24, 2006
- From: Dr.Ruud
- Thanks for the comments Jan. 25, 2006
- References:
- Window control program help needed Jan. 24, 2006
- From: edgrsprj
- Re: Window control program help needed Jan. 24, 2006
- From: A. Sinan Unur
- Window control program help needed Jan. 24, 2006
- Prev by Date: Re: File::Find::Rule for files younger than 24 hours
- Next by Date: Re: Calling C++ from Perl and vice versa
- Previous by thread: Re: Window control program help needed Jan. 24, 2006
- Next by thread: Re: Window control program help needed Jan. 24, 2006
- Index(es):
Relevant Pages
|
|