隐藏IE窗口问题[已解决]
本帖最后由 m765555 于 2011-3-6 13:14 编辑请教一下,我用以下代码把IE的一个窗口页面隐藏后,如果才能恢复呢?HotKeySet("{F9}","ShowOrHide")
MsgBox(64,"提示","将想隐藏的窗体放到最前面,然后点确定.")
Global $ShowFlg=True
Global $WinTitle=WinGetTitle("")
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 我用的是IE8HotKeySet("{F9}","ShowOrHide")
MsgBox(64,"提示","将想隐藏的窗体放到最前面,然后点确定.")
Global $ShowFlg=True
Func ShowOrHide()
If $ShowFlg=True Then
WinSetState("","",@SW_HIDE)
$ShowFlg=False
Else
WinSetState("","",@SW_SHOW)
$ShowFlg=True
EndIf
EndFunc
While 1
Sleep(100)
WEnd 感谢,谢谢
页:
[1]