Reverse of SendKeys??

Ravi Teja webraviteja at gmail.com
Thu Dec 28 20:31:24 EST 2006


Scripter47 wrote:
> Hey!
>
> I know there is a module named SendKeys.
> SendKeys module it can type strings as you where typing it, on the keyboard.
> But is there a module that does the reverse. A module that gets
> _anything_ what the keyboard writes.
> For example. If i type "hey" on my keyboard. Will the program get the
> string even if the program not is on focus..

PyHook is what you need.
http://www.cs.unc.edu/~parente/tech/tr08.shtml
It can signal for both global keyboard as well as mouse events.




More information about the Python-list mailing list