按键精灵用的大漠插件,为什么我这样写在游戏里试验还不能后台呢?是哪里错了还是漏了什么?
Setdm=createobject("dm.dmsoft")PutAttachment"Y:\tyl","*.*"PutAttachment".\plugin","Re...
Set dm = createobject("dm.dmsoft")
PutAttachment "Y:\tyl", "*.*"
PutAttachment ".\plugin", "Regdll.dll"
call Plugin.Regdll.reg("c:\test_game\dm.dll")
//其实注册插件到这里就注册好了
dm.SetPath "c:\test_game"
// 获取句柄
hwnd = dm.GetMousePointWindow()
// 绑定
dm_ret = dm.BindWindow(hwnd,"dx","dx","dx",0)
Delay 2000
// 下面就是脚本部分了 省略
Do
KeyPress "1", 2
KeyPress "2", 1
KeyPress "3", 1
KeyPress "4", 1
KeyPress "5", 1
KeyPress "1", 2
KeyPress "3", 1
KeyPress "F", 3
KeyPress "F1", 1
Loop
// 下面这是脚本结束时执行的部分
Sub OnScriptExit()
dm.UnBindWindow
End Sub
// 结束 展开
PutAttachment "Y:\tyl", "*.*"
PutAttachment ".\plugin", "Regdll.dll"
call Plugin.Regdll.reg("c:\test_game\dm.dll")
//其实注册插件到这里就注册好了
dm.SetPath "c:\test_game"
// 获取句柄
hwnd = dm.GetMousePointWindow()
// 绑定
dm_ret = dm.BindWindow(hwnd,"dx","dx","dx",0)
Delay 2000
// 下面就是脚本部分了 省略
Do
KeyPress "1", 2
KeyPress "2", 1
KeyPress "3", 1
KeyPress "4", 1
KeyPress "5", 1
KeyPress "1", 2
KeyPress "3", 1
KeyPress "F", 3
KeyPress "F1", 1
Loop
// 下面这是脚本结束时执行的部分
Sub OnScriptExit()
dm.UnBindWindow
End Sub
// 结束 展开
2个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询