#include <Timers.au3> dim $iTime0=_Timer_SetTimer('',1000,'test') Example1() Func Example1() $hgui=GUICreate("My GUI") $Button_1 = GUICtrlCreateButton("测试按钮", 0, -1) GUISetState(@SW_SHOW) while 1 Local $msg = GUIGetMsg() Select Case $msg = -3 Exit Case $msg = $Button_1 msgbox(0,'','111') EndSelect wend EndFunc Func test($hWnd, $iMsg, $iwParam, $ilParam) _Timer_KillTimer('', $iTime0) sleep(5000) ;这里安装软件需要好些时间 EndFunc
举报
本版积分规则 发表回复 回帖后跳转到最后一页
|手机版|小黑屋|AUTOIT CN ( 鲁ICP备19019924号-1 )谷歌 百度
GMT+8, 2025-5-1 22:32 , Processed in 0.108113 second(s), 24 queries .
Powered by Discuz! X3.5 Licensed
© 2001-2025 Discuz! Team.