Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ; Toggle move mouse to center of screen
- F13::
- lastX := curX, lastY := curY
- MouseGetPos, curX, curY
- cenX := A_ScreenWidth/2
- cenY := A_ScreenHeight/2
- if (curX == cenX and curY == cenY)
- {
- tarX := lastX, tarY := lastY
- }
- else
- {
- tarX := cenX, tarY := cenY
- }
- MouseMove, tarX, tarY
- return
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement