本文整理汇总了C#中System.Utils.drawMouse方法的典型用法代码示例。如果您正苦于以下问题:C# Utils.drawMouse方法的具体用法?C# Utils.drawMouse怎么用?C# Utils.drawMouse使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类System.Utils
的用法示例。
在下文中一共展示了Utils.drawMouse方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: moveMouse
/// <summary>
/// Move the mouse to Point p
/// </summary>
/// <param name="p">The point to move the mouse to</param>
public void moveMouse(Point p)
{
Cursor cur = Cursors.Default;
screen = DrawAbleScreenFetcher.fetchOpaque(getPid());
if (screen == null)
{
Console.WriteLine("Screen is null");
return;
}
if (appWin == IntPtr.Zero)
{
Console.WriteLine("Mouse appWin is null1: " + getPid());
return ;
}
this.X = p.X;
this.Y = p.Y;
//PostMessage(appWin, (int)WMessages.WM_NCHITTEST, 0, 0x009803CE);
//SendMessage(appWin, (int)WMessages.WM_SETCURSOR, (long)appWin, ZiadSpace.Util.BitHelper.MakeLong(300, 200));
//PostMessage(hWndCalc, (int)WMessages.WM_MOUSEMOVE, 0, ZiadSpace.Util.BitHelper.MakeDword(300, 200));
//PostMessage(hWndCalc, (int)WMessages.WM_LBUTTONDOWN, 0, ZiadSpace.Util.BitHelper.MakeDword(300, 200));
//PostMessage(hWndCalc, (int)WMessages.WM_LBUTTONUP, 0, ZiadSpace.Util.BitHelper.MakeDword(300,200));
//screen.Invalidate();
//screen.Invalidate();
//dllMoveMouse(appWin, X, Y);
//dllMuseClick(appWin, X, Y);
screen.drawMouse(new Point(p.X, p.Y), cur);
//screen.drawLine(Pens.BurlyWood, p, new Point(p.X + 5, p.Y));
dllMoveMouse(appWin, p.X, p.Y);
}