Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- I do not have this problem when I monitor KeyDown but I do have it when I monitor KeyUp. I'm on Vista x64.
- Python2.6.2\lib\site-packages\pyHook\HookManager.py:350: RuntimeWarning: tp_compare didn't return -1 or -2 for exception
- func = self.keyboard_funcs.get(msg)
- Traceback (most recent call last):
- File "...\Python2.6.2\lib\site-packages\pyHook\HookManager.py", line 3
- 50, in KeyboardSwitch
- func = self.keyboard_funcs.get(msg)
- TypeError: an integer is required
- Link
- Matt Shaw
- Matt Shaw
- 2010-08-08
- msg is definitely an int according to type() but it's still throwing this error. My hunch is that the int is 64-bit, but this is a bit over my head. My hack was to change line 349 in HookManager:
- func = self.keyboard_funcs.get(msg)
- to:
- func = self.keyboard_funcs.get( int(str(msg)) )
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement