Page 1 of 1

Add ahk_hwnd to work with hidden windows

Posted: 16 Sep 2020, 01:45
by tmplinshi
When using commands like WinGetTitle/WinMove, there is no need to turn on DetectHiddenWindows if you have the hwnd.

It would be very useful to have a ahk_hwnd similar to ahk_id, but does not require you to turn on DetectHiddenWindows.

Re: Add ahk_hwnd to work with hidden windows  Topic is solved

Posted: 16 Sep 2020, 22:30
by lexikos
That would be entirely redundant (in v2).
The WinTitle parameter of various functions can now accept a HWND (must be a pure integer) or an object with a Hwnd property, such as a Gui object. DetectHiddenWindows is ignored in such cases.

Re: Add ahk_hwnd to work with hidden windows

Posted: 17 Sep 2020, 00:30
by tmplinshi
Thanks lexikos. That's a nice feature of v2.