Quantcast
Channel: AutoIt v3 - General Help and Support
Viewing all articles
Browse latest Browse all 12506

Limited clicks?

$
0
0
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:

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.

Viewing all articles
Browse latest Browse all 12506

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>