mirko1 Posted October 5, 2007 Share Posted October 5, 2007 I am new at this. If somebody can help it would greatly be appreciated. I am trying to find the color(yellow) in pre-defined rectangle and once found to left click on it. I tried the following $coord = PixelSearch( 195, 336, 232, 258, 0xffff00, 21 ) MouseClick( "left", $coord[0], $coord[1] ) I am getting the following error: MouseClick( "left", $coord/\ERROR Error: Subscript used with non-Array variable Can somebody tell me what am I doing wrong, and how to fix it? Thank you Link to comment Share on other sites More sharing options...
Moderators SmOke_N Posted October 5, 2007 Moderators Share Posted October 5, 2007 $coord = PixelSearch( 195, 336, 232, 258, 0xffff00, 21 ) If @error = 0 Then MouseClick( "left", $coord[0], $coord[1] ) Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer. Link to comment Share on other sites More sharing options...
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