Skip to content

Commit

Permalink
Merge ec38eb1 into 177be51
Browse files Browse the repository at this point in the history
  • Loading branch information
maffe committed Jan 26, 2021
2 parents 177be51 + ec38eb1 commit 4a2a2ee
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions plugins/System/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,8 @@ def GetDeviceId_(*args, **kwargs):
def MonitorState(state):
if state == 'ON':
ctypes.windll.user32.mouse_event(MOUSEEVENTF_MOVE, 0, 1, 0, 0)
time.sleep(0.04)
ctypes.windll.user32.mouse_event(MOUSEEVENTF_MOVE, 0, -1, 0, 0)
else:
win32gui.SendMessage(
win32con.HWND_BROADCAST,
Expand Down

0 comments on commit 4a2a2ee

Please sign in to comment.