Menu

#8 Pyhook crashes when it tries to interpret the window name as ASCII

v1.0 (example)
open
nobody
None
5
2020-02-28
2020-02-28
No

Context: I am developing a mouse and keyboard listener with PyHook.

Python interpreter: 3.7

Problem: When I move the mouse over the header Google Chrome browser and the current website is Spotify, I am getting the following error:

TypeError: MouseSwitch() missing 8 required positional arguments: 'msg', 'x', 'y', 'data', 'flags', 'time', 'hwnd', and 'window_name'.

Discussion


Log in to post a comment.