
c++ mouse_event 有特征码 怎么样能让特征码消除 5
1个回答
展开全部
Window.GetKeyFocusWnd() UserVar LTop=560,365 鼠标左上 UserVar RBot=830,510 鼠标右下 UserVar dy1=5 鼠标扫描期间间隔时间 UserVar dy2=2000 上钩后等待时间 UserVar mouseType=1434778618 鼠标特征码 UserVar mouseType2=1184891248 鼠标特征码 Dim s,x1,y1,x2,y2,x,y,c,fx,fy,rx,ry,starttime,endtime s=InStr(LTop,",") x1=int(Mid(LTop,1,s-1)) y1=int(Mid(LTop,s+1)) s=InStr(RBot,",") x2=int(Mid(RBot,1,s-1)) y2=int(Mid(RBot,s+1)) Rem Search x=x1 y=y1 Plugin Bkgnd.MoveTo(hwnd,x,y) Delay 1000 starttime=Now While y<y2 y=y+20 While x<x2 x=x+10 //这里换成后台句柄模拟移动的鼠标没反应怎么回事?读取的X,Y坐标是前台荧屏的坐标?在后台他不能运行这条命令 MoveTo x,y Delay dy1 If GetCursorShape(0)=mouseType Delay 600 Plugin Window.SendKeyPress(hwnd,71) Delay dy2 ElseIf GetCursorShape(0)=mouseType2 Delay 600 Plugin Window.SendKeyPress(hwnd,71) Delay dy2 EndIf EndWhile x=x1 EndWhile Goto Search
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询