[Tutor] Get keyboard input while other program is in focus?

learner404 learner404 at gmail.com
Mon Oct 16 20:18:32 CEST 2006


On 16/10/06, Jack <aguffabuff at hotmail.com> wrote:
>
>  What commands can I use to have the program know a certain key has been
> pressed while another program is in focus?
>

Hello,

On windows I use the pyHook module (simple to use and works fine) :
http://www.cs.unc.edu/~parente/tech/tr08.shtml

On Linux its more tricky but you can find some informations here:
http://groups.google.com/group/comp.lang.python/browse_thread/thread/2d7e3791381bdeb5/a03d438f64ec5ac8#a03d438f64ec5ac8

cheers

thanks,
>     Jack
>
> _______________________________________________
> Tutor maillist  -  Tutor at python.org
> http://mail.python.org/mailman/listinfo/tutor
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.python.org/pipermail/tutor/attachments/20061016/5dfaa090/attachment.htm 


More information about the Tutor mailing list