(https://www.autohotkey.com/docs/commands/MouseMove.htm)Speed is ignored for SendInput/Play modes; they move the mouse instantaneously
I solved this by using "SendMode Event" but this brings a new problem. Using SendMove Event results in the mouse movements not being equal, so the mouse doesn't return it its original position (hence the negative movement and then the same magnitude positive movement). Is it possible to make the mouse move smoothly using SendMode Input or make the mouse move the same magnitude up then down?
Code: Select all
#NoEnv
; #Warn
SetWorkingDir %A_ScriptDir%
SendMode Event
^`::
Random, ranup, 1, 10
MouseMove, 0, -%ranup%, 100, R
sleep, 1000
MouseMove, 0, %ranup%, 100, R
return