c++ mouse_event 有特征码 怎么样能让特征码消除 5

 我来答
藤原子大雄
2017-12-04 · TA获得超过7197个赞
知道大有可为答主
回答量:6977
采纳率:82%
帮助的人:1970万
展开全部
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
已赞过 已踩过<
你对这个回答的评价是?
评论 收起
推荐律师服务: 若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询

为你推荐:

下载百度知道APP,抢鲜体验
使用百度知道APP,立即抢鲜体验。你的手机镜头里或许有别人想知道的答案。
扫描二维码下载
×

类别

我们会通过消息、邮箱等方式尽快将举报结果通知您。

说明

0/200

提交
取消

辅 助

模 式