Jump to content
Sign in to follow this  
Siflou

Need help for PixelSearch

Recommended Posts

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

Share this post


Link to post
Share on other sites

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?

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...