Sign in to follow this  
Followers 0
Cerro

Absolute window position

6 posts in this topic

Hi!,

Just want a help for my macro, Im having a problem getting the exact coordinates of the color.

I mean.. Im coding it in 1024x768 size and the problem is when I use my program to other pc with different resolution my program wont work coz it cant find the color..

is there a way to just look for the color on specific window?? like for example I only want to get the color in a window mode game? thank you.

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

Make some test on different resolution. And when use your program detect this coords with macros @DesktopWidth and @DesktopHeight.

Edited by Andreik

When the words fail... music speaks

Share this post


Link to post
Share on other sites

Make some test on different resolution. And when use your program detect this coords with macros @DesktopWidth and @DesktopHeight.

already did that and failed..

actually the program is finished.. just having a problem using it on other pc.. and i dont want to search pixel coordinates again and again for different resolution y_y

Share this post


Link to post
Share on other sites

The idea to use the user's desktop height and width is to have a reference point that you'll offset from or to. If the pixel is 50% from the left it'd be @DesktopWidth*0.5, but it'd be different values on different screen resolutions. Search and test.

Share this post


Link to post
Share on other sites

Are you attempting to bot a game with a virtual PC

yup something like that.. but its for personal only. like when watching tv while grinding skills. anyway thank you for the info. I'll just test and test and test more. Thank you.

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  
Followers 0