大漠插件dm_ret = dm.BindWindow(qqspeed,"dx","dx","dx",0)绑定窗口无效(或者说不能后台)?(QQ飞车) 10
模式参数:1时能用两天,之后又出现了同上模式参数:0时的情况。大神帮忙看看,想搞个后台硬件按键模拟,“windows”模式行不通,如能解决真是万般感谢!!!Delay50...
模式参数:1 时能用两天,之后又出现了同上模式参数:0 时的情况。大神帮忙看看 ,想搞个后台硬件按键模拟 ,“windows”模式行不通,如能解决真是万般感谢!!!
Delay 50
PutAttachment "c:\test_game","*.*"
Set ws = createobject("Wscript.Shell")
ws.run "regsvr32 c:\test_game\dm.dll /s"
set ws=nothing
Delay 50
Set dm = CreateObject("dm.dmsoft")
ver = dm.Ver()
If len(ver) = 0 Then
MessageBox "注册失败"
EndScript
End If
qqspeed = dm.FindWindow("","QQ飞车")
dm_ret = dm.BindWindow(qqspeed,"dx","dx","dx",0)
Rem a
Delay 200
dm.KeyPress 13
Delay 200
dm.KeyPress 116
Delay 200
dm.KeyPress 38
Goto a
经反复调试,本人已找到答案。dm_ret = dm.BindWindow(qqspeed,"dx","dx","dx",0)模式参数:0 在我的win7系统电脑下不能后台,dm_ret = dm.BindWindow(qqspeed,"dx","dx","dx",1)模式参数:1 在按键精灵中可行,但要关闭金山毒霸,腾讯电脑管家可不关(我装的是这两个软件。360或其他会不会影响有待测试) 注:生存小精灵用会失效! 展开
Delay 50
PutAttachment "c:\test_game","*.*"
Set ws = createobject("Wscript.Shell")
ws.run "regsvr32 c:\test_game\dm.dll /s"
set ws=nothing
Delay 50
Set dm = CreateObject("dm.dmsoft")
ver = dm.Ver()
If len(ver) = 0 Then
MessageBox "注册失败"
EndScript
End If
qqspeed = dm.FindWindow("","QQ飞车")
dm_ret = dm.BindWindow(qqspeed,"dx","dx","dx",0)
Rem a
Delay 200
dm.KeyPress 13
Delay 200
dm.KeyPress 116
Delay 200
dm.KeyPress 38
Goto a
经反复调试,本人已找到答案。dm_ret = dm.BindWindow(qqspeed,"dx","dx","dx",0)模式参数:0 在我的win7系统电脑下不能后台,dm_ret = dm.BindWindow(qqspeed,"dx","dx","dx",1)模式参数:1 在按键精灵中可行,但要关闭金山毒霸,腾讯电脑管家可不关(我装的是这两个软件。360或其他会不会影响有待测试) 注:生存小精灵用会失效! 展开
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询