按键精灵脚本,按下键盘某键是映射鼠标按下(不是单击),松开键盘时鼠标也松开

2024-10-31 23:21:13
推荐回答(1个)
回答1:

Private Declare Function GetAsyncKeyState Lib "user32" (ByVal vKey As Long) As Integer
//这一句是一行
While True
If GetAsyncKeyState(65) <> 0 Then //65是A的ASCII码,不等于0表示按下
LeftDown 1
Else
LeftUp 1
End If
Delay 50
Wend