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'.