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. -- http://mail.python.org/mailman/listinfo/python-list