HotKeySet("{F9}","ShowOrHide")
MsgBox(64,"提示","将想隐藏的窗体放到最前面,然后点确定.")
Global $ShowFlg=True
Global $WinTitle=WinGetTitle("[ACTIVE]")
Func ShowOrHide()
If $ShowFlg=True Then
WinSetState($WinTitle,"",@SW_HIDE)
$ShowFlg=False
Else
WinSetState($WinTitle,"",@SW_SHOW)
$ShowFlg=True
EndIf
EndFunc
While 1
Sleep(100)
WEnd
HotKeySet("{F9}","ShowOrHide")
MsgBox(64,"提示","将想隐藏的窗体放到最前面,然后点确定.")
Global $ShowFlg=True
Func ShowOrHide()
If $ShowFlg=True Then
WinSetState("[CLASS:IEFrame]","",@SW_HIDE)
$ShowFlg=False
Else
WinSetState("[CLASS:IEFrame]","",@SW_SHOW)
$ShowFlg=True
EndIf
EndFunc
While 1
Sleep(100)
WEnd