Nemroth wrote:
I can't see the Notepad window and it isn't present in the ALT-TAB dialog too.
There are two side-effects with the method in use:
* The window's button is removed from the taskbar and also from the ALT-TAB listing.
* The window is lowered in the z-order. So any windows in the same position will obscure the window acted upon with this method.
Try this experiment:
1. Minimize (or close all windows)
2. Run Window's Notepad
3. Run the following script:
Code:
WinGet, hw_notepad, ID, ahk_class Notepad
if hw_notepad=
{
MsgBox, Failure to WinGet Notepad ID!
ExitApp
}
hw_parent := DllCall( "GetParent", "uint", hw_notepad )
WinGet, hw_progman, ID, Program Manager ahk_class Progman
DllCall( "SetParent", "uint", hw_notepad, "uint", hw_progman )
MsgBox, check the taskbar for the Notepad button... shouldn't find it
DllCall( "SetParent", "uint", hw_notepad, "uint", hw_parent )
MsgBox, check the taskbar for the Notepad button... it's back
return