【发布时间】:2019-06-07 00:54:22
【问题描述】:
如何设置 AutoHotkey 以便当我按分号然后 Esc ;esc 时,它会做其他事情?
:?*:;Esc::
msgbox, hello world
;; do something
;; Send, {BACKSPACE} ;; remove the ; at last
return
【问题讨论】:
标签: autohotkey
如何设置 AutoHotkey 以便当我按分号然后 Esc ;esc 时,它会做其他事情?
:?*:;Esc::
msgbox, hello world
;; do something
;; Send, {BACKSPACE} ;; remove the ; at last
return
【问题讨论】:
标签: autohotkey
我认为您可能无法使用热字符串,而是使用常规热键。另外,我认为您需要将注释标志更改为不是分号的其他内容。这是我的尝试:
#CommentFlag //
~;::
KeyWait , Esc , DT2
If !ErrorLevel
{
Send , {backspace}
msgbox
}
Return
【讨论】: