【发布时间】:2013-07-18 21:50:39
【问题描述】:
我想制作一个临时创建 Turbo 按钮的脚本,每次运行时可自定义输入/输出。理想情况下,像
InputBox, TriggerKey, Input Trigger Here ; Custom turbo trigger
InputBox, TurboKey, Input Turbo Button Here ; and custom turbo key
while NOT GetKeyState("F12", "P") { ; Just so the loop would close if you ran this
while GetKeyState(%TriggerKey%, "P") { ; when the inputted trigger is held...
Send, %TurboKey% ; rapid-fire the inputted turbo
Sleep 50
}
}
上面的代码没有用,我不确定这是 GetKeyState/InputBox 格式问题、用户输入问题(我没有输入正确的字符串),还是我无法制作像这样的定制涡轮增压器。
我对此的最新想法只是使用输入的密钥编写和运行另一个 .ahk 文件,但如果这可以实现而无需管理多个文件,那就太好了。
【问题讨论】:
-
我不确定我是否理解您想要完成的任务。你能解释一下你想做什么吗?什么是“触发器”?因此,只要不按住
F12和P键,您是否希望某些事情不断发生?
标签: autohotkey inputbox