如何使用Aforge.net控制带有颜色跟踪的鼠标光标?

时间:2018-01-28 12:44:00

标签: c# aforge mouse-cursor

我想根据对象的颜色移动鼠标光标。我可以对象跟踪,但我无法控制鼠标。我怎么能这样做?

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);

0 个答案:

没有答案