【发布时间】:2020-11-08 10:55:52
【问题描述】:
Gui, Add, Text, x20 y13 Left, spam left click hotkey
Gui, Add, Hotkey, x140 y10 vHKspamleft
Gui, Add, Text, x20 y53 Left,hold left click hotkey
Gui, Add, Hotkey, x140 y50 vHKholdleft
Gui, Submit, NoHide
hotkeyList := ["HKspamleft", "HKholdleft"]
for key, val in hotkeyList
GuiControl,, % %val%, x
我有两个 GUI 热键。我希望能够通过 controlID 列表将这些热键的显示值设置为“x”。上面的代码不会更新值,但是硬编码GuiControl,, HKspamleft, x 会起作用。如何通过 controlID 列表完成此操作?
【问题讨论】:
标签: autohotkey