删除文本后不会触发热字串

Hotstrings don't trigger after deleting text

我有一个关于热字串的奇怪问题:

每次我使用

删除任何 非热字符串 单词

ctrl + a, backspace

ctrl + backspace

(我现在称他们为§),

之后所有热字串将不再触发(在不同的应用程序中测试)。 当我在编写下一个热字符串之前插入 spaceenter 等空白字符时,它们会以某种方式再次工作。

如果我...

不会发生这个问题

注意:我的测试脚本只有一行:

:*:bzw::beziehungsweise

我是不是做错了什么,或者这是一个错误? (我在 Windows 8.1 上使用 AHK 版本 1.1.29.01)

退格键不会重置热字串识别器。当您键入 bzq 后跟 ctrl + backspace 时,Autohotkey 尚未准备好将输入解释为新的热字串。要重置热字串识别器,请使用 Hotstring("Reset") (https://autohotkey.com/docs/commands/Hotstring.htm#Reset)。在我的脚本中,我按以下方式处理 ctrl + backspace

Ctrl & Backspace::
    SendInput ^`b
    Hotstring("Reset")
Return