0
我知道如何在热点字符串中使用?
(例如:?:btw::by the way
)以允许热火字符在字母数字字符之后触发。然而,有没有办法让它火只有前面有一个字母数字字符?例如,所以它不会触发#btw
或@btw
或:btw
或类似。只有在字母数字字符之前触发热点
我知道如何在热点字符串中使用?
(例如:?:btw::by the way
)以允许热火字符在字母数字字符之后触发。然而,有没有办法让它火只有前面有一个字母数字字符?例如,所以它不会触发#btw
或@btw
或:btw
或类似。只有在字母数字字符之前触发热点
我唯一能想到的就是为每个字母数字字符制作一个hotstring
。
:?:abtw::by the way
:?:bbtw::by the way
:?:cbtw::by the way
.
.
.
:?:Ybtw::by the way
:?:Zbtw::by the way
:?:1btw::by the way
.
.
.
图书馆RegEx Powered Dynamic Hotstrings可以为你做这个。将上述库保存在脚本所在的目录中,然后运行以下命令:
#Include DynamicHotstrings.ahk
hotstrings("[\w]btw", "btw") ; [\w] is the regular expression for a single character word
Return
btw:
SendInput, by the way
Return
这似乎是更新后的版本:http://www.autohotkey.com/board/topic/114764-regex-dynamic-热字串/#entry667522 – admdrew