Mouse Move In Python Video Game
This code causes my screen to go black I am using PIL imagegrab to process images whenever i make a call to move the mouse using the following code the screen goes black: def Move
Solution 1:
I also had that problem and it took WAY to long to figure it out, anyway for me the fix was to change in the line:
ii_.mi = MouseInput(x, y, 0, 0x0001 | 0x8000, 1, ctypes.pointer(extra))
the fifth parameter (i.e. "1") to 0:
ii_.mi = MouseInput(x, y, 0, 0x0001 | 0x8000, 0, ctypes.pointer(extra))
hope this helps.
Post a Comment for "Mouse Move In Python Video Game"