我的宏不会 运行 不止一次?
My macro wont run more than once?
我有一个简单的宏,因为我对它还很陌生。今天正式开始了。但是我 运行 这个宏,它 运行 一次就停止了。这是为什么?这是:
q::
Send asdq
Esc::ExitApp
return
如果有人能帮助我,我将不胜感激。
您分配的每个热键(不是单行)都需要 Return
。
由于您在另一个热键中定义了热键,因此当您按 q 并退出脚本时,您的第二个热键 esc::exitapp
将被执行。
尝试:
q::Send, asdq
Esc::ExitApp
或:
q::
Send, asdq
Return
Esc::ExitApp
编辑:
q::
Loop
Send, asdq
Return
Esc:: ExitApp
我有一个简单的宏,因为我对它还很陌生。今天正式开始了。但是我 运行 这个宏,它 运行 一次就停止了。这是为什么?这是:
q::
Send asdq
Esc::ExitApp
return
如果有人能帮助我,我将不胜感激。
您分配的每个热键(不是单行)都需要 Return
。
由于您在另一个热键中定义了热键,因此当您按 q 并退出脚本时,您的第二个热键 esc::exitapp
将被执行。
尝试:
q::Send, asdq
Esc::ExitApp
或:
q::
Send, asdq
Return
Esc::ExitApp
编辑:
q::
Loop
Send, asdq
Return
Esc:: ExitApp