Hyper Mouse
_A user on the help forum wanted his mouse to move continuously. This script uses two Random commands to generate X and Y coordinates for the mouse.
#maxthreadsperhotkey 2 ;*1 f1:: { toggle:=!toggle ;*2 while, toggle ;*3 { random, x, 1, %a_screenwidth% ;*4 random, y, 1, %a_screenheight% ;*5 mousemove, %x%, %y%, 80 ;*6 } } return end::exitapp ;*7 /* 1 Allows the hotkey to interrupt itself for a toggle effect. 2 Toggle switch. 3 The loop runs while the switch is on. 4 Lets the mouse move over the entire screen width. 5 Lets the mouse move over the entire screen height. 6 Moves mouse to random screen coordinates. speed can be set, 0 = fast, 100 = slow. 7 Emergency shutdown. */ |
_It is set in a loop with a toggle, so while active the mouse is almost continuously moving to random coordinates on the screen.