按键精灵改成后台的,

2025-05-01 10:41:41
推荐回答(2个)
回答1:

//大漠插件必须的代码段 创造插件环境用的
PutAttachment "C:\text" ,"*.*" '释放指定类型附件到指定目录
Set dm = createobject("dm.dmsoft")'创建大漠对象
ver = dm.Ver()
If len(ver) = 0 Then
MessageBox "创建对象失败,检查系统是否禁用了vbs脚本权限"
EndScript
End If
//设定大漠路径
dm_ret = dm.SetPath("C:\text\")
//预载附件
dm_ret = dm.LoadPic("*.bmp")
dm_ret = dm.SetShowErrorMsg(0)

//得到句柄 并且赋值到变量到需要绑定的窗口
CK = dm.GetMousePointWindow()
dm.MoveWindow CK,-5,0
//正确的仙侠传大漠绑定模式
dm_ret = dm.BindWindowEx(CK,"dx2","dx.mouse.api","dx.keypad.api","dx.public.active.api",0)
Delay 1500
If dm_ret=1
Else'否则
MessageBox "绑定失败,重启脚本或联系作者"
EndScript
End If
//大漠插件注册完毕
Delay 1500

dm_ret=dm.findpic(0,0,1024,768,"防挂机.bmp",0.9,intX,intY)
If x>=0 And y>=0 Then
dm.MoveTo intX, inty
Delay 500
End If

//把你需要找的图片和大漠插件一起放到附件里面,就OK了。

回答2:

楼主用的是最基本小白用的方法吧....哪来那么多的坐标。。