simple script save/restore mouse potions with hot key inside a loop when i press F8 to save the mouse position and restore it after 3sec at which location i pressed f8
what i want is to delete the previous saved mouse position after successfully restored , so it doesn't restore the mouse position to same location over and over in the next time inside the loop if i didn't want to press f8 again
Code: Select all
~f8::
MouseGetPos, OrigX, OrigY
sleep 3000 ;3 sec
SetPos:
If GetKeyState("f8")
SetTimer, SetPos, -5
Else
Click, %OrigX% %OrigY% Left 0
Return