I just found out yesterday autoit and I try to make a macro that can stock the mousegetpos * in * the macro by pressing a hotkey and then with another hotkey, performs * mousemove on the postion mousegetpos have find, and add value to the position, for example (x * of mousegetpos *+ 10) with a while continuously and sleep if hotkey is not press.
is it possible ?
something like
Global $pos
HotKeySet("{F1}","getpos")
HotKeySet("{F2}","MouseMove")
while 1
sleep (100)
WEnd
Func getpos()
Local $pos = MouseGetPos()
MsgBox(0, "Mouse x,y:", $pos[0] & "," & $pos[1])
EndFunc
While 2
sleep (100)
WEnd
Func MouseMove()
its there i don't know how i can take the *x,y position* mousegetpos have find and do a mousemove *x-100,y-100*click left and return to sleep