Sign in to follow this  
Followers 0
SaphuA

PixelGetColor always returns black

7 posts in this topic

#1 ·  Posted (edited)

I thought I could have a little fun this morning trying to write a simple fishing bot for Fate: Undiscovered realms... guess again!

When I use PixelGetColor I always get a black pixel returned. I also tried to use _ScreenCapture_CaptureWnd, but that aswell returns a full black image.

What could be causing this? And how to fix it?

Ps. I am using a dual monitor setup, does that have something to do with it?

Edit: This does the same aswell: http://www.autoitscript.com/forum/index.php?showtopic=63318

Edit: I also noticed Windows Vista is not able to create a preview when I hover over the item

Edited by SaphuA

Share this post


Link to post
Share on other sites



Some games are protected from these types of functions, and its not always intentional. It's just the way the screen is drawn.

Share this post


Link to post
Share on other sites

But is there no way I could get it from the memory or something? I mean, eventualy the pixel data gets drawn to screen it has to be somewhere.

Share this post


Link to post
Share on other sites

One other thing I'm wondering about though; how come that windows print screen does work? Is there no way to read the data the way windows does?

Or... what would be the fastest way to save/paste the windows screenshot and read data from that?

Share this post


Link to post
Share on other sites

Hello ! Can you tell me the way get pixel data from memory ? thank !

Share this post


Link to post
Share on other sites

maybe there is something wrong with your code... post it


code

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