Jump to content

"H:\SCHLEICH\Reciepts\payed.au3" (46) : ==> Subscript used on non-accessible variable.:


Go to solution Solved by a6point6,

Recommended Posts

Posted (edited)
$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 by a6point6

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...