2
我有這個小AutoHotkey的腳本做的東西,而移動和左擊壓或右擊按下
LoopFunc()
{
while (GetKeyState("shift") && GetKeyState("lbutton")) || GetKeyState("rbutton")
{
send, {4}
sleep, 500
}
}
~rbutton::LoopFunc()
~+lbutton::LoopFunc()
RButton作品如預期,但移 + LButton只有兩次循環。
任何想法爲什麼?
編輯:
我將此添加到我的while
循環
n := GetKeyState("shift", "p")
m := GetKeyState("lbutton")
tooltip, %n% %m%
首先提示是1 1
,第二個提示是0 1
。
更新代碼的工作就像一個魅力。謝謝。 –