Jump to content
autoside

Determing the middle of a range of pixels?

Recommended Posts

Posted (edited)

I know how to use normal pixelsearches throughout the screen for various colors, but what I'd like to learn how to do is determine where the center of those detected pixels are.

I wasn't entirely sure how to explain this in words so I threw a picture together.

So basically its scanning the center of the screen, but instead of the appropriate pixels triggering whatever event to take place, those pixels have to be centered regardless of size and how much space they take of.

Is something like this possible and do you have any suggestions on learning it?

 

I basically want a certain group crossing the screen to trigger a browser refresh (easily bindable to a key F5) and then it begins a new search and some other events before it happens again. I've got everything done except for this part, but it throws off the loop because it activates as soon as the text scrolls through the center, whereas I need it to always be when the text is completely centered. Sorry if that's confusing.

idea.png

Edited by autoside

Share this post


Link to post
Share on other sites
Posted (edited)

hey 

well, can you post your code and explain what exactly going wrong if you already finished everything else?

i mean it's easier to understand your problem and you will get a more tailored answers for your code i guess. (btw im not that good at engl:sweating:)

Greetings

Edited by Aelc

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

×
×
  • Create New...