首先新建一个脚本 把文件RegDll和dm两个插件添加到附件里面去
输入代码
Call Register_dm
Sub Register_dm
Set ws=createobject("Wscript.Shell")
ws.run "regsvr32 atl.dll /s"
Set ws=nothing
PutAttachment ".", "dm.dll"
PutAttachment ".\Plugin", "RegDll.dll"
Call Plugin.RegDll.Reg(".\dm.dll")
Delay 200
Set dm = createobject("dm.dmsoft")
ver = dm.Ver()
If ver <>"3.1233" then
Set dm = nothing
Set ws=createobject("Wscript.Shell")
ws.run "regsvr32 .\dm.dll /s"
Set ws=nothing
Delay 1000
Set dm = createobject("dm.dmsoft")
Delay 200
ver = dm.Ver()
If ver <>"3.1233" then
MessageBox "插件版本错误,当前使用的版本是:" &ver &",插件所在目录是:" &dm.GetBasePath() &Chr(10) &"请关闭程序,重新打开本程序再尝试"
End if
End If
End Sub
运行一次即可
还有要把文件RegDll和dm两个插件复制到按键精灵的plugin文件夹中哦
PutAttachment "c:\test_game","dm.dll"这里是你大漠插件的绝对路径(比如大漠插件在C盘下的test_game文件下)PutAttachment ".\plugin","RegDll.dll"
Public Declare Function SetDllPathW Lib ".\plugin\RegDll.dll" Alias "SetDllPathW" (ByVal path As String, ByVal mode As Long) As Long
TracePrint SetDllPathW("c:\test_game\dm.dll", 0) 这里是你大漠插件的绝对路径(比如大漠插件在C盘下的test_game文件下)
下载大漠压缩包是,会附带一个"RegDll.dll"文件,将此文件拷贝到按键精灵"plugin"目录下
或者将".\plugin"替换成存放"RegDll.dll"文件的绝对路径
-------------------------------------
以上是免注册,建议免注册,因为免注册可以防检测
以下普通注册
解压下载好的大漠压缩包,运行"注册大漠插件到系统.bat"即可
大漠插件及其注册插件,大漠综合工具,大漠综合文档。大漠插件帮助文件里面其实是有说明的 首先新建一个脚本 把文件RegDll和dm两个插件添加到附件里面去 输入代码 Call Register_dm Sub Register_dm Set ws=createobject("Wscript.Shell") ws.run "regsvr32 atl.dll /s" Set ws=nothing PutAttachme。
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)