Jump to content
Sign in to follow this  
meowbits

How do you locate the position of a box (x,y)

Recommended Posts

meowbits

Posted Image

Trying to detect the game box, not sure where to start with it. Anyone have an example?

Share this post


Link to post
Share on other sites
meowbits

Doh.. my bad, I think I got the box now. But its manual. Anyway I can have it auto detect?

Edited by meowbits

Share this post


Link to post
Share on other sites
Valuater

Take a look at PixelGetColor()

8)


NEWHeader1.png

Share this post


Link to post
Share on other sites
meowbits

Using the GameBot to allow the user to detect the game area.

I have a couple spots that I want to click that NEVER change in relation to the game area.

Do you know what I need to use for that? I really dont have much of an idea.

Like.. this menu is ALWAYS in the same spot, but the coordinates change based on monitor resolution, and size.

So could I pinpoint the location by doing

left coord *1.75

right coord * .8

top coord * .8

bottom coord * 1.75

To give myself a small area and then do a search for pixel color?

I think that would work, but how do I do it?

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  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.