Site Tools


autoit:codes:avoidlockscreen

Anti-Lockscreen

#cs ----------------------------------------------------------------------------
 
 AutoIt Version: 3.3.14.2
 Author:         Lunetikk
 
 Script Function:
	Move mouse to avoid windows lockscreen
 
#ce ----------------------------------------------------------------------------
 
    dim $mc1
 
    HotKeySet("{END}","close")
 
    while 1
        sleep(60000)
	$mc1 = MouseGetPos()
	sleep(50)
	$mc1[0] += 1
	sleep(50)
	MouseMove($mc1[0], $mc1[1], 0)
	sleep(50)
	$mc1[0] -= 1
	sleep(50)
	MouseMove($mc1[0], $mc1[1], 0)
    WEnd
 
    Func close ()
    	Exit 0
    EndFunc

autoit/codes/avoidlockscreen.txt · Last modified: 2020/05/20 16:50 by lunetikk