|
发表于 2012-1-1 11:23:55
|
显示全部楼层
Func ddb_init()
;287,106
;287,118
Local $maxi = 7, $maxy = 7
$count = 0
While $stopgame = 0
Local $ddb_str = ""
For $k = 1 To 1
Local $dianji = 0, $sc1 = 0, $sc2 = 0, $kk = 2
If PixelGetColor(388, 385) = 0xF8A0F0 Then
Sleep(3000)
MouseMove(388, 385, 0)
Sleep(100)
MouseClick("left")
EndIf
If PixelGetColor(451, 383) = 0xF8BC30 Then
ExitLoop
EndIf
If WinExists('对对碰角色版') Then
$pos = WinGetPos('对对碰角色版')
If $pos[0] <> 0 And $pos[1] <> 0 Then
WinActivate('对对碰角色版')
Sleep(300)
WinMove('QQ游戏 - 对对碰角色版', "", 0, 0)
Sleep(300)
EndIf
Else
MsgBox(0, "提示", "没有找到对对碰角色版,请打开后重新按F3 3秒后关闭", 1)
MsgBox(0, "提示", "没有找到对对碰角色版,请打开后重新按F3 2秒后关闭", 1)
MsgBox(0, "提示", "没有找到对对碰角色版,请打开后重新按F3 1秒后关闭", 1)
ExitLoop 2
EndIf
;MouseMove(473, 72, 0)
;Sleep(50)
For $i = 0 To 7
For $j = 0 To 7
;$gc = 63843629
$ddb_data[$i][$j] = PixelChecksum(286 + 48 * $i - 2, 114 + 48 * $j - 2, 286 + 48 * $i + 2, 114 + 48 * $j + 2)
;$ddb_str = $ddb_str & "|" & $ddb_data[$i][$j]
Next
Next
;$sc1 = PixelChecksum(275, 99, 641, 134)
; A---------
; A
; AA A
For $i = 2 To $maxi - 1
For $j = 0 To $maxy - 2
If $ddb_data[$i][$j] = $ddb_data[$i][$j + 1] And $ddb_data[$i][$j] = $ddb_data[$i - 1][$j + 2] And $ddb_data[$i][$j] = $ddb_data[$i - 2][$j + 2] Then
If $ddb_data[$i][$j] = $ddb_data[$i + 1][$j + 2] Then
For $k = 1 To 3
MouseMove(287 + $i * 48, 118 + ($j + 2) * 48, 0)
Sleep(100)
MouseClick("left")
Sleep(200)
MouseMove(287 + ($i + 1) * 48, 118 + ($j + 2) * 48, 0)
Sleep(100)
MouseClick("left")
Next
$dianji = 1
ToolTip("1")
ExitLoop 3
EndIf
EndIf
Next
Next
; A---------
; A
; AA
; A
For $i = 2 To $maxi
For $j = 0 To $maxy - 3
If $ddb_data[$i][$j] = $ddb_data[$i][$j + 1] And $ddb_data[$i][$j] = $ddb_data[$i - 1][$j + 2] And $ddb_data[$i][$j] = $ddb_data[$i - 2][$j + 2] Then
If $ddb_data[$i][$j] = $ddb_data[$i][$j + 3] Then
For $k = 1 To 3
MouseMove(287 + $i * 48, 118 + ($j + 2) * 48, 0)
Sleep(100)
MouseClick("left")
Sleep(200)
MouseMove(287 + ($i + 0) * 48, 118 + ($j + 3) * 48, 0)
Sleep(100)
MouseClick("left")
Next
$dianji = 1
ToolTip("1")
ExitLoop 3
EndIf
EndIf
Next
Next
; A---------
; A
; A AA
For $i = 1 To $maxi - 2
For $j = 0 To $maxy - 2
If $ddb_data[$i][$j] = $ddb_data[$i][$j + 1] And $ddb_data[$i][$j] = $ddb_data[$i - 1][$j + 2] And $ddb_data[$i][$j] = $ddb_data[$i + 1][$j + 2] Then
If $ddb_data[$i][$j] = $ddb_data[$i + 2][$j + 2] Then
For $k = 1 To 3
MouseMove(287 + ($i - 1) * 48, 118 + ($j + 2) * 48, 0)
Sleep(100)
MouseClick("left")
Sleep(200)
MouseMove(287 + ($i + 0) * 48, 118 + ($j + 2) * 48, 0)
Sleep(100)
MouseClick("left")
Next
$dianji = 1
ToolTip("1")
ExitLoop 3
EndIf
EndIf
Next
Next
; A---------
; A
; AA
; A
For $i = 0 To $maxi - 2
For $j = 0 To $maxy - 3
If $ddb_data[$i][$j] = $ddb_data[$i][$j + 1] And $ddb_data[$i][$j] = $ddb_data[$i + 1][$j + 2] And $ddb_data[$i][$j] = $ddb_data[$i + 2][$j + 2] Then
If $ddb_data[$i][$j] = $ddb_data[$i + 0][$j + 3] Then
For $k = 1 To 3
MouseMove(287 + ($i + 0) * 48, 118 + ($j + 2) * 48, 0)
Sleep(100)
MouseClick("left")
Sleep(200)
MouseMove(287 + ($i + 0) * 48, 118 + ($j + 3) * 48, 0)
Sleep(100)
MouseClick("left")
Next
$dianji = 1
ToolTip("1")
ExitLoop 3
EndIf
EndIf
Next
Next
; AAB
; BBA
For $i = 0 To $maxi - 2
For $j = 0 To $maxy - 1
If $ddb_data[$i][$j] = $ddb_data[$i + 1][$j] And $ddb_data[$i][$j] = $ddb_data[$i + 2][$j + 1] And $ddb_data[$i][$j] <> $ddb_data[$i + 2][$j] Then
If $ddb_data[$i][$j + 1] = $ddb_data[$i + 1][$j + 1] And $ddb_data[$i][$j + 1] = $ddb_data[$i + 2][$j] Then
For $k = 1 To 3
MouseMove(287 + ($i + 2) * 48, 118 + ($j + 0) * 48, 0)
Sleep(100)
MouseClick("left")
Sleep(200)
MouseMove(287 + ($i + 2) * 48, 118 + ($j + 1) * 48, 0)
Sleep(100)
MouseClick("left")
Next
$dianji = 1
ToolTip("1")
ExitLoop 3
EndIf
EndIf
Next
Next
; ABA
; BAB
For $i = 0 To $maxi - 2
For $j = 0 To $maxy - 1
If $ddb_data[$i][$j] = $ddb_data[$i + 2][$j] And $ddb_data[$i][$j] = $ddb_data[$i + 1][$j + 1] And $ddb_data[$i][$j] <> $ddb_data[$i + 1][$j] Then
If $ddb_data[$i][$j + 1] = $ddb_data[$i + 1][$j] And $ddb_data[$i][$j + 1] = $ddb_data[$i + 2][$j + 1] Then
For $k = 1 To 3
MouseMove(287 + ($i + 1) * 48, 118 + ($j + 0) * 48, 0)
Sleep(100)
MouseClick("left")
Sleep(200)
MouseMove(287 + ($i + 1) * 48, 118 + ($j + 1) * 48, 0)
Sleep(100)
MouseClick("left")
Next
$dianji = 1
ToolTip("1")
ExitLoop 3
EndIf
EndIf
Next
Next
; AB
; AB
; BA
For $i = 0 To $maxi - 1
For $j = 0 To $maxy - 2
If $ddb_data[$i][$j] = $ddb_data[$i][$j + 1] And $ddb_data[$i][$j] = $ddb_data[$i + 1][$j + 2] And $ddb_data[$i][$j] <> $ddb_data[$i][$j + 2] Then
If $ddb_data[$i + 1][$j] = $ddb_data[$i + 1][$j + 1] And $ddb_data[$i + 1][$j] = $ddb_data[$i][$j + 2] Then
For $k = 1 To 3
MouseMove(287 + ($i + 0) * 48, 118 + ($j + 2) * 48, 0)
Sleep(100)
MouseClick("left")
Sleep(200)
MouseMove(287 + ($i + 1) * 48, 118 + ($j + 2) * 48, 0)
Sleep(100)
MouseClick("left")
Next
$dianji = 1
ToolTip("1")
ExitLoop 3
EndIf
EndIf
Next
Next
; AB
; BA
; AB
For $i = 0 To $maxi - 1
For $j = 0 To $maxy - 2
If $ddb_data[$i][$j] = $ddb_data[$i + 1][$j + 1] And $ddb_data[$i][$j] = $ddb_data[$i][$j + 2] And $ddb_data[$i][$j] <> $ddb_data[$i][$j + 1] Then
If $ddb_data[$i + 1][$j] = $ddb_data[$i][$j + 1] And $ddb_data[$i + 1][$j] = $ddb_data[$i + 1][$j + 2] Then
For $k = 1 To 3
MouseMove(287 + ($i + 0) * 48, 118 + ($j + 1) * 48, 0)
Sleep(100)
MouseClick("left")
Sleep(200)
MouseMove(287 + ($i + 1) * 48, 118 + ($j + 1) * 48, 0)
Sleep(100)
MouseClick("left")
Next
$dianji = 1
ToolTip("1")
ExitLoop 3
EndIf
EndIf
Next
Next
;MsgBox(0,"",$ddb_str)
;A-----------
;A
;*A
;A
For $i = 0 To $maxi - 1
For $j = 0 To $maxy - 3
If $ddb_data[$i][$j] = $ddb_data[$i][$j + 1] And $ddb_data[$i][$j] = $ddb_data[$i][$j + 3] And $ddb_data[$i][$j] = $ddb_data[$i + 1][$j + 2] Then
For $k = 1 To $kk
MouseMove(287 + $i * 48, 118 + ($j + 2) * 48, 0)
Sleep(100)
MouseClick("left")
Sleep(200)
MouseMove(287 + ($i + 1) * 48, 118 + ($j + 2) * 48, 0)
Sleep(100)
MouseClick("left")
Next
$dianji = 1
ToolTip("1")
ExitLoop 3
EndIf
Next
Next
;A-----------
;*A
;A
;A
;$sc1 = PixelChecksum(275, 99, 641, 134)
For $i = 0 To $maxi - 1
For $j = 0 To $maxy - 3
If $ddb_data[$i][$j] = $ddb_data[$i][$j + 2] And $ddb_data[$i][$j] = $ddb_data[$i][$j + 3] And $ddb_data[$i][$j] = $ddb_data[$i + 1][$j + 1] Then
For $k = 1 To $kk
MouseMove(287 + $i * 48, 118 + ($j + 1) * 48, 0)
Sleep(100)
MouseClick("left")
Sleep(200)
MouseMove(287 + ($i + 1) * 48, 118 + ($j + 1) * 48, 0)
Sleep(100)
MouseClick("left")
Next
$dianji = 1
ToolTip("2")
ExitLoop 3
EndIf
Next
Next
;AA*A
; A
For $i = 0 To $maxi - 3
For $j = 0 To $maxy - 1
If $ddb_data[$i][$j] = $ddb_data[$i + 1][$j] And $ddb_data[$i][$j] = $ddb_data[$i + 3][$j] And $ddb_data[$i][$j] = $ddb_data[$i + 2][$j + 1] Then
For $k = 1 To $kk
MouseMove(287 + ($i + 2) * 48, 118 + $j * 48, 0)
Sleep(100)
MouseClick("left")
Sleep(200)
MouseMove(287 + ($i + 2) * 48, 118 + ($j + 1) * 48, 0)
Sleep(100)
MouseClick("left")
Next
$dianji = 1
ToolTip("3")
ExitLoop 3
EndIf
Next
Next
;A*AA
; A
For $i = 0 To $maxi - 3
For $j = 0 To $maxy - 1
If $ddb_data[$i][$j] = $ddb_data[$i + 2][$j] And $ddb_data[$i][$j] = $ddb_data[$i + 3][$j] And $ddb_data[$i][$j] = $ddb_data[$i + 1][$j + 1] Then
For $k = 1 To $kk
MouseMove(287 + ($i + 1) * 48, 118 + $j * 48, 0)
Sleep(100)
MouseClick("left")
Sleep(200)
MouseMove(287 + ($i + 1) * 48, 118 + ($j + 1) * 48, 0)
Sleep(100)
MouseClick("left")
Next
$dianji = 1
ToolTip("4")
ExitLoop 3
EndIf
Next
Next
;A-----------
;A
;*
;A
;$sc1 = PixelChecksum(275, 99, 641, 134)
For $i = 0 To $maxi
For $j = 0 To $maxy - 3
If $ddb_data[$i][$j] = $ddb_data[$i][$j + 1] And $ddb_data[$i][$j] = $ddb_data[$i][$j + 3] Then
For $k = 1 To $kk
MouseMove(287 + $i * 48, 118 + ($j + 2) * 48, 0)
Sleep(100)
MouseClick("left")
Sleep(200)
MouseMove(287 + $i * 48, 118 + ($j + 3) * 48, 0)
Sleep(100)
MouseClick("left")
Next
$dianji = 1
ToolTip("5")
ExitLoop 3
EndIf
Next
Next
;A-----------
;*
;A
;A
For $i = 0 To $maxi
For $j = 0 To $maxy - 3
If $ddb_data[$i][$j] = $ddb_data[$i][$j + 2] And $ddb_data[$i][$j] = $ddb_data[$i][$j + 3] Then
For $k = 1 To $kk
MouseMove(287 + $i * 48, 118 + $j * 48, 0)
Sleep(100)
MouseClick("left")
Sleep(200)
MouseMove(287 + $i * 48, 118 + ($j + 1) * 48, 0)
Sleep(100)
MouseClick("left")
Next
$dianji = 1
ToolTip("2")
ExitLoop 3
EndIf
Next
Next
;AA*A
For $i = 0 To $maxi - 3
For $j = 0 To $maxy
If $ddb_data[$i][$j] = $ddb_data[$i + 1][$j] And $ddb_data[$i][$j] = $ddb_data[$i + 3][$j] Then
For $k = 1 To $kk
MouseMove(287 + ($i + 2) * 48, 118 + $j * 48, 0)
Sleep(100)
MouseClick("left")
Sleep(200)
MouseMove(287 + ($i + 3) * 48, 118 + $j * 48, 0)
Sleep(100)
MouseClick("left")
Next
$dianji = 1
ToolTip("3")
ExitLoop 3
EndIf
Next
Next
;A*AA
For $i = 0 To $maxi - 3
For $j = 0 To $maxy
If $ddb_data[$i][$j] = $ddb_data[$i + 2][$j] And $ddb_data[$i][$j] = $ddb_data[$i + 3][$j] Then
For $k = 1 To $kk
MouseMove(287 + ($i + 0) * 48, 118 + $j * 48, 0)
Sleep(100)
MouseClick("left")
Sleep(200)
MouseMove(287 + ($i + 1) * 48, 118 + $j * 48, 0)
Sleep(100)
MouseClick("left")
Next
$dianji = 1
ToolTip("4")
ExitLoop 3
EndIf
Next
Next
;A-----------
; A
;A
For $i = 0 To $maxi - 1
For $j = 0 To $maxy - 2
If $ddb_data[$i][$j] = $ddb_data[$i + 1][$j + 1] And $ddb_data[$i][$j] = $ddb_data[$i][$j + 2] Then
For $k = 1 To $kk
MouseMove(287 + $i * 48, 118 + ($j + 1) * 48, 0)
Sleep(100)
MouseClick("left")
Sleep(200)
MouseMove(287 + ($i + 1) * 48, 118 + ($j + 1) * 48, 0)
Sleep(100)
MouseClick("left")
Next
$dianji = 1
ToolTip("5")
ExitLoop 3
EndIf
Next
Next
;A
; A-----------
;A
For $i = 1 To $maxi
For $j = 1 To $maxy - 1
If $ddb_data[$i][$j] = $ddb_data[$i - 1][$j - 1] And $ddb_data[$i][$j] = $ddb_data[$i - 1][$j + 1] Then
For $k = 1 To $kk
MouseMove(287 + $i * 48, 118 + $j * 48, 0)
Sleep(100)
MouseClick("left")
Sleep(200)
MouseMove(287 + ($i - 1) * 48, 118 + $j * 48, 0)
Sleep(100)
MouseClick("left")
Next
$dianji = 1
ToolTip("6")
ExitLoop 3
EndIf
Next
Next
;A-------------------
;A
; A
For $i = 0 To $maxi - 1
For $j = 0 To $maxy - 2
If $ddb_data[$i][$j] = $ddb_data[$i][$j + 1] And $ddb_data[$i][$j] = $ddb_data[$i + 1][$j + 2] Then
For $k = 1 To $kk
MouseMove(287 + $i * 48, 118 + ($j + 2) * 48, 0)
Sleep(100)
MouseClick("left")
Sleep(200)
MouseMove(287 + ($i + 1) * 48, 118 + ($j + 2) * 48, 0)
Sleep(100)
MouseClick("left")
Next
$dianji = 1
ToolTip("7")
ExitLoop 3
EndIf
Next
Next
; A-------------------
; A
;A
For $i = 1 To $maxi
For $j = 0 To $maxy - 2
If $ddb_data[$i][$j] = $ddb_data[$i][$j + 1] And $ddb_data[$i][$j] = $ddb_data[$i - 1][$j + 2] Then
For $k = 1 To $kk
MouseMove(287 + $i * 48, 118 + ($j + 2) * 48, 0)
Sleep(100)
MouseClick("left")
Sleep(200)
MouseMove(287 + ($i - 1) * 48, 118 + ($j + 2) * 48, 0)
Sleep(100)
MouseClick("left")
Next
$dianji = 1
ToolTip("8")
ExitLoop 3
EndIf
Next
Next
;A-------------------
;A
; A
For $i = 0 To $maxi - 1
For $j = 0 To $maxy - 2
If $ddb_data[$i][$j] = $ddb_data[$i][$j + 1] And $ddb_data[$i][$j] = $ddb_data[$i + 1][$j + 2] Then
For $k = 1 To $kk
MouseMove(287 + $i * 48, 118 + ($j + 2) * 48, 0)
Sleep(100)
MouseClick("left")
Sleep(200)
MouseMove(287 + ($i + 1) * 48, 118 + ($j + 2) * 48, 0)
Sleep(100)
MouseClick("left")
Next
$dianji = 1
ToolTip("9")
ExitLoop 3
EndIf
Next
Next
;A
;A-------------------
; A
For $i = 0 To $maxi - 1
For $j = 1 To $maxy - 1
If $ddb_data[$i][$j] = $ddb_data[$i][$j - 1] And $ddb_data[$i][$j] = $ddb_data[$i + 1][$j + 1] Then
For $k = 1 To $kk
MouseMove(287 + $i * 48, 118 + ($j + 1) * 48, 0)
Sleep(100)
MouseClick("left")
Sleep(200)
MouseMove(287 + ($i + 1) * 48, 118 + ($j + 1) * 48, 0)
Sleep(100)
MouseClick("left")
Next
$dianji = 1
ToolTip("10")
ExitLoop 3
EndIf
Next
Next
;A---------
; A
; A
For $i = 0 To $maxi - 1
For $j = 0 To $maxy - 2
If $ddb_data[$i][$j] = $ddb_data[$i + 1][$j + 1] And $ddb_data[$i][$j] = $ddb_data[$i + 1][$j + 2] Then
For $k = 1 To $kk
MouseMove(287 + $i * 48, 118 + $j * 48, 0)
Sleep(100)
MouseClick("left")
Sleep(200)
MouseMove(287 + ($i + 1) * 48, 118 + $j * 48, 0)
Sleep(100)
MouseClick("left")
Next
$dianji = 1
ToolTip("11")
ExitLoop 3
EndIf
Next
Next
;A
; A---------
; A
For $i = 1 To $maxi
For $j = 1 To $maxy - 1
If $ddb_data[$i][$j] = $ddb_data[$i - 1][$j - 1] And $ddb_data[$i][$j] = $ddb_data[$i][$j + 1] Then
For $k = 1 To $kk
MouseMove(287 + ($i - 1) * 48, 118 + ($j - 1) * 48, 0)
Sleep(100)
MouseClick("left")
Sleep(200)
MouseMove(287 + ($i + 0) * 48, 118 + ($j - 1) * 48, 0)
Sleep(100)
MouseClick("left")
Next
$dianji = 1
ToolTip("12")
ExitLoop 3
EndIf
Next
Next
; A-------------
;A
; A
For $i = 1 To $maxi
For $j = 0 To $maxy - 2
If $ddb_data[$i][$j] = $ddb_data[$i - 1][$j + 1] And $ddb_data[$i][$j] = $ddb_data[$i][$j + 2] Then
For $k = 1 To $kk
MouseMove(287 + ($i - 1) * 48, 118 + ($j + 1) * 48, 0)
Sleep(100)
MouseClick("left")
Sleep(200)
MouseMove(287 + $i * 48, 118 + ($j + 1) * 48, 0)
Sleep(100)
MouseClick("left")
Next
$dianji = 1
ToolTip("13")
ExitLoop 3
EndIf
Next
Next
; A
;A-------------
; A
For $i = 0 To $maxi - 1
For $j = 1 To $maxy - 1
If $ddb_data[$i][$j] = $ddb_data[$i + 1][$j - 1] And $ddb_data[$i][$j] = $ddb_data[$i + 1][$j + 1] Then
For $k = 1 To $kk
MouseMove(287 + $i * 48, 118 + $j * 48, 0)
Sleep(100)
MouseClick("left")
Sleep(200)
MouseMove(287 + ($i + 1) * 48, 118 + $j * 48, 0)
Sleep(100)
MouseClick("left")
Next
$dianji = 1
ToolTip("14")
ExitLoop 3
EndIf
Next
Next
; A-----------
;A
;A
For $i = 1 To $maxi
For $j = 0 To $maxy - 2
If $ddb_data[$i][$j] = $ddb_data[$i - 1][$j + 1] And $ddb_data[$i][$j] = $ddb_data[$i - 1][$j + 2] Then
For $k = 1 To $kk
MouseMove(287 + $i * 48, 118 + $j * 48, 0)
Sleep(100)
MouseClick("left")
Sleep(200)
MouseMove(287 + ($i - 1) * 48, 118 + $j * 48, 0)
Sleep(100)
MouseClick("left")
Next
$dianji = 1
ToolTip("15")
ExitLoop 3
EndIf
Next
Next
; A
;A-----------
;A
For $i = 0 To $maxi - 1
For $j = 1 To $maxy - 1
If $ddb_data[$i][$j] = $ddb_data[$i + 1][$j - 1] And $ddb_data[$i][$j] = $ddb_data[$i][$j + 1] Then
For $k = 1 To $kk
MouseMove(287 + $i * 48, 118 + ($j - 1) * 48, 0)
Sleep(100)
MouseClick("left")
Sleep(200)
MouseMove(287 + ($i + 1) * 48, 118 + ($j - 1) * 48, 0)
Sleep(100)
MouseClick("left")
Next
$dianji = 1
ToolTip("16")
ExitLoop 3
EndIf
Next
Next
;A----------
; AA
For $i = 0 To $maxi - 2
For $j = 0 To $maxy - 1
If $ddb_data[$i][$j] = $ddb_data[$i + 1][$j + 1] And $ddb_data[$i][$j] = $ddb_data[$i + 2][$j + 1] Then
For $k = 1 To $kk
MouseMove(287 + $i * 48, 118 + $j * 48, 0)
Sleep(100)
MouseClick("left")
Sleep(200)
MouseMove(287 + $i * 48, 118 + ($j + 1) * 48, 0)
Sleep(100)
MouseClick("left")
Next
$dianji = 1
ToolTip("17")
ExitLoop 3
EndIf
Next
Next
;A
; AA----------
For $i = 1 To $maxi - 1
For $j = 1 To $maxy
If $ddb_data[$i][$j] = $ddb_data[$i - 1][$j - 1] And $ddb_data[$i][$j] = $ddb_data[$i + 1][$j] Then
For $k = 1 To $kk
MouseMove(287 + ($i - 1) * 48, 118 + ($j - 1) * 48, 0)
Sleep(100)
MouseClick("left")
Sleep(200)
MouseMove(287 + ($i - 1) * 48, 118 + $j * 48, 0)
Sleep(100)
MouseClick("left")
Next
$dianji = 1
ToolTip("18")
ExitLoop 3
EndIf
Next
Next
; AA----------
;A
For $i = 1 To $maxi - 1
For $j = 0 To $maxy - 1
If $ddb_data[$i][$j] = $ddb_data[$i - 1][$j + 1] And $ddb_data[$i][$j] = $ddb_data[$i + 1][$j] Then
For $k = 1 To $kk
MouseMove(287 + ($i - 1) * 48, 118 + $j * 48, 0)
Sleep(100)
MouseClick("left")
Sleep(200)
MouseMove(287 + ($i - 1) * 48, 118 + ($j + 1) * 48, 0)
Sleep(100)
MouseClick("left")
Next
$dianji = 1
ToolTip("19")
ExitLoop 3
EndIf
Next
Next
; AA
;A----------
For $i = 0 To $maxi - 2
For $j = 1 To $maxy
If $ddb_data[$i][$j] = $ddb_data[$i + 1][$j - 1] And $ddb_data[$i][$j] = $ddb_data[$i + 2][$j - 1] Then
For $k = 1 To $kk
MouseMove(287 + $i * 48, 118 + ($j - 1) * 48, 0)
Sleep(100)
MouseClick("left")
Sleep(200)
MouseMove(287 + $i * 48, 118 + $j * 48, 0)
Sleep(100)
MouseClick("left")
Next
$dianji = 1
ToolTip("20")
ExitLoop 3
EndIf
Next
Next
; A-----------
;AA
For $i = 2 To $maxi
For $j = 0 To $maxy - 1
If $ddb_data[$i][$j] = $ddb_data[$i - 1][$j + 1] And $ddb_data[$i][$j] = $ddb_data[$i - 2][$j + 1] Then
For $k = 1 To $kk
MouseMove(287 + $i * 48, 118 + $j * 48, 0)
Sleep(100)
MouseClick("left")
Sleep(200)
MouseMove(287 + $i * 48, 118 + ($j + 1) * 48, 0)
Sleep(100)
MouseClick("left")
Next
$dianji = 1
ToolTip("21")
ExitLoop 3
EndIf
Next
Next
; A
;AA-----------
For $i = 0 To $maxi - 2
For $j = 1 To $maxy
If $ddb_data[$i][$j] = $ddb_data[$i + 1][$j] And $ddb_data[$i][$j] = $ddb_data[$i + 2][$j - 1] Then
For $k = 1 To $kk
MouseMove(287 + ($i + 2) * 48, 118 + ($j - 1) * 48, 0)
Sleep(100)
MouseClick("left")
Sleep(200)
MouseMove(287 + ($i + 2) * 48, 118 + $j * 48, 0)
Sleep(100)
MouseClick("left")
Next
$dianji = 1
ToolTip("22")
ExitLoop 3
EndIf
Next
Next
;AA--------
; A
For $i = 0 To $maxi - 2
For $j = 0 To $maxy - 1
If $ddb_data[$i][$j] = $ddb_data[$i + 1][$j] And $ddb_data[$i][$j] = $ddb_data[$i + 2][$j + 1] Then
For $k = 1 To $kk
MouseMove(287 + ($i + 2) * 48, 118 + $j * 48, 0)
Sleep(100)
MouseClick("left")
Sleep(200)
MouseMove(287 + ($i + 2) * 48, 118 + ($j + 1) * 48, 0)
Sleep(100)
MouseClick("left")
Next
$dianji = 1
ToolTip("23")
ExitLoop 3
EndIf
Next
Next
;AA
; A--------
For $i = 2 To $maxi
For $j = 1 To $maxy
If $ddb_data[$i][$j] = $ddb_data[$i - 1][$j - 1] And $ddb_data[$i][$j] = $ddb_data[$i - 2][$j - 1] Then
For $k = 1 To $kk
MouseMove(287 + $i * 48, 118 + $j * 48, 0)
Sleep(100)
MouseClick("left")
Sleep(200)
MouseMove(287 + $i * 48, 118 + ($j - 1) * 48, 0)
Sleep(100)
MouseClick("left")
Next
$dianji = 1
ToolTip("24")
ExitLoop 3
EndIf
Next
Next
;A A--------
; A
For $i = 0 To $maxi - 2
For $j = 0 To $maxy - 1
If $ddb_data[$i][$j] = $ddb_data[$i + 1][$j + 1] And $ddb_data[$i][$j] = $ddb_data[$i + 2][$j] Then
For $k = 1 To $kk
MouseMove(287 + ($i + 1) * 48, 118 + $j * 48, 0)
Sleep(100)
MouseClick("left")
Sleep(200)
MouseMove(287 + ($i + 1) * 48, 118 + ($j + 1) * 48, 0)
Sleep(100)
MouseClick("left")
Next
$dianji = 1
ToolTip("25")
ExitLoop 3
EndIf
Next
Next
;A A
; A--------
For $i = 1 To $maxi - 1
For $j = 1 To $maxy
If $ddb_data[$i][$j] = $ddb_data[$i - 1][$j - 1] And $ddb_data[$i][$j] = $ddb_data[$i + 1][$j - 1] Then
For $k = 1 To $kk
MouseMove(287 + $i * 48, 118 + ($j - 1) * 48, 0)
Sleep(100)
MouseClick("left")
Sleep(200)
MouseMove(287 + $i * 48, 118 + $j * 48, 0)
Sleep(100)
MouseClick("left")
Next
$dianji = 1
ToolTip("26")
ExitLoop 3
EndIf
Next
Next
; A--------
;A A
For $i = 1 To $maxi - 1
For $j = 0 To $maxy - 1
If $ddb_data[$i][$j] = $ddb_data[$i - 1][$j + 1] And $ddb_data[$i][$j] = $ddb_data[$i + 1][$j + 1] Then
For $k = 1 To $kk
MouseMove(287 + $i * 48, 118 + $j * 48, 0)
Sleep(100)
MouseClick("left")
Sleep(200)
MouseMove(287 + $i * 48, 118 + ($j + 1) * 48, 0)
Sleep(100)
MouseClick("left")
Next
$dianji = 1
ToolTip("27")
ExitLoop 3
EndIf
Next
Next
; A
;A A--------
For $i = 0 To $maxi - 2
For $j = 1 To $maxy
If $ddb_data[$i][$j] = $ddb_data[$i + 1][$j - 1] And $ddb_data[$i][$j] = $ddb_data[$i + 2][$j] Then
For $k = 1 To $kk
MouseMove(287 + ($i + 1) * 48, 118 + ($j - 1) * 48, 0)
Sleep(100)
MouseClick("left")
Sleep(200)
MouseMove(287 + ($i + 1) * 48, 118 + ($j + 0) * 48, 0)
Sleep(100)
MouseClick("left")
Next
$dianji = 1
ToolTip("28")
ExitLoop 3
EndIf
Next
Next
Next
;Sleep(200)
;For $i=1 To 5
;$sc2 = PixelChecksum(275, 99, 641, 134)
;If $sc2<>$sc1 Then
; $sc1=$sc2
;Else
; ExitLoop
;EndIf
;Sleep(200)
;Next
;Sleep(100)
$count = $count + 1
;ToolTip($count, 0, 0)
WEnd
EndFunc ;==>ddb_init |
|