举报
$Form1 = GUICreate("Form1", 250, 97, 192, 114) $Button1 = GUICtrlCreateButton("开始", 24, 24, 201, 41, 0) GUISetState() While 1 Switch GUIGetMsg() Case -3 Exit Case $Button1 If GUICtrlRead($Button1) = "开始" Then GUICtrlSetData($Button1, "停止") _XunHuan() EndIf EndSwitch WEnd Func _XunHuan() For $i = 1 to 10 If GUIGetMsg() = $Button1 And GUICtrlRead($Button1) = "停止" Then GUICtrlSetData($Button1, "开始") Return Else MsgBox(0, 0, $i) EndIf Next EndFunc
本版积分规则 发表回复 回帖后跳转到最后一页
|手机版|小黑屋|AUTOIT CN ( 鲁ICP备19019924号-1 )谷歌 百度
GMT+8, 2025-4-20 10:54 , Processed in 0.097092 second(s), 24 queries .
Powered by Discuz! X3.5 Licensed
© 2001-2025 Discuz! Team.