I wrote this with pyHook, which prints ascii codes as
expected on Win2K:
import pyHook
import time
import pythoncom
modules ={}
def OnKeyboardEvent(event):
print event.Ascii
def main():
hm = pyHook.HookManager()
hm.KeyDown = OnKeyboardEvent
hm.HookKeyboard()
while True:
pythoncom.PumpMessages()
if __name__ == '__main__':
main()
It silently does nothing on Win98...
What is needed?
Thanks,
Ray