需要做一个自动化的按键助手
想判断 是否的左键 是否出现 单击 (以windows桌面为全局界面)
请教如何判断
网上找的这个代码
全局定义
Public Declare Function GetAsyncKeyState Lib "user32" (ByVal vkey As Long) As Integer
计时器写入
If GetAsyncKeyState(&H201) < 0 Then
Dim x =System.Windows.Forms.Cursor.Position.X.ToString()
Dim y = System.Windows.Forms.Cursor.Position.Y.ToString()
MessageBox.Show(x & "," & y)
End If
不起作用,
请教如何对应,谢谢