【问题标题】:How to map semi-colon then Esc to something other in AutoHotkey?如何将分号然后 Esc 映射到 AutoHotkey 中的其他内容?
【发布时间】:2019-06-07 00:54:22
【问题描述】:

如何设置 AutoHotkey 以便当我按分号然后 Esc ;esc 时,它会做其他事情? :?*:;Esc:: msgbox, hello world ;; do something ;; Send, {BACKSPACE} ;; remove the ; at last return

【问题讨论】:

    标签: autohotkey


    【解决方案1】:

    我认为您可能无法使用热字符串,而是使用常规热键。另外,我认为您需要将注释标志更改为不是分号的其他内容。这是我的尝试:

    #CommentFlag //
    ~;::
    KeyWait , Esc , DT2
    If !ErrorLevel
    {
        Send , {backspace}
        msgbox
    }
    Return
    

    【讨论】:

      猜你喜欢
      • 2016-11-28
      • 1970-01-01
      • 1970-01-01
      • 2017-04-26
      • 2016-02-21
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2017-01-08
      相关资源
      最近更新 更多