Siflou Posted October 9, 2011 Share Posted October 9, 2011 Hey guys, I may be wrong, but I think that i miss something in PixelSearch. My problem is that I have a .jpeg and for example i want to search the color black. My problem is that i want to find for example my hair on the picture that are black, but the function will return a little pixel out of nowhere that is black, but my idea is, can i Get like the position like where theres a "chunk" of pixels that have the color that I'm searching for ? Well I'd be really happy if you guys can help me. Sincerely, Siflou Link to comment Share on other sites More sharing options...
Siflou Posted October 10, 2011 Author Share Posted October 10, 2011 Also I'd like to know if theres a way that when PixelSearch set @error to 1, that you handle you errors so the script doesnt stop ? Someone please? Link to comment Share on other sites More sharing options...
Phaser Posted October 15, 2011 Share Posted October 15, 2011 Hi This will search for black within a certain area 8,60,30,110 change these to suit your coordinates PixelSearch(8, 60, 30, 110, 0x000000,0,0, $hWnd) Hope that helps 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