Cerb Posted December 11, 2003 Posted December 11, 2003 $x = 595 $y = 417 $var = PixelGetColor($x,$y) MsgBox(0,"",$var[0] & "," & $var[1]) Error, subscript used with non-array variable. ???
Cerb Posted December 11, 2003 Author Posted December 11, 2003 Yes I am, but why doesn't it work? I mean, its a coord like any other...?
Cerb Posted December 12, 2003 Author Posted December 12, 2003 My window is 806x632 and I am running windows under 1024x768...
Cerb Posted December 12, 2003 Author Posted December 12, 2003 Now, this is really bugged AutoItSetOption("PixelCoordMode",1) $x = 595 $y = 417 $var = PixelGetColor($x,$y) MsgBox(0,$var[0],$var[1]) This code gives me the same error.
CyberSlug Posted December 12, 2003 Posted December 12, 2003 I think you are confusing PixelGetColor and PixelSearch. PixelGetColor does not return an array; PixelSearch does. Hope that helps Use Mozilla | Take a look at My Disorganized AutoIt stuff | Very very old: AutoBuilder 11 Jan 2005 prototype I need to update my sig!
Cerb Posted December 12, 2003 Author Posted December 12, 2003 holy fuck lol I am sorry, I didnt have a slightest idea of what i have been doing... lmao sorry for this
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