将窗口隐藏就可以啊,代码如下:#include <ButtonConstants.au3>
#include <GUIConstantsEx.au3>
#include <StaticConstants.au3>
#include <WindowsConstants.au3>
#NoTrayIcon
Opt("GUIOnEventMode", 1)
For $i = 1 To 5
_UpdateCKPOS()
Sleep(2000)
MsgBox(0,"",$i)
Next
Func _UpdateCKPOS()
$Version = "更新提示"
If WinExists($Version) <> 1 Then
AutoItWinSetTitle($Version)
$UPHint = GUICreate("更新提示", 270, 160, -1, -1, $WS_BORDER)
$Button1 = GUICtrlCreateButton("确 定", 80, 88, 99, 33)
;GUICtrlSetOnEvent($Button1, "OKButton")
GUICtrlSetOnEvent($Button1, "OKButton")
GUISetState(@SW_SHOW)
EndIf
EndFunc
Func OKButton()
GUISetState(@SW_HIDE)
EndFunc
|