Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Win32 send keystrokes to webapp

by water (Deacon)
on Apr 01, 2006 at 15:08 UTC ( #540641=perlquestion: print w/replies, xml ) Need Help??
water has asked for the wisdom of the Perl Monks concerning the following question:

Hi --

Win32::Clipboard seems pretty close to magic.

Is there a similar module to send keystrokes (events?) to a win32 app, w/o having to transit thru the clipboard?

I am envisioning a TK app for training that sits on the screen next to a browser, coaching the user thru the browser app, and helping the user by pumping text into appropriate fields in the webapp when (tk) instructed to do so.

Any suggestions for this integration, besides samie?

water

Replies are listed 'Best First'.
Re: Win32 send keystrokes to webapp
by Corion (Pope) on Apr 01, 2006 at 15:15 UTC

    I used Win32::GUITest for controlling other applications. Of course, you're likely better off by controlling your web application through Javascript, but that may or may not be available.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://540641]
Approved by Corion
help
Chatterbox?
[Corion]: choroboa: A good choice! ;)
[Corion]: I still somewhat wonder if it were worthwhile to replace init / systemd by make with a simple? Makefile listing the dependencies ...
[Discipulus]: i have a different opinion: automation is always worth: first i can use Perl (and this is good), then later you can reuse parts to automate others tasks. My $boss everytime say:'how much time you spend doing this?' So generally i present a perl solution
[Corion]: Discipulus: Yes, but the chart gives some limits on whether it's really worth spending time for saving your time. If you gain enjoyment, automating is still great, but it doesn't save time ;)
[Discipulus]: Corion are you would able to realize such thing? O_O

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (7)
As of 2017-07-27 09:24 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    I came, I saw, I ...
























    Results (408 votes). Check out past polls.