Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"

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


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

Replies are listed 'Best First'.
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 ;-)


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


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

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (1)
As of 2022-10-04 00:37 GMT
Find Nodes?
    Voting Booth?
    My preferred way to holiday/vacation is:

    Results (15 votes). Check out past polls.