I'm still not getting any joy here.
And I'm not even yet working on a hidden window.
Code: Select all
hiddenbuffer := a_detecthiddenwindows
DetectHiddenWindows, On ;necessary to send commands to hidden explorer windows
windowsArray := []
WinGet, List, List, ahk_class CabinetWClass
Loop % List
windowsArray[List%A_Index%] := true
run, explorer /open,c:\temp\test
Loop{
WinGet, List, List, ahk_class CabinetWClass
Loop % List
if !windowsArray.HasKey(List%A_Index%) && hwnd := List%A_Index%
break 2
}
PostMessage, 0x111, 28699, 0, ahk_id %hwnd%, ;WM_COMMAND := 0x111 ;Undo
DetectHiddenWindows, %hiddenbuffer%
I've tried with this, too: PostMessage, 0x111, 28699, 0, ahk_class CabinetWClass, ahk_id %hwnd%, ;WM_COMMAND := 0x111 ;Undo