Jump to content

Finding Co-ords of Window


Recommended Posts

Heya again.

How would I get and find the co-ords of a Game Client? The co-ords I want the pixelsearch to be is within the Middle box of this picture below:

Posted Image

If someone could help, would be greatly appreciated. ^_^

Currently having difficulty finding the correct way of doing so~ Don't fully understand how this part works.

:)

Edited by SofaKingWeTardEd
Link to comment
Share on other sites

  • Moderators

No replies? Oh i'm ever so confused with all this. ^_^:)

You shouldn't bump threads/posts within 24 hours, this allows others to post and not get sucked to the bottom of the pile. If someone reads it (your post) and feels they know the answer, or feels like replying if they know the answer, they will.

WinGetClientPos() should be all that you need, then to find the center, take width and divide by 2 and take the height and divide by 2.

Edit:

I must have been thinking of a UDF I wrote... I'll have to find it, because WinGetClientSize() is the UDF for AutoIt, not WinGetClientPos().

Edit2:

After further reading, you don't provide enough info to really help you, is this a control or the windows client itself you want help with?

Edited by SmOke_N

Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.

Link to comment
Share on other sites

You shouldn't bump threads/posts within 24 hours, this allows others to post and not get sucked to the bottom of the pile. If someone reads it (your post) and feels they know the answer, or feels like replying if they know the answer, they will.

WinGetClientPos() should be all that you need, then to find the center, take width and divide by 2 and take the height and divide by 2.

Edit:

I must have been thinking of a UDF I wrote... I'll have to find it, because WinGetClientSize() is the UDF for AutoIt, not WinGetClientPos().

Edit2:

After further reading, you don't provide enough info to really help you, is this a control or the windows client itself you want help with?

I'm sorry if I caused any troubles with the bumping, it's just that i'm on a tight schedule. ^_^

The picture I posted is the exact screensize of the Game Client. The box in the middle is where I want the PixelSearch to run it's functions. Because the game has a skin with multiple colours, I don't want it to fool AutoIt into trying to PK the game skin. :)

What I was asking for, was how to get the co-ords between the box's for AutoIt to run properly. If the PixelSearch does a search anywhere else on the game client, it won't work. I can't find out how to get the co-ords for the left side of the middle box, the right side, the top and bottom of the "Middle Box". :s

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...