#6 pyHook on Win98; no events

open
nobody
None
5
2006-02-09
2006-02-09
No

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

Discussion


Log in to post a comment.