Hello! Currently I am messing around with AutoIt, trying to get the hang of basic stuff. Things went well, until I tried to make my script click repeatedly at a certain point. Here is the script:
The problem is that the second mouseclick now clicks infinitely at the given coordinates, but I just want it to click two times. I would really appreciate a little help! I am a newbie, so please bear with me.
MouseMove(1170, 1020, 15) MouseDown("left") Sleep(1000) MouseUp("left") MouseClick("primary") $x = 330 $y = 550 $i = 0 While $i <= 2 MouseClick("primary", $x, $y, 2) WEnd Func MyExit() Exit EndFunc
The problem is that the second mouseclick now clicks infinitely at the given coordinates, but I just want it to click two times. I would really appreciate a little help! I am a newbie, so please bear with me.