按键精灵怎么写按下Y键=依次按下A+X+1+Z键

2025-03-10 06:26:24
推荐回答(2个)
回答1:

While true
键码=WaitKey()
If 键码 = 89 then
KeyPress "A", 1
Delay 10 //按键之间的时间间隔,如果想最快可把这个删掉
KeyPress "X", 1
Delay 10
KeyPress "1", 1
Delay 10
KeyPress "Z", 1
end if
Wend

回答2:

Do
k = GetLastKey
If k = 89 Then
KeyDown 65, 1
KeyDown 88, 1
KeyDown 49, 1
KeyDown 90, 1
End If
Loop
希望对您有帮助。