Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery

On-Cursor-Move Event

by palkia (Monk)
on May 24, 2012 at 21:09 UTC ( #972321=perlquestion: print w/replies, xml ) Need Help??
palkia has asked for the wisdom of the Perl Monks concerning the following question:

Hi everyone
I'm looking for a way to tell when the cursor moved (for a similar purpose as in screen savers),
but without relaying on non-core modules (conversion to exe limitations).
Your thoughts ?

Replies are listed 'Best First'.
Re: On-Cursor-Move Event
by zentara (Archbishop) on May 24, 2012 at 21:31 UTC
    For the keypress Term::ReadKey is core. For a mouse movement, you might need to read from /dev/input/mouse itself, and monitor for changes. See mouse specs

    I'm not really a human, but I play one on earth.
    Old Perl Programmer Haiku ................... flash japh
Re: On-Cursor-Move Event
by Anonymous Monk on May 24, 2012 at 22:09 UTC
    Depends on your target platform. You'll get better help if you fill in the blanks.
      If you're referring to my target operating system,
      it should work for win-xp and (win-2000 or win-7).
      Yes only one (2000 or 7) not sure which (I will know which in a week, but I don't want to wait with the code writing until than).
      Once I know I'll make the "small" change (if required).

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://972321]
Approved by lidden
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (3)
As of 2018-01-21 01:40 GMT
Find Nodes?
    Voting Booth?
    How did you see in the new year?

    Results (227 votes). Check out past polls.