James wrote:
DrImmo wrote:
safar46 wrote:
New update, check first page
@Safar46
Would be too nice if you can tell us, what changes you did 🙂I think its noted in first page
btw nice update
Been testing it nowedit: 1 error found its not dropping CC troops even though its check in attack settings
indy wrote:
nicely done 🙂
i've got news about the th location on the map.
i've adjusted the _ImageSearchArea function in a way that works most of the timesno background mode, it' only for foreground as i'm unable to get a non black screenshot in background mode.
Func _ImageSearchArea($findImage, $resultPosition, $x1, $y1, $right, $bottom, ByRef $x, ByRef $y, $Tolerance) if $Tolerance > 0 then $findImage = "*" & $Tolerance & " " & $findImage If $ichkBackground = 0 Then $x1 += $BSPos[0] $y1 += $BSPos[1] $right += $BSPos[0] $bottom += $BSPos[1] EndIf If IsString($findImage) Then  if $tolerance > 0 then $findImage = "*" & $tolerance & " " & $findImage  EndIf   EndIf   $result = DllCall("COCBot32.dll","str","ImageSearch","int",$x1,"int",$y1,"int",$right,"int",$bottom,"str",$findImage) ; If error exit If IsArray($result) Then If $result[0] = "0" Then Return 0 Else SetLog("Error cannot check for Dead Base, Attacking...") Return 1 EndIf ; Otherwise get the x,y location of the match and the size of the image to ; compute the centre of search  $array = StringSplit($result[0],"|")  If(UBound($array) >= 4) Then  $x=Int(Number($array[2]))  $y=Int(Number($array[3]))  if $resultPosition=1 then $x=$x + Int(Number($array[4])/2) - $x1 $y=$y + Int(Number($array[5])/2) - $y1 endif  return 1  EndIf EndFunc
@James new update, check page one. thanks for your report 🙂
@indy implemented in new update, check page one. thanks for your contribute 🙂