Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number

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
Node Status?
node history
Node Type: perlquestion [id://204209]
Approved by JaWi
[choroba]: yeah, sounds like one of the strings is not flagged as UTF-8
[choroba]: which usually means its input wasn't handled correctly
[Corion]: choroba: Yeah, I think that would be the good solution
[LanX]: I suspect the first string which comes from the DB ...
[LanX]: ... but this part is already in production for a year now
[Corion]: LanX: The "good" approach here would be to use the appropriate DBI parameters to make the driver decode strings properly. But that will have a ripple-on effect of messing up all the places where manual decoding happens ;)
[LanX]: which means albeit being broken UTF8 it'll be handled correctly
[LanX]: and the problem only occurs since we changed the emails to base64
[LanX]: my main problem will be to cnvince my colleagues that our productive code is broken oO ... so in the end I will just make a workaround :-/
LanX hates UTF8 for causing knots in his brain and stomach

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (9)
As of 2017-01-16 14:00 GMT
Find Nodes?
    Voting Booth?
    Do you watch meteor showers?

    Results (150 votes). Check out past polls.