GizmoC Posted October 25, 2006 Share 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 Link to comment Share on other sites More sharing options...
MrTWist Posted April 10, 2007 Share 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 Link to comment Share on other sites More sharing options...
cintari Posted April 11, 2007 Share 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. 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