【已解决】请问 While 1 Sleep(100) WEnd在一段代码中意义
本帖最后由 jiazhutao 于 2014-7-15 14:34 编辑Global $Paused
HotKeySet("{PAUSE}", "TogglePause")
HotKeySet("{ESC}", "Terminate")
HotKeySet("+!d", "ShowMessage");Shift-Alt-d
;;;; Body of program would go here ;;;;
While 1
Sleep(100)
WEnd
;;;;;;;;
Func TogglePause()
$Paused = NOT $Paused
While $Paused
sleep(100)
ToolTip('Script is "Paused"',0,0)
WEnd
ToolTip("")
EndFunc
Func Terminate()
Exit 0
EndFunc
Func ShowMessage()
MsgBox(4096,"","This is a message.")
EndFunc 为什么说他是“Body of program would go here”啊 循环不退出啊,不然运行完就直接结束了 哦哦 谢谢啊
页:
[1]