Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
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?
[ovedpo15]: consider the following format of strings: some_data-doesn't- matter,value. how I get the value with regex? it should be after the last comma (last string)
[Corion]: Text::CSV_XS for all your CSV file parsing needs. Other than that, what problems do you have with perlre, and capturing everything after the comma? Also, index and substr would also work.

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (7)
As of 2018-05-27 08:48 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Notices?