大漠插件 按键精灵 找到字怎么返回坐标 30
代码如下Setdm=createobject("dm.dmsoft")dm.SetDict0,(".\plugin\dm\font.txt")dm.SetPath(".\...
代码如下
Set dm = createobject("dm.dmsoft")
dm.SetDict 0, (".\plugin\dm\font.txt")
dm.SetPath (".\plugin\dm")
Rem start
hwnd = Plugin.Window.Find(0, "客户端")
Call Plugin.Window.Move(hwnd, -1, -1)
dm_ret = dm.BindWindow(hwnd,"dx","dx","dx",0)
Rem is_user
dm_ret = dm.FindStr(0,0,1024,200,"play","000000-000000",1.0,intX,intY)
If intX >= 0 and intY >= 0 Then
Msgbox "找到"
MessageBox intX
dm_ret = dm.moveto (intX+5,intY+5)
Delay 500
dm_ret = dm.leftclick
Else
MessageBox "找不到 o.o"
End If
// 已注册插件,以上代码会弹出“找到”,说明可以找到字,可是intX为空值,也就点击不了 展开
Set dm = createobject("dm.dmsoft")
dm.SetDict 0, (".\plugin\dm\font.txt")
dm.SetPath (".\plugin\dm")
Rem start
hwnd = Plugin.Window.Find(0, "客户端")
Call Plugin.Window.Move(hwnd, -1, -1)
dm_ret = dm.BindWindow(hwnd,"dx","dx","dx",0)
Rem is_user
dm_ret = dm.FindStr(0,0,1024,200,"play","000000-000000",1.0,intX,intY)
If intX >= 0 and intY >= 0 Then
Msgbox "找到"
MessageBox intX
dm_ret = dm.moveto (intX+5,intY+5)
Delay 500
dm_ret = dm.leftclick
Else
MessageBox "找不到 o.o"
End If
// 已注册插件,以上代码会弹出“找到”,说明可以找到字,可是intX为空值,也就点击不了 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询