Jump to content
Sign in to follow this  
dfdub

PixelSearch Working?

Recommended Posts

dfdub

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?

Share this post


Link to post
Share on other sites
Jex
dfdub

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.

Share this post


Link to post
Share on other sites

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
Sign in to follow this  

×