Dim dm
Set dm = CreateObject("dm.dmsoft")
dm_ret = dm.SetPath("C:\dmo\7.2422\dm.dll")'设置目录
If dm.Reg("你的大漠注册码", "你的大漠附加码") = 1 Then
TracePrint "大漠插件注册成功"
Else
TracePrint "大漠插件注册失败"
WScript.Quit
End If
Dim 文件夹数组
文件夹数组 = lib.文件.遍历指定目录下所有文件夹名("D:\fb贴")
Dim i, intX, intY, x, Text, Text2, Text3, Text4, Text5, Text6, Text7, 返回值, 文件名数组, n
For i = 0 To UBound(文件夹数组) - 1
TracePrint 文件夹数组(i)
Text = "D:\fb贴\"
Text2 = 文件夹数组(i)
Text3 = Text & Text2
Call Plugin.Sys.SetCLB(Text3)
' 绑定窗口
hwnd = dm.FindWindow("", "窗口标题") ' 根据窗口标题找到窗口句柄
If dm.BindWindow(hwnd, "gdi", "windows", "windows", 0) <> 1 Then
TracePrint "绑定窗口失败"
Exit For
End If
x = 0
While x = 0
' 查找图片
If dm.FindPic(0, 0, 1080, 1920, "fx.bmp", "000000", 0.9, 0, intX, intY) > 0 Then
dm.MoveTo(intX, intY)
dm.LeftClick()
dm.MoveTo(intX - 80, intY - 80)
' 内嵌循环处理更多图片
While x = 0
If dm.FindPic(0, 0, 1080, 1920, "t.bmp", "000000", 0.9, 0, intX, intY) > 0 Then
dm.MoveTo(intX, intY)
dm.LeftClick()
dm.MoveTo(intX - 30, intY - 30)
' 内嵌循环处理更多图片
While x = 0
If dm.FindPic(0, 0, 1080, 1920, "tj.bmp", "000000", 0.9, 0, intX, intY) > 0 Then
dm.MoveTo(intX, intY)
dm.LeftClick()
' 内嵌循环处理更多图片
While x = 0
If dm.FindPic(0, 0, 1080, 1920, "cdn.bmp", "000000", 0.9, 0, intX, intY) > 0 Then
dm.MoveTo(intX + 400, intY)
dm.LeftClick()
dm.KeyDown(17)
dm.KeyPress(86)
dm.KeyUp(17)
dm.KeyPress(13) ' 按下回车键
' 内嵌循环处理更多图片
While x = 0
If dm.FindPic(0, 0, 1080, 1920, "wjm.bmp", "000000", 0.9, 0, intX, intY) > 0 Then
Text6 = "D:\fb贴\" & Text2
文件名数组 = lib.文件.遍历指定目录下所有文件名(Text6)
Dim j
For n = 0 To UBound(文件名数组) - 2
TracePrint 文件名数组(n)
Text7 = Text7 & """" & 文件名数组(n) & """ "
Next
' 内嵌循环处理更多图片
While x = 0
If dm.FindPic(0, 0, 1080, 1920, "ft.bmp", "000000", 0.9, 0, intX, intY) > 0 Then
dm.MoveTo(intX, intY)
dm.LeftClick()
dm.Delay(2500)
' 内嵌循环处理更多图片
While x = 0
If dm.FindPic(1279, 889, 1568, 1033, "d.bmp", "000000", 0.9, 0, intX, intY) > 0 Then
dm.MoveTo(intX, intY)
dm.LeftClick()
' 内嵌循环处理更多图片
While x = 0
If dm.FindPic(1188, 425, 1442, 1014, "bj.bmp", "000000", 0.9, 0, intX, intY) > 0 Then
dm.MoveTo(intX, intY)
dm.LeftClick()
' 内嵌循环处理更多图片
While x = 0
If dm.FindPic(0, 0, 1080, 1920, "rq.bmp", "000000", 0.9, 0, intX, intY) > 0 Then
dm.MoveTo(intX, intY + 25)
dm.LeftClick()
Call Plugin.Sys.SetCLB(Text2)
dm.KeyDown(17)
dm.KeyPress(86)
dm.KeyUp(17)
dm.MoveTo(intX + 400, intY + 150)
dm.LeftClick()
dm.Delay(3000)
' 内嵌循环处理更多图片
While x = 0
If dm.FindPic(1309, 845, 1551, 961, "d.bmp", "000000", 0.9, 0, intX, intY) > 0 Then
dm.MoveTo(905, 1024)
dm.LeftClick()
For j = 1 To n
dm.Delay(100)
' 内嵌循环处理更多图片
While x = 0
If dm.FindPic(1728, 195, 1896, 251, "d.bmp", "000000", 0.9, 0, intX, intY) > 0 Then
dm.MoveTo(intX, intY)
dm.LeftClick()
' 内嵌循环处理更多图片
While x = 0
If dm.FindPic(0, 0, 1920, 1080, "bj.bmp", "000000", 0.9, 0, intX, intY) > 0 Then
dm.MoveTo(intX, intY)
dm.LeftClick()
' 内嵌循环处理更多图片
While x = 0
If dm.FindPic(0, 0, 1920, 1080, "rq.bmp", "000000", 0.8, 0, intX, intY) > 0 Then
dm.MoveTo(intX, intY + 25)
dm.LeftClick()
Call Plugin.Sys.SetCLB(Text2)
dm.KeyDown(17)
dm.KeyPress(86)
dm.KeyUp(17)
dm.MoveTo(intX + 400, intY + 150)
dm.LeftClick()
' 内嵌循环处理更多图片
While x = 0
If dm.FindPic(0, 0, 1024, 768, "f.bmp", "000000", 0.9, 0, intX, intY) > 0 Then
dm.MoveTo(836, 833)
dm.LeftClick()
dm.KeyPress("Right")
x = 1
End If
dm.Delay(100)
Wend
End If
dm.Delay(100)
Wend
End If
dm.Delay(100)