Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options

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 drinking their drinks and smoking their pipes about the Monastery: (10)
As of 2016-06-30 19:43 GMT
Find Nodes?
    Voting Booth?
    My preferred method of making French fries (chips) is in a ...

    Results (403 votes). Check out past polls.