Anti-Idle script not working Topic is solved

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
helloguys
Posts: 5
Joined: 13 May 2018, 09:32

Anti-Idle script not working

Post by helloguys » 20 Apr 2021, 08:47

I'm trying to keep the screensaver from running by running a script from https://autohotkey.com/board/topic/93916-stay-awake/?p=595608

Code: Select all

SetTimer, MoveMouse, 60000 ; Run MoveMouse every 1 minute

MoveMouse:
    MouseMove, 1, 0, 1, R  ;Move the mouse one pixel to the right
    MouseMove, -1, 0, 1, R ;Move the mouse back one pixel
return
I'm using AutoHotKey 1.1.33.06, 64bit version(AutoHotkeyU64.exe). When trying to run the above script, it flashes then disappears (exits). Was there anything wrong with this script? Thank you!
Last edited by helloguys on 20 Apr 2021, 18:30, edited 1 time in total.

gregster
Posts: 9114
Joined: 30 Sep 2013, 06:48

Re: Anti-Idle script not working  Topic is solved

Post by gregster » 20 Apr 2021, 08:48

add as a first line:

Code: Select all

#persistent

helloguys
Posts: 5
Joined: 13 May 2018, 09:32

Re: Anti-Idle script not working

Post by helloguys » 21 Apr 2021, 08:25

Thank you very much!

Post Reply

Return to “Ask for Help (v1)”