Skip to content

Instantly share code, notes, and snippets.

@jmc734
Created October 30, 2014 10:15
Show Gist options
  • Save jmc734/f0b068f2e151970b4e01 to your computer and use it in GitHub Desktop.
Save jmc734/f0b068f2e151970b4e01 to your computer and use it in GitHub Desktop.
AutoHotkey script to randomly move a move a mouse within a set of bounds
N = 500
W = 450
H = 195
R = 5
offsetX = 15
offsetY = 60
CoordMode, Mouse, Screen
Loop, %N%
{
Random, x, 1, %W%
Random, y, 1, %H%
Random, s, 1, %R%
x := x+offsetX
y := y+offsetY
MouseMove, %x%, %y%, %s%
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment