help with mouse move script
help with mouse move script
I would like a script where if shift+\ is pressed, then it will capture the current mouse position. Then, go back to the captured mouse position if shift+\ is pressed again. What I think might work is a hotkey that if the shift+\ is pressed, then capture the mouse postion, then, use keywait until key is pressed again then do another command. Not sure if it will work though
Re: help with mouse move script
Code: Select all
+\::
CoordMode, Mouse
If (x = "") {
MouseGetPos, x, y
SoundBeep, 1500
} Else {
SoundBeep, 1000
MouseMove, x, y
x =
}
Return