按键精灵大漠插件使用基础练习入门代码

Set dm = CreateObject("dm.dmsoft")      //绑定大漠插件
//MsgBox dm.ver      //绑定大漠成功的话会弹出字
//dm.BindWindow 1905432, "normal", "normal", "normal", 0//前台模式
dm.BindWindow 1905432, "dx", "windows", "windows", 0//后台模式
Delay 1000//用后台模式一般都要加个延迟

dm.FindPic 0,0,2048,2048,"C:\Users\Administrator\Desktop\2.bmp","000000",0.8,0,x,y    //找图

dm.capture 0, 0, 1000, 1000, "C:\Users\Administrator\Desktop\截图.bmp"
dm.Moveto 200, 200
dm.leftclick

dm.UnBindWindow            //解绑窗口
Set dm = Nothing			//释放大漠插件

你可能感兴趣的:(按键精灵,window)