a6point6 Posted October 10, 2024 Posted October 10, 2024 (edited) expandcollapse popup$run=1 $step=1 $col=0 sleep(1000) while $run=1 while $step=1 $col2=PixelSearch(780,423,1136,603,0xa4f4d8,5) if not @error Then if $col[0]>960 Then send("found left of") endif if $col[0]<960 Then send("found right of") endif endif $col2=PixelSearch(780,423,1136,603,0xef795e,5) if not @error Then if $col[0]>960 Then send("found left of") endif if $col[0]<960 Then send("found right of") endif endif wend wend ==> Subscript used on non-accessible variable.: if $col[0]>960 Then if $col^ ERROR ->04:32:59 AutoIt3.exe ended.rc:1 +>04:32:59 AutoIt3Wrapper Finished. >Exit code: 1 Time: 4.422 It runs until it actually finds the color, then it crashes. I am checking for @error so im confused ;( Edited October 10, 2024 by a6point6
Solution a6point6 Posted October 10, 2024 Author Solution Posted October 10, 2024 Nevermind Lol.. so stupid
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now