我使用InputSimulator来模拟按键和鼠标点击。到目前为止,我测试过的每一个键都正常工作,除了鼠标按钮。trying to simulate the left mouse button System.Threading.Thread.Sleep(2000);
InputSimulator.SimulateKeyPress
我很难弄明白为什么下面的函数只把我的鼠标从0,0个屏幕坐标移动到我的最终目的地,尽管Cursor.Position返回了正确的屏幕坐标。如果有人能开导我,我将不胜感激。 public void MoveAndClick(int x, int y, int steps) Point start = Cursor.Position; slope.X = slope.X / steps;
slop