Jump to content

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


Recommended Posts

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).

Link to comment
Share on other sites

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.

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

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

Link to comment
Share on other sites

  • 3 years later...

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.

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...