Gemba Posted September 17, 2012 Share Posted September 17, 2012 So I've tried searching and I've found a few things, but none of them seem to workWhen 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 00FFFFFFSo basically I want to read a pixel from a background window, and PixelGetColor doesn't seem to work. Link to comment Share on other sites More sharing options...
Attckdog Posted September 17, 2012 Share Posted September 17, 2012 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 Link to comment Share on other sites More sharing options...
Gemba Posted September 17, 2012 Author Share Posted September 17, 2012 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 Link to comment Share on other sites More sharing options...
Gemba Posted September 19, 2012 Author Share Posted September 19, 2012 Any ideas? Link to comment Share on other sites More sharing options...
MrMitchell Posted September 19, 2012 Share Posted September 19, 2012 (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 September 19, 2012 by MrMitchell Link to comment Share on other sites More sharing options...
James Posted September 19, 2012 Share Posted September 19, 2012 Some things will change to transparent to save resources.They do? I can't say I've noticed this, do you have an example?You do know 0xFFFFFF is white, right? Blog - Seriously epic web hosting - Twitter - GitHub - Cachet HQ Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now