Re: Window control program help needed Jan. 24, 2006




"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.


.



Relevant Pages

  • Re: how to make other application to recive my messages as if it is a
    ... To send "keyboard" input to a specific window, ... characters sent via WM_CHAR, and that's how I get info from SIPs. ... Boston, MA 02118 ...
    (microsoft.public.windowsce.embedded.vc)
  • Re: Window control program help needed Jan. 24, 2006
    ... I would like Perl to send characters etc. to the Windows ... > Goal # 2 has to do with redirecting input from the keyboard. ... > However if a text file for example is the active window and you enter ...
    (comp.lang.perl.misc)
  • Re: Bringing focus to the viewed window
    ... Which window is that? ... mouse from the keyboard, the keyboard shortcut has already been done. ... Not only is the decision not boring, the user actually experiences ...
    (comp.sys.mac.apps)
  • Re: Get Windows Task-Names?!
    ... > Purl Gurl wrote: ... -12189 MSGSRV32.EXE work window name HighCriteria TotalRecorder Mrqx1FQGyj4c1kycrB ... "Power Meter" although this meter is not running. ... which is highly adaptable to Perl. ...
    (comp.lang.perl.misc)
  • Re: OnKeyUp getting lost.
    ... keyup hadn't disappeared. ... >> on this problem from you guys who commonly write custom controls. ... >> This all works fine, if the user, uses all taps or all keyboard. ... >> the second window) via the keyboard accelerator, ...
    (microsoft.public.dotnet.framework.compactframework)