五分钟搞定大漠插件找图-按键精灵开发教程
lynnk
5530 人已围观
示例代码:
//*******************大漠插件注册开始*******************// set ws=createobject("Wscript.Shell") ws.run "regsvr32 atl.dll /s" set ws=nothing PutAttachment "c:\大漠插件","*.*" PutAttachment ".\Plugin" ,"RegDll.dll" Call Plugin.RegDll.Reg("c:\大漠插件\dm.dll") Set dm = createobject("dm.dmsoft") ver = dm.Ver() TracePrint ver //*******************大漠插件注册结束*******************// //获取句柄 hwnd = dm.FindWindow("", "新标签页 - 360极速浏览器X 21.0") //绑定窗口 dm.BindWindow hwnd, "normal", "normal", "normal", 0 //设置图片存放路径 dm.SetPath ("c:\大漠插件") dm_ret = dm.FindPic(635,190,2125,980,"B站.bmp","000000",0.9,0,intX,intY) If intX >= 0 and intY >= 0 Then TracePrint "找到" dm.MoveTo intX+10, intY+10 dm.LeftClick End If
B站视频教程链接:https://www.bilibili.com/video/BV18f4y1Z7ee/?vd_source=6173de032b413211a9ecbe75f3c9a713
发表评论
◎欢迎参与讨论,请在这里发表您的看法、交流您的观点。
TracePrint ver这个插件注册有问题吗