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

Mouseclick -> r

$
0
0

I made a script so that whenever I click the left mouse button, it would press "r" like 1/4 second later. When in a loop, it just presses "r" without me clicking the left mouse button... and I want it to stop the loop when I press the right mouse button.

Can anyone help? I know this should be very simple... but I'm new and couldn't find a fix.

Heres my code already:

 

Do
if MouseClick("Left")=True Then
sleep(250)
Send("{ASC 114}")
EndIf
Until MouseClick("Right")

Viewing all articles
Browse latest Browse all 12506

Trending Articles