我想用按键精灵或者类似的软件做一个csgo急停脚本 效果要这样:我按下w
发布网友
发布时间:2022-05-06 08:42
我来回答
共1个回答
热心网友
时间:2023-10-08 20:42
W键弹起按键精灵自动按s键,代码如下:满意请采纳,谢谢
Declare Function GetAsyncKeyState Lib "user32" Alias "GetAsyncKeyState" (ByVal vKey As Long) As Integer
ajm = 87 //w的按键码
Do
aj = WaitKey
If aj = 87 Then
do
Key = GetAsyncKeyState(ajm)
If Key = 0 Then //w键是弹起状态
KeyPress "S", 1
Exit Do
End If
Loop
End If
Delay 10
Loop