我正在使用InputSimulator来模拟按键和鼠标点击。到目前为止,我测试过的每个键都可以正常工作,但鼠标按钮却不能。我是这样发送它们的:
private void button2_Click(object sender, EventArgs e) //In this example I am trying to simulate the left mouse button
{
System.Threading.Thread.Sleep(2000);
InputSimulator.SimulateKeyPress(VirtualKeyCode.LBUTTON);
}
但是什么都没有发生。我做错了什么吗?
库:InputSimulator