iseahound / ImagePut

A core library for images in AutoHotkey. Supports AutoHotkey v1 and v2.
https://www.autohotkey.com/boards/viewtopic.php?f=83&t=76633
MIT License
124 stars 26 forks source link

[Question] Is it possible to get the bitmap of a hidden window? #18

Closed jpuerj closed 2 years ago

jpuerj commented 2 years ago

Is there any workaround to get the bitmap of a hidden window? When I hide the window I get a full blank bitmap...

iseahound commented 2 years ago

Maybe. Chances are that it may be possible to intercept a WM_PAINT message, but it would be limited to windows that don't use hardware acceleration (DirectX), and it would very likely not work on modern versions of Windows, since hiding windows and copying sensitive information is now a thing.

In short, I will only provide support for publicly available APIs.