【发布时间】:2020-05-09 01:20:58
【问题描述】:
正如标题所说,我很难找到一种方法让我的脚本只在我的脚本期间阻止键盘输入。有没有我忽略的方法来做到这一点?这是我的代码供参考:
toggle = 0
*xbutton1::
{
if GetKeyState("d", "P")
{
if GetKeyState("w", "P")
{
BlockInput On ;enabled
Send, {d up}
Send, {w up}
Send, {a down}
Send, {s down}
Send, {K}
BlockInput Off ;disabled when completed with the above actions ^ so no key inputs interfere
Sleep, -1
Send, {a up}
Send, {s up}
Send, {d down}
Send, {w down}
return
}
谢谢!如有任何信息或提示,我将不胜感激。
【问题讨论】:
标签: autohotkey