in reply to Reading root-level (unfocused) mouse and keyboard input

The only way (that I'm aware of), of intercepting global events (keyboard mouse ect.) is to install a System level Hook using SetWindowsHookEx.

Whilst theoretically possible to do this from Perl, it is distinctly non-trivial as hook procedures need to be callback routines located in a .dll. You really need to drop to C or assembler for this.


Examine what is said, not who speaks.        The end of an era!
"But you should never overestimate the ingenuity of the sceptics to come up with a counter-argument." -Myles Allen
"Think for yourself!" - Abigail        "Time is a poor substitute for thought"--theorbtwo         "Efficiency is intelligent laziness." -David Dunham
"Memory, processor, disk in that order on the hardware side. Algorithm, algorithm, algorithm on the code side." - tachyon
  • Comment on Re: Reading root-level (unfocused) mouse and keyboard input