Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Zooming Out
#9
You can try this but, no guarantees.

Open \COC-Bot-5.5.1\COCBot\functions\Main Screen\ZoomOut.au3

Right click anywhere in the window, select 'Select All'. Copy the code below and paste over the old code:

Code:
;Tries to zoom out of the screen until the borders, located at the top of the game (usually black), is located.
;Only does it for 20 zoom outs, no more than that.

Func ZoomOut() ;Zooms out
    Local $i = 0
    While 1
        _CaptureRegion(0, 0, 860, 2)
        If _GetPixelColor(1, 1) <> Hex(0x000000, 6) And _GetPixelColor(850, 1) <> Hex(0x000000, 6) Then SetLog("Zooming Out", $COLOR_BLUE)
        While _GetPixelColor(1, 1) <> Hex(0x000000, 6) And _GetPixelColor(850, 1) <> Hex(0x000000, 6)
            If _Sleep(600) Then Return
            ;If ControlSend($Title, "", "", "{DOWN}") Then $i += 1
            If ControlSend($Title, "", "", "^{-}") Then $i += 1
            If $i = 20 Then
                ExitLoop
            EndIf
            _CaptureRegion(0, 0, 860, 2)
         WEnd
        ExitLoop
    WEnd
EndFunc   ;==>ZoomOut

Close and save the file then try and run the bot. Let me know if it works.
Reply
 


Messages In This Thread
Zooming Out - by Just09 - 02-11-2015, 09:32 PM
RE: Zooming Out - by K1ngpin - 02-11-2015, 09:55 PM
RE: Zooming Out - by Just09 - 02-11-2015, 09:57 PM
RE: Zooming Out - by sasan50cent - 02-11-2015, 11:56 PM
RE: Zooming Out - by Just09 - 02-12-2015, 01:14 AM
RE: Zooming Out - by Snarg - 02-12-2015, 03:41 AM
RE: Zooming Out - by Just09 - 02-12-2015, 05:39 AM
RE: Zooming Out - by K1ngpin - 02-12-2015, 07:29 AM
RE: Zooming Out - by Snarg - 02-12-2015, 08:48 AM
RE: Zooming Out - by Just09 - 02-14-2015, 05:05 AM
RE: Zooming Out - by SongHyeKyo - 02-12-2015, 09:03 AM
RE: Zooming Out - by henryangelofruin - 02-15-2015, 11:35 PM
RE: Zooming Out - by Just09 - 02-16-2015, 03:49 AM

Forum Jump:


Users browsing this thread: 18 Guest(s)

About The Bytecode Club

We're a community forum 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