Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Image search help?
#1
I'm trying to install a Smashed TH check into the algorithmTH.au3 module.
Been staring at the other modules that call the _ImageSearch function in ImageSearch.au3 and can't get a valid response or coordinates from _ImageSearch?

After staring at 3-4 dozen images of smashed TH, it seems they all look same regardless of the TH level.
Have tried several sizes/shapes of images cut directly from saved attack images. They are stored in BMP, and the 1 pixel tall version is same size as the TH check image. But I NEVER find a match even with 20% tolerance. I'm ready to give up.  Worry

I am sure its some kind of noob mistake, can anyone help?

Code:
Func CheckSmashedTownhall()
  Local $SmashedThx, $SmashedTHy
  If _Sleep(100) Then Return
  _CaptureRegion()
  $IsTHSmashed = _ImageSearch($SmashedTH, 1, $SmashedTHx, $SmashedTHy, 20) ; Getting smashed TH Location
  If $DebugTH = True Then
      SetLog("Check1 Smashed TH returned: " & $IsTHSmashed & ", " & $SmashedTHx & ", " & $SmashedTHy, $COLOR_BLUE)
  EndIf
  If $IsTHSmashed = 1 Then
      Return 1
  EndIf
  If $IsTHSmashed = 0 Then Return "-"
EndFunc
Reply
 


Messages In This Thread
Image search help? - by knowjack - 02-24-2015, 07:50 AM
RE: Image search help? - by Snarg - 02-24-2015, 09:18 AM
RE: Image search help? - by knowjack - 02-24-2015, 10:40 AM
RE: Image search help? - by Snarg - 02-24-2015, 02:04 PM
RE: Image search help? - by knowjack - 02-24-2015, 07:17 PM
RE: Image search help? - by Henk500 - 02-25-2015, 12:19 AM
RE: Image search help? - by knowjack - 02-25-2015, 06:14 AM
RE: Image search help? - by Snarg - 02-25-2015, 09:17 AM
RE: Image search help? - by terminus - 02-25-2015, 09:11 PM

Forum Jump:


Users browsing this thread: 2 Guest(s)

About The Bytecode Club

We're a community focused on Reverse Engineering, we try to target Java/Android but we also include other langauges/platforms. We pride ourselves in supporting and free and open sourced applications.

Website