How to map semi-colon then Esc to something other in AutoHotkey?
如何设置AutoHotkey,以便当我按分号然后按Esc
:?*:;Esc::
msgbox, hello world
;; do something
;; Send, {BACKSPACE} ;; remove the ; at last
return
我认为您可能无法使用热字符串来执行此操作,而是可以使用常规热键来执行此操作。另外,我认为您需要将注释标志更改为其他非分号的内容。这是我的尝试:
1 2 3 4 5 6 7 8 9 | #CommentFlag // ~;:: KeyWait , Esc , DT2 If !ErrorLevel { Send , {backspace} msgbox } Return |