我试图重新映射鼠标左键,但我不断收到错误消息目标标签不存在。
我的代码有什么问题?
key := "S"
Hotkey, LButton, %key%
答案 0 :(得分:0)
您的代码中的问题是您不是在引用热键或标签,而是变量。
尝试类似的东西:
iter_idx = 0
run_counts = dict()
while True:
[...]
nruns = 0
for _ in range(???):
[...]
model.run()
[...]
nruns += 1
[...]
run_counts[iter_idx] = nruns
iter_idx += 1
print(run_counts)
同样的道理
Hotkey, Lbutton, ^k
^k::
MsgBox, It Works!
return
希望有帮助