hello i am new to autoit forums and i need some help
i want to set mouse location without moving it or use mousegetpos
my example is easy i need to declare 3 locations and get them from other script
i have $X1 and $Y1 but what i need is $location1 = $X1, $Y1 but i know won´t work like that
location.au3
All good; if you want to improve your coding skillz, take another look at my example. I created a custom (modular) function that I can provide coordinates to. It's more efficient than copying and pasting more-or-less the same code over and over. Write once, run many.
;untested
_MoveAndClickMouse(780,600)
_MoveAndClickMouse(780,225)
_MoveAndClickMouse(780,350)
Func _MoveAndClickMouse($X, $Y)
MouseMove($X,$Y)
Sleep(100)
MouseClick("Left