Jump to content

Recommended Posts

Posted

I am trying to run this very basic example script (pulled directly from AutoIt Help) and receiving errors.

$coord = PixelSearch( 0, 0, 20, 300, 0xFF0000 )
MsgBox(0, "X and Y are:", $coord[0] & "," & $coord[1])

The error message is: "Error: Subscript used with non-Array variable."

I have tried declaring $coord and have stared at this simple yet bothersome problem for several hours now. Any thoughts?

Posted

But the script doesn't run at all and it gives an error that leads me to believe I have not declared the variable correctly.

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...