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

Having issues with a script.

$
0
0
So here i have provided a link of how the red arrows look,it changesarrow direction each time you press an arrow.Here is a picture,The issue i have is something with line 23,and it just starts and ends the macro instantly,=( Here is also the script im trying to make work,any help is highly appreciated

Note* see how the red arrow is the right arrow key it changes after you press that key to another random key,Now i need to make this loop so i can leave this overnight.


[ autoit ]         
constants k1 = 0 uparrow = 1 leftarrow = 2 rightarrow = 3 downarrow = 4 End loadRGB 271, 231 compute downarrow = Int( {RGBred} * (1 - (150/255)) + 230 * (150/255) + .49 ) loadRGB 271, 221 compute uparrow = Int( {RGBred} * (1 - (150/255)) + 230 * (150/255) + .49 ) loadRGB 277, 277 compute rightarrow = Int( {RGBred} * (1 - (150/255)) + 230 * (150/255) + .49 ) loadRGB 265, 226 compute leftarrow = Int( {RGBred} * (1 - (150/255)) + 230 * (150/255) + .49 ) Loop 500000 Call Meditate Call check red End Procedure Meditate delay 500 Keys m Delay 3000 Loop 70000 end End GetRed 271, 221 = $uparrow if $k1 = 1 Else keys {up} set k1 = 1 Delay 200 end End GetRed 265, 226 = $leftarrow if $k1 = 2 Else keys {left} set k1 = 2 Delay 200 end End GetRed 271, 231 = $downarrow if $k1 = 3 Else keys {down} set k1 = 3 Delay 200 end End GetRed 277, 277 = $rightarrow if $k1 = 4 Else keys {right} set k1 = 4 Delay 200 end End ePos 257, 89




Posted Image

Viewing all articles
Browse latest Browse all 12506

Trending Articles



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