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

what am I doing wrong?

$
0
0
What I would like is for this to slowly press 4 3 2 1 and pause when I take my finger off of 2 and restart from where it stopped.  So hold 2 and get 4 3 2 and if I let up on 2 it waits and then goes to 1 4 3... when I press 2 again.  Not sure where im screwing up.

[ autoit ]         
Do If _IsPressed("32") = 1 then Send("{4}") Sleep(Random(1500,1670,1)) Elseif _IsPressed("32") = 0 then Do Sleep(100) Until _isPressed("32") = 1 EndIf If _IsPressed("32") = 1 then Send("{3}") Sleep(Random(1500,1670,1)) Elseif _IsPressed("32") = 0 then Do Sleep(100) Until _isPressed("32") = 1 EndIf If _IsPressed("32") = 1 then Send("{2}") Sleep(Random(1500,1670,1)) Elseif _IsPressed("32") = 0 then Do Sleep(100) Until _isPressed("32") = 1 EndIf If _IsPressed("32") = 1 then Send("{1}") Sleep(Random(1500,1670,1)) Elseif _IsPressed("32") = 0 then Do Sleep(100) Until _isPressed("32") = 1 EndIf Until _IsPressed("23") Exit

Viewing all articles
Browse latest Browse all 12506

Trending Articles



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