1. 首页
  2. 编程语言
  3. Delphi
  4. delphi_多种鼠标模拟方式

delphi_多种鼠标模拟方式

上传者: 2019-09-08 20:13:57上传 RAR文件 984.81KB 热度 27次
delphi_多种鼠标模拟方式//4种方法模拟ifcombobox2.ItemIndex=0thenbegin//1、发送窗口消息Message//lparam高16位是y低16位是x算法就是x+y左移16位//lparam:=p1.X+p1.Yshl16;sendMessage(WinHandle,WM_LBUTTONDOWN,MK_LBUTTON,MAKELPARAM(p1.X,p1.Y));//鼠标按下sleep(40);sendMessage(WinHandle,WM_LBUTTONUP,MK_LBUTTON,MAKELPARAM
用户评论