[Gambas-user] Please assist me !!!

Rob Kudla sourceforge-raindog2 at ...94...
Tue Oct 16 20:13:20 CEST 2012


On 10/16/2012 09:22 AM, Gavin Reeve Frost wrote:
> How could I capture the key press within Firefox or other windows and send
> that back to my form.

It's tricky to do that sort of thing, and deliberately so, because if you can monitor keystrokes in other applications, you can log passwords and send them to malicious parties. You'll probably have to either register F12 as a global keystroke in whatever window manager the user is using (much easier if you're doing a kiosk type of application and have control over the whole PC) or use external Xlib calls like the ones in this program: https://gist.github.com/846474

If you do the Xlib thing and distribute your program to the general public, don't be surprised if it gets detected as malware by some heuristic trojan scanner.

Rob





More information about the User mailing list