Pyhook stops capturing key events after 6 presses
问题 I wrote a script to move the mouse around when a key is pressed using pyHook. The problem is that after 6 key press events the script stops picking up key presses and needs to be ended from task manager. I am using python 2.7 on a Windows 7 machine. I have not found anyone else with an answer to a similar problem. The code is designed to hook the mouse, and then once it is clicked move the cursor, unhook the mouse and hook the keyboard. There, the keyboard hook only works for 6 events. If I