Sign in to follow this  
Followers 0
ConorMcCarthy

PixelGetColor() without activating a window?

8 posts in this topic

Is it possible to get the pixel colour of a pixel in a window without the window being active and/or the pixel visible on the screen ?

Share this post


Link to post
Share on other sites



Is it possible to get the pixel colour of a pixel in a window without the window being active and/or the pixel visible on the screen ?

If the window is not visible on the screen there is no colour to get.


Get Beta versions Here Get latest SciTE editor Here AutoIt 1-2-3 by Valuater - A great starting point.

Time you enjoyed wasting is not wasted time ......T.S. Elliot
Suspense is worse than disappointment................Robert Burns
God help the man who won't help himself, because no-one else will...........My Grandmother

Share this post


Link to post
Share on other sites

If the window is not visible on the screen there is no colour to get.

If a tree falls in the woods when nobody is around does it make a sound? If Is there any way to get the 'colour information' from wherever it is stored?

Share this post


Link to post
Share on other sites

Using an example from Larry... Can you read page 37 of a book when you're looking at page 10?

Share this post


Link to post
Share on other sites

Using an example from Larry... Can you read page 37 of a book when you're looking at page 10?

Nope, but I'm not AutoIT.

AutoIT can send and receive text etc from hidden windows.

Share this post


Link to post
Share on other sites

Windows that aren't visible on screen don't have pixels.

Share this post


Link to post
Share on other sites

Windows that aren't visible on screen don't have pixels.

Ok. Does a window have information stored like it has the text etc stored? Can this info be accessed by autoit?

If not can it be got around by creating a virtual workspace where the windows are placed?

Share this post


Link to post
Share on other sites

Ok. Does a window have information stored like it has the text etc stored? Can this info be accessed by autoit?

If not can it be got around by creating a virtual workspace where the windows are placed?

Whether the information is stored or not, i don't know, but i have a feeling not.

All i know for sure is pixelgetcolor() and PixelSearch() only work on the PIXELS that are visible to you.

As to the virtual workspace, yes that would work assuming you could see on your screen the pixels that you are ring to get the color of. Otherwise, no.

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