【问题标题】:Creating a hotstring which doesn't replace text创建一个不替换文本的热字串
【发布时间】:2017-08-05 03:02:56
【问题描述】:

我在 Autohotkey 中有一个热字串,只要用大写字母键入工作代码,它就会显示提醒。

::lpn::
::nast::
::pca::
  if(GetKeyState("Shift")) ; check for capital letters
    MsgBox Reminder - Set direct pay to 100
return

不幸的是,热字串的默认行为是替换任何键入的文本。这意味着每当我输入NAST 时,它都会被 替换。

我可以创建一个不会删除键入的工作代码的热字串吗?

【问题讨论】:

    标签: autohotkey


    【解决方案1】:

    这会在任何时候以大写字母键入工作代码之一时显示一个 MsgBox。代码没有被删除

    :*B0C:LPN::
    :*B0C:NAST::
    :*B0C:PCA::
        MsgBox Reminder - Set direct pay to 100
    return
    

    备注

    • B0 告诉 autohotkey 不要在热字符串字符上退格
    • C 告诉 autohotkey 热字串区分大小写

    参考

    【讨论】:

      猜你喜欢
      • 2018-04-27
      • 2021-04-30
      • 2023-04-08
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2021-05-19
      • 1970-01-01
      相关资源
      最近更新 更多