Sign in to follow this  
Followers 0
hactar

[Vista64] PixelGetColor returns color of desktop picture instead of directX window

8 posts in this topic

I'm trying to determine the color of a pixel via PixelGetColor in a directX window (eve online - trinity edition to be precise). When I try to do so in Vista64 with aero turned on it always returns 0 when the directX window is active. If I turn off aero then PixelGetColor returns whatever is under that directX window (eg the window below or if nothing is below the desktop background) instead of the directX windows color at that pixel.

Anyone have any idea of whats going wrong and if there is any way of fixing this? (I tried the latest stable and the latest beta to no avail).

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

Anyone have any idea of whats going wrong?

Game probably have protection... gameguard, pink buster... or some other anticheat program >_>

Edited by bogQ

TCP server and client - Learning about TCP servers and clients connection
Au3 oIrrlicht - Irrlicht project
Au3impact - Another 3D DLL game engine for autoit. (3impact 3Drad related)



460px-Thief-4-temp-banner.jpg
There are those that believe that the perfect heist lies in the preparation.
Some say that it’s all in the timing, seizing the right opportunity. Others even say it’s the ability to leave no trace behind, be a ghost.

 

Share this post


Link to post
Share on other sites

I'm afraid thats not it. I tried the exact same script with Windows XP sp2 and it worked fine, there are also scripts for eve online that use pixelgetcolor and work.

I've tried running the script as admin, the game as admin, , the script or game in windows xp sp2 compatibility mode, the 64 bit version of autoit, etc and the result is always the same, pixelgetcolor appears not to see the directx window and instead tells me the pixelcolor of what ever is under the directx (eve online) window.

Any further ideas?

Share this post


Link to post
Share on other sites

To add more information, I've continued testing the vista 64 computer and found that pixelgetcolor does not work with Team Fortress 2 and Eve - Online, it does however work with Warcraft 3, which is also a directX game... Maybe its related to the directX version the game is using?

Share this post


Link to post
Share on other sites

did you fix your problem ? I got the same problem !

Share this post


Link to post
Share on other sites

You could try taking a screenshot of the screen you want to get a colour from and then display it on the screen and scan that image for the colour? Not sure if it will work but its about the best idea I have.

Share this post


Link to post
Share on other sites

#8 ·  Posted (edited)

You may also have a look on this :

Edited by FastFrench

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