in reply to Re^5: Creating keybinds GLOBALY!
in thread Creating keybinds GLOBALY!
Actually, it's totally possible to do this under windows. The relevant API is SetSystemWindowHookEx.
Basically, all keyboard (and mouse) input goes through a system queue first before being distributed to individual process and thread queues. The above API allows you to add a hook to this queue and have your application be called back everytime any input is received by the system queue.
However, from experience it is extremely difficult to get right. It also involves providing a callback address (which from Perl would need to be a perl funcition), and I've never managed to get that to work using Win32::API, hence my not recommending it.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^7: Creating keybinds GLOBALY!
by 5mi11er (Deacon) on Aug 05, 2005 at 19:55 UTC |