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


------------------------------------------------------------------------------
Don't let slow site performance ruin your business. Deploy New Relic APM
Deploy New Relic app performance management and know exactly
what is happening inside your Ruby, Python, PHP, Java, and .NET app
Try New Relic at no cost today and get our sweet Data Nerd shirt too!
http://p.sf.net/sfu/newrelic-dev2dev
_______________________________________________
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user

Reply via email to