我想根据对象的颜色移动鼠标光标。我可以对象跟踪,但我无法控制鼠标。我怎么能这样做?
this.Cursor = new Cursor(Cursor.Current.Handle);
Cursor.Position = new Point(Cursor.Position.X - 50, Cursor.Position.Y - 50);
int xX = cu.posX(kaynakBox.Width, objectRect.X, objectRect.Width);
int yY = cu.posY(kaynakBox.Height, objectRect.Y, objectRect.Height);