Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses

On-Cursor-Move Event

by palkia (Scribe)
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 the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (8)
As of 2016-10-26 12:08 GMT
Find Nodes?
    Voting Booth?
    How many different varieties (color, size, etc) of socks do you have in your sock drawer?

    Results (340 votes). Check out past polls.