Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Capturing mouse and keyboard events

by BigJoe (Curate)
on Oct 10, 2002 at 15:56 UTC ( #204209=perlquestion: print w/ replies, xml ) Need Help??
BigJoe has asked for the wisdom of the Perl Monks concerning the following question:

The node "Capturing Keystrokes" reminded me of a project I have sitting on my desk (under piles of paper). I need to create a utility to capture mouse and keyboard movements to create a "Script" for an application called Xautomation. This tool automates testing of GUI Applications.

I have researched doing this in C but I still haven't found a solid way of doing this. I was working with some Xfree86 internals attempting to get something but without much success. My goal is to be able to run this "Macro recording" application that will create a window allowing management of the macros. Does any one know of a tool set that will allow me to log the different events happening on the GUI even though my gui isn't covering the screen? I have read that you can only read the event info if it is in your "window." I also want the events to pass through to the expected window and not be lost in my application. Does any one know if this can even be done? Thanks

--BigJoe

Learn patience, you must.
Young PerlMonk, craves Not these things.
Use the source Luke.

Comment on Capturing mouse and keyboard events
Re: Capturing mouse and keyboard events
by JaWi (Hermit) on Oct 10, 2002 at 16:09 UTC
    You might want to take a look at XMacro. It has most of your described functionality already, though not in Perl. Well, can't have everything ;-)

    Cheerio,

    -- JaWi

    "A chicken is an egg's way of producing more eggs."

      Cool. Maybe I can take this and make polish it up. Maybe through a GUI on it.

      --BigJoe

      Learn patience, you must.
      Young PerlMonk, craves Not these things.
      Use the source Luke.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://204209]
Approved by JaWi
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (6)
As of 2014-12-28 22:46 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (183 votes), past polls