GizmoC Posted October 25, 2006 Posted October 25, 2006 Hello Ok, I hope this isnt too silly.. but I am new to this. int x = autoit.PixelGetColor(blah) works fine But, in what object do I "save" the return for autoit.PixelSearch(blah) ? As we know, PixelSearch returns an array. But, when I tried int[] temp = autoit.PixelSearch(blah) didnt work
MrTWist Posted April 10, 2007 Posted April 10, 2007 (edited) Did you define the size of the int[] first? you might try letting the language do the type cast for you like using a variable without a type. Hello Ok, I hope this isnt too silly.. but I am new to this. int x = autoit.PixelGetColor(blah) works fine But, in what object do I "save" the return for autoit.PixelSearch(blah) ? As we know, PixelSearch returns an array. But, when I tried int[] temp = autoit.PixelSearch(blah) didnt work Edited April 10, 2007 by MrTWist
cintari Posted April 11, 2007 Posted April 11, 2007 Hello Ok, I hope this isnt too silly.. but I am new to this. int x = autoit.PixelGetColor(blah) works fine But, in what object do I "save" the return for autoit.PixelSearch(blah) ? As we know, PixelSearch returns an array. But, when I tried int[] temp = autoit.PixelSearch(blah) didnt work Return Value Success: Returns decimal value of pixel's color. Failure: Returns -1 if invalid coordinates.
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