毕业论文开发语言企业开发JAVA技术.NET技术WEB开发Linux/Unix数据库技术Windows平台移动平台嵌入式论文范文英语论文
您现在的位置: 毕业论文 >> net技术 >> 正文

怎样使用C#.net去解决远程控制别机鼠标 第2页

更新时间:2012-7-4:  来源:毕业论文

  MouseMove(MEvent.X, MEvent.Y);
  MouseButton((int)MouseEventFlag.LeftUp, MEvent.X, MEvent.Y, 0, 0);
  break;
  case MouseEventType.MouseRightDown:
  MouseButton((int)MouseEventFlag.RightDown, MEvent.X, MEvent.Y, 0, 0);
  break;
  case MouseEventType.MouseRightUp:
  MouseButton((int)MouseEventFlag.RightUp, MEvent.X, MEvent.Y, 0, 0);
  break;
  case MouseEventType.MouseClick:
  MouseMove(MEvent.X, MEvent.Y);
  MouseButton((int)MouseEventFlag.LeftDown, MEvent.X, MEvent.Y, 0, 0);
  MouseButton((int)MouseEventFlag.LeftUp, MEvent.X, MEvent.Y, 0, 0);
  break;
  case MouseEventType.MouseDoubleClick:
  MouseMove(MEvent.X, MEvent.Y);
  MouseButton((int)MouseEventFlag.LeftDown, MEvent.X, MEvent.Y, 0, 0);
  MouseButton((int)MouseEventFlag.LeftDown, MEvent.X, MEvent.Y, 0, 0);
  MouseButton((int)MouseEventFlag.LeftUp, MEvent.X, MEvent.Y, 0, 0);
  MouseButton((int)MouseEventFlag.LeftUp, MEvent.X, MEvent.Y, 0, 0);
  break;
  }
  }
  }
  /// <summary>
  /// 执行鼠标事件
  /// </summary>
  /// <param name="code"></param>
  private void doMouseEvent(Code code)
  {
  MouseEvent mouseCode = code as MouseEvent;
  MouseHook hook = new MouseHook();
  if (mouseCode != null)
  {
  switch (mouseCode.Type)
  {
  case MouseEventType.MouseMove:
  hook.MouseWork(mouseCode);
  break;
  case MouseEventType.MouseClick:
  hook.MouseWork(mouseCode);
  break;
  default:
  hook.MouseWork(mouseCode);
  break;
  }
  }
  }

上一页  [1] [2] 

设为首页 | 联系站长 | 友情链接 | 网站地图 |

copyright©youerw.com 优尔论文网 严禁转载
如果本毕业论文网损害了您的利益或者侵犯了您的权利,请及时联系,我们一定会及时改正。