|
[广告] VBA代码宝 - VBA编程加强工具 · VBA代码随查随用 · 内置多项VBA编程加强工具 ★ 免费下载 ★ ★ 使用手册★
Sub test()
Dim Dm
Set Dm = CreateObject("dm.dmsoft")
p1 = Dm.FindPic(0, 0, 1042, 900, ThisWorkbook.Path & "\021.bmp", "000000", 0.9, 0, tx0, ty0)
If tx0 >= 0 And ty0 >= 0 Then
tx0 = tx0 + 24: ty0 = ty0 - 181
Do While True
For i = 1 To 5
For j = 1 To 4
tx = tx0 + (j - 1) * 36
ty = ty0 + (i - 1) * 32
p2 = Dm.FindPic(tx, ty, tx + 26, ty + 19, ThisWorkbook.Path & "\block.bmp", "000000", 0.7, 0, intx, inty)
If intx >= 0 And inty >= 0 Then Cells(8, k0 * 5 + i + 1) = Cells(8, k0 * 5 + i + 1) & ChrW(j + 64)
Next
Next
k0 = k0 + 1: If k0 = 5 Then Exit Sub
If k0 < 4 Then
tx0 = tx0 + 181
Else
tx0 = tx0 - 181 * 3
ty0 = ty0 + 181
End If
Loop
End If
Set Dm = Nothing
End Sub
大漠识图.zip
(1.47 MB, 下载次数: 35)
|
|