Basic Autohotkey 不评估变量

Basic Autohotkey not evaluating variable

尝试设置 Autohotkey 命令但它不起作用,我以前使用过相同的脚本,但它不适用于 AutoHotKey 1.1.24.05 版。

local = http://lcl.
dev   = http://dev.
stage = http://stg.
prod  = https://www.
mywebsite1 = sitename1.com
mywebsite2 = sitename2.com

:*:lclmywebsite1::%local%%mywebsite1%{enter}
:*:devmywebsite1::%dev%%mywebsite1%{enter}
:*:stgmywebsite1::%stage%%mywebsite1%{enter}
:*:lclmywebsite2::%local%%mywebsite2%{enter}
:*:devmywebsite2::%dev%%mywebsite2%{enter}
:*:stgmywebsite2::%stage%%mywebsite2%{enter}

当我输入 stgmywebsite2 AutoHotKey returns %stage%%mywebsite2%

这与我在下面看到的没有什么不同,但上面的例子似乎没有评估变量。有什么想法吗?

:*:mye@::myname@somedomain.com

此示例演示了在热字串中使用变量扩展:

local = http://lcl.
mywebsite1 = sitename1.com

:*:lclmywebsite1::
  SendInput %local%%mywebsite1%{enter}
  return

来自 Hotstrings 的文档:

Variable references such as %MyVar% are not currently supported within the replacement text. To work around this, don't make such hotstrings auto-replace. Instead, use the SendInput command beneath the abbreviation, followed by a line containing only the word Return.