回复 1# qq342252004
设置10秒无动作就隐藏form2窗口#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>
#include <Timers.au3>
#Region ### START Koda GUI section ### Form=
$Form1 = GUICreate('Video',@DesktopWidth,@DesktopHeight,0,0,0x80000000)
GUISetBkColor(0x000000)
GUISetState(@SW_SHOW)
$Form2 = GUICreate('Menu', 430, 430,@DesktopWidth-430,0,$WS_POPUP,-1,WinGetHandle(AutoItWinGetTitle()))
WinSetOnTop($Form2,"",1)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
EndSwitch
If _Timer_GetIdleTime()>10000 Then
GUISetState(@SW_HIDE,$Form2)
Sleep (100)
Else
GUISetState(@SW_SHOW,$Form2)
EndIf
WEnd
|