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.
"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
| [reply] |