在某处写字符串时的操作

时间:2017-05-15 16:51:14

标签: autohotkey

是否可以在某处写入字符串时执行操作(自动热键)。 例如,当我写下单词" HELLO"时,动作将会运行。然后:

if (stringWrote == "HELLO"){
//WILL DO SOMETHING }

1 个答案:

答案 0 :(得分:1)

使用Hotstrings:

:*:HELLO::
    ; do sth
return

另请参阅文档https://autohotkey.com/docs/Tutorial.htm,初学者教程非常好。