Random Area Around MouseGetPos?
Posted: 24 Feb 2018, 10:10
I'm looking for something to record mouse position and randomize that area into a variable.
I'm not sure if I'm describing that properly, as I couldn't find anything that suited my needs looking for variations of that thought.
Anyway, this code doesn't work but could anyone help me morph that into something that works?
I'm not sure if I'm describing that properly, as I couldn't find anything that suited my needs looking for variations of that thought.
Anyway, this code doesn't work but could anyone help me morph that into something that works?
Code: Select all
MouseGetPos, ax, ay
Random, axRandom, (%ax%-5), (%ax%+5)
Random, ayRandom, (%ay%-5), (%ay%+5)
MouseMove, %axRandom%, %ayRandom%, 1