08-06-2022, 05:07 AM
Tested on Windows 11.
Insert this in the FF to see the current window:
outw f.hwnd
When a window is active, it is
65888 Progman "Program Manager" EXPLORER
When I press Win+D to show desktop, the window is
788796 WorkerW "" EXPLORER
Both windows belong to the same thread (desktop thread?), therefore can be used this code:
Insert this in the FF to see the current window:
outw f.hwnd
When a window is active, it is
65888 Progman "Program Manager" EXPLORER
When I press Win+D to show desktop, the window is
788796 WorkerW "" EXPLORER
Both windows belong to the same thread (desktop thread?), therefore can be used this code: