I'm using a mouseover script (found it in the forum and added a textbox) so that my laptop doesn't go into sleeping mode too fast (30 seconds and I'm alone in my home office).
I'm using this script that I activate by shortcut and it deactivates by click on the textbox. Is there a way to implement a toggle function, so that I don't have to search for the little textbox on my big screen? Currently, I don't know how to do that
Code: Select all
#NumpadMult:: ;Activate Screensaver delay
IfWinExist, %id%
{
WinActivate, %id%
winWaitActive, %id%
send, {return}
}
Else
SetTimer, MM, 3000
MsgBox, 0,, Back to work?
IfMsgBox OK
SetTimer, MM, Off
return
MM:
If direction := !direction
MouseMove, 0, 200,, R
else
MouseMove, 0, -200,, R
return