HotKeySet("{f5}","test")
Global $stop=True,$k
While 1
Sleep(100)
WEnd
Func test()
If $stop=True Then
$stop=False
test1()
Else
$stop=True
$k=0
ToolTip("")
EndIf
EndFunc
Func test1()
While 1
If $stop=True Then ExitLoop
ToolTip("循环显示: "&$k)
$k+=1
WEnd
EndFunc