Sign in to follow this  
Followers 0
some1

XP / Vista coordinates are different?

5 posts in this topic

Hey I am checking some specific pixels for colors, but it will only find the right place in a vista environment... in xp the same coords is a little higher and more to the left than in vista...

How come, and how can I fix this???

I experienced the same when constructing the gui for the app... using $WS_SYSMENU... There I just added 25 p to the hight, and 5 to the width...

help?

Share this post


Link to post
Share on other sites



pixelcoordmode


f_mrcleansmalm_77ce002.jpgAutoIt has helped make me wealthy

Share this post


Link to post
Share on other sites

pixelcoordmode

Ya I use that allready... opt(pixelcoordmode, 0) and opt(mousecoordmode, 0)...

I found a thread that told me that it was because of the aero interface in vista being different than the other OS'es in some way... Im just looking for a way to fix that... A way I have though off could be to get the os-version and, if its vista with aero enabled, adjust the coords in some way... It's just a pain... It would be much easier if there was a way to fix it....

Share this post


Link to post
Share on other sites

use picelcoordmode 2 ...

2 = relative coords to the client area of the active window

And the color may differ if Vista is applying some transparency...

Lar.


f_mrcleansmalm_77ce002.jpgAutoIt has helped make me wealthy

Share this post


Link to post
Share on other sites

use picelcoordmode 2 ...

2 = relative coords to the client area of the active window

And the color may differ if Vista is applying some transparency...

Lar.

<< ok, will try... thx alot ^^

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