Windows spy unable to get pixel color from a window

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
doubledave22
Posts: 343
Joined: 08 Jun 2019, 17:36

Windows spy unable to get pixel color from a window

Post by doubledave22 » 19 Oct 2021, 16:31

An application I work with regularly to perform pixel searches among other things has recently updated and now it seems that every method to get the pixel data from the window is failing.

Windows Spy returns:
Color: 000000 (Red=00 Green=00 Blue=00)

Printscreen button as well as the windows snipping tool return a full black window (and for some just completely invisible).

What are some alternative ways to find the pixel data of a (likely hardware accelerated) application window that can't be properly captured? Ultimately this method will need to work on background windows (i.e. a window fully behind another window). Right now I am using Gdip_BitmapFromScreen() as well as Gdip_BitmapFromHWND() both of which returning full black bitmaps.

Thanks to anyone able to provide any help!

User avatar
mikeyww
Posts: 26883
Joined: 09 Sep 2014, 18:38

Re: Windows spy unable to get pixel color from a window

Post by mikeyww » 19 Oct 2021, 20:16

You can post your script to get feedback about it.

Post Reply

Return to “Ask for Help (v1)”