On computers there is an obligatory screen lock, and I have heavy miscalculations on them, and so it’s rather difficult to get them out of the splash screen mode and log in. load of 100%. Bypassing the system I tried using the python to move the mouse once every 100 seconds, the mouse then moves, but the screen lock still works.
Is it possible to circumvent and deceive Locke?
import time import ctypes class POINT(ctypes.Structure): _fields_ = [("x", ctypes.c_ulong), ("y", ctypes.c_ulong)] def click(): def queryMousePosition_X(): pt = POINT() ctypes.windll.user32.GetCursorPos(ctypes.byref(pt)) return pt.x def queryMousePosition_Y(): pt = POINT() ctypes.windll.user32.GetCursorPos(ctypes.byref(pt)) return pt.y x = (queryMousePosition_X()- 50) y = (queryMousePosition_Y() - 50) ctypes.windll.user32.SetCursorPos(x, y) def check_time(): while True: click() time.sleep(100) check_time()