Sign in to follow this  
Followers 0
Gemba

Finding a Pixel in a background window

6 posts in this topic

So I've tried searching and I've found a few things, but none of them seem to work

When I use the library, it doesn't screenshot the window but rather the whole screen (I supplied the handle).

When I used a MemoryReadPixel function it always returned 00FFFFFF

So basically I want to read a pixel from a background window, and PixelGetColor doesn't seem to work.

Share this post


Link to post
Share on other sites



It maybe returning transparent due to the application knowing it's in the background. Some things will change to transparent to save resources.

What are you trying to read there may be a better way then PixelGetColor.


A true renaissance man

Share this post


Link to post
Share on other sites

I'm trying to read a Java application. I want to know when an event happens so I could automate my work.

I don't think it goes transparent because when I go over it with a smaller window I see everything that same

Share this post


Link to post
Share on other sites

#5 ·  Posted (edited)

These might work...

_PixelGetColor_CaptureRegion()

_PixelGetColor_GetPixelRaw()

Basically you can use them to search the window you want to search by briefly bringing it to the foreground to capture it to memory then search it in memory. I'll add links in a second when I can find them.

Edit: Add link...

Edited by MrMitchell

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