2013-06-25 49 views
0

我知道如何在热点字符串中使用?(例如:?:btw::by the way)以允许热火字符在字母数字字符之后触发。然而,有没有办法让它火只有前面有一个字母数字字符?例如,所以它不会触发#btw@btw:btw或类似。只有在字母数字字符之前触发热点

回答

0

我唯一能想到的就是为每个字母数字字符制作一个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 
. 
. 
. 
0

图书馆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 
+0

这似乎是更新后的版本:http://www.autohotkey.com/board/topic/114764-regex-dynamic-热字串/#entry667522 – admdrew

相关问题