[DllImport("user32.dll")]
public static extern short GetAsyncKeyState(UInt16 virtualKeyCode);
private void timer1_Tick(object sender, EventArgs e)
{
if (GetAsyncKeyState(VK_LBUTTON = 0x01))
{
}
}
}
我不断收到一条错误消息,提示“当前上下文中不存在名称‘VK_LBUTTON’”。任何帮助将非常感激。