请在 AutoHotkey 中执行以下脚本:
#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases.
; #Warn ; Enable warnings to assist with detecting common errors.
SendMode Event ; Recommended for new scripts due to its superior speed and reliability.
SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory.
#Persistent
Gosub, Mylabel
Return
MsgBox, It worked!
MyLabel:
Sleep, 1000
Return
我希望它会调用MyLabel
,即等待 1 秒,然后弹出消息框。
但事实并非如此。
我在Gosub
运作中缺少什么?