Skip to content

Commit

Permalink
Move cursor back to avoid accumulated movement
Browse files Browse the repository at this point in the history
Fixes #410
  • Loading branch information
maffe committed Aug 13, 2020
1 parent 177be51 commit b37d66b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions plugins/System/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,7 @@ def GetDeviceId_(*args, **kwargs):
def MonitorState(state):
if state == 'ON':
ctypes.windll.user32.mouse_event(MOUSEEVENTF_MOVE, 0, 1, 0, 0)
ctypes.windll.user32.mouse_event(MOUSEEVENTF_MOVE, 0, -1, 0, 0)
else:
win32gui.SendMessage(
win32con.HWND_BROADCAST,
Expand Down

0 comments on commit b37d66b

Please sign in to comment.