请教C#里使用winio实现移动和点击的问题
想请教高人用winio实现模拟鼠标方面应该怎么做?网上找的那些帖子全是些错的!
主要就是鼠标点击最主要是怎么用winio实现移动鼠标的问题!
public void Move(long x, long y, long z) { KBCWait4IBE(); SetPortVal(0x64, (IntPtr)0xd3, 1); KBCWait4IBE(); Thread.Sleep(5); SetPortVal(0x60, (IntPtr)0x28, 1); KBCWait4IBE(); Thread.Sleep(5); SetPortVal(0x64, (IntPtr)0xd3, 1); KBCWait4IBE(); Thread.Sleep(5); SetPortVal(0x60, (IntPtr)x, 1); KBCWait4IBE(); Thread.Sleep(5); SetPortVal(0x64, (IntPtr)0xd3, 1); KBCWait4IBE(); Thread.Sleep(5); SetPortVal(0x60, (IntPtr)y, 1); KBCWait4IBE(); Thread.Sleep(5); SetPortVal(0x64, (IntPtr)0xd3, 1); KBCWait4IBE(); Thread.Sleep(5); SetPortVal(0x60, (IntPtr)z, 1); }