2015-01-12 12:22:35 : ~~~~Welcome to COC Bot v5.4.2.2.exe!~~~~
2015-01-12 12:22:35 : Executable running on X86 OS
2015-01-12 12:22:35 : Bot is starting...
2015-01-12 12:22:39 : Training Troops...
2015-01-12 12:22:53 : Training Troops Complete
2015-01-12 12:22:54 : Requesting for Clan Castle's Troops
2015-01-12 12:22:59 : Collecting Resources
2015-01-12 12:23:11 : Collecting Complete
2015-01-12 12:23:18 : ============Searching For Dead Base============
2015-01-12 12:23:18 : ~Gold: 100000; Elixir: 100000; Dark: 0; Trophy: 0
2015-01-12 12:23:20 : (1) [G]: 68777 [E]: 62038 [D]: 0 [T]: 17
2015-01-12 12:23:25 : (2) [G]: 91496 [E]: 59194 [D]: 0 [T]: 14
2015-01-12 12:23:30 : (3) [G]: 71625 [E]: 127782 [D]: 254 [T]: 34
2015-01-12 12:23:35 : (4) [G]: 111131 [E]: 39113 [D]: 54 [T]: 22
2015-01-12 12:23:39 : (5) [G]: 22932 [E]: 153664 [D]: 185 [T]: 21
2015-01-12 12:23:44 : (6) [G]: 44318 [E]: 85770 [D]: 0 [T]: 18
2015-01-12 12:23:49 : (7) [G]: 61790 [E]: 64328 [D]: 0 [T]: 18
2015-01-12 12:23:54 : (8) [G]: 34367 [E]: 70902 [D]: 307 [T]: 29
2015-01-12 12:23:59 : (9) [G]: 94518 [E]: 145838 [D]: 0 [T]: 34
2015-01-12 12:24:04 : (10) [G]: 167558 [E]: 81339 [D]: 233 [T]: 30
2015-01-12 12:24:09 : (11) [G]: 686 [E]: 97187 [D]: 500 [T]: 23
2015-01-12 12:24:23 : Cannot locate Next button, Restarting Bot
2015-01-12 12:24:23 : Trying to get to main screen
2015-01-12 12:24:49 : Training Troops...
2015-01-12 12:25:02 : Training Troops Complete
2015-01-12 12:25:03 : Requesting for Clan Castle's Troops
2015-01-12 12:25:09 : Collecting Resources
2015-01-12 12:25:21 : Collecting Complete
2015-01-12 12:25:28 : ============Searching For Dead Base============
2015-01-12 12:25:28 : ~Gold: 100000; Elixir: 100000; Dark: 0; Trophy: 0
2015-01-12 12:25:30 : (1) [G]: 68081 [E]: 198784 [D]: 506 [T]: 20
2015-01-12 12:25:35 : (2) [G]: 72064 [E]: 17781 [D]: 14 [T]: 15
2015-01-12 12:25:40 : (3) [G]: 254854 [E]: 18189 [D]: 165 [T]: 22
2015-01-12 12:25:45 : (4) [G]: 69259 [E]: 229030 [D]: 519 [T]: 21
2015-01-12 12:25:51 : (5) [G]: 101030 [E]: 169255 [D]: 270 [T]: 22
v 5.4.2.2
Started by GkevinOD · Jan 11, 2015
@kojometa
I tested with 2 monitors... I assume u didnt hide the BS window since it is not necessary with 2 monitors.... it works on win 7 coz it didnt really use the image capture to memory function but the bot does capture the windows in focus and do its mouse click in background. no conflict of mouse click between 2 monitors...
Im getting alot of loot with this bot. Thank you developers!!!
Quick question when can we expect th sniping to be added?


The dead base detection has seem to be worser than before in "COC Bot v5.4.0 (edited by Antidote)"
The old version only attacks bases that had collectors that were at least half full. The new bot attacks one that barely has any resource
@zealous same here.....
@GkevinOD can i use IMAGE SET B with your v5.4.2.2???because image set b is working better for me at th9......thnx
I ran it for 5-6 hrs over night.. got 5 mil gold and 5 mil elix. So works fine on win8 for me, I just noticed it doesnt take loot screenshots, and if it skipps good zombie bases I coudnt tell really since it dont take screens, just know that It didnt got stuck or anything whole time.
@dinobot well for me the bot is putting the BS windows also to an invisible area wich is not on my second desktop. i could only imagine that your driver does not support areas out of you visible field. tell me if this results in visible screenshots
#NoTrayIcon
#include <GDIPlus.au3>
#include <WinAPI.au3>
#include <ScreenCapture.au3>
_GDIPlus_Startup()
$hWnd = WinGetHandle("BlueStacks App Player")
$hBMP = _Capture($hWnd, 0, 0, 860, 720)
Func _CaptureWnd( $hWnd, $iLeft = 0, $iTop = 0, $iRight = -1, $iBottom = -1)
Local $tRect = _WinAPI_GetWindowRect($hWnd)
$iLeft += DllStructGetData($tRect, "Left")
$iTop += DllStructGetData($tRect, "Top")
If $iRight = -1 Then $iRight = DllStructGetData($tRect, "Right") - DllStructGetData($tRect, "Left")
If $iBottom = -1 Then $iBottom = DllStructGetData($tRect, "Bottom") - DllStructGetData($tRect, "Top")
$iRight += DllStructGetData($tRect, "Left")
$iBottom += DllStructGetData($tRect, "Top")
If $iLeft > DllStructGetData($tRect, "Right") Then $iLeft = DllStructGetData($tRect, "Left")
If $iTop > DllStructGetData($tRect, "Bottom") Then $iTop = DllStructGetData($tRect, "Top")
If $iRight > DllStructGetData($tRect, "Right") Then $iRight = DllStructGetData($tRect, "Right")
If $iBottom > DllStructGetData($tRect, "Bottom") Then $iBottom = DllStructGetData($tRect, "Bottom")
Return _Capture( $hWnd, $iLeft, $iTop, $iRight, $iBottom)
EndFunc
Func _Capture( $hWnd,$iLeft = 0, $iTop = 0, $iRight = -1, $iBottom = -1)
If $iRight = -1 Then $iRight = _WinAPI_GetSystemMetrics($__SCREENCAPTURECONSTANT_SM_CXSCREEN)
If $iBottom = -1 Then $iBottom = _WinAPI_GetSystemMetrics($__SCREENCAPTURECONSTANT_SM_CYSCREEN)
If $iRight < $iLeft Then Return SetError(-1, 0, 0)
If $iBottom < $iTop Then Return SetError(-2, 0, 0)
Local $iW = ($iRight - $iLeft) + 1
Local $iH = ($iBottom - $iTop) + 1
Local $hDDC = _WinAPI_GetDC($hWnd)
Local $hCDC = _WinAPI_CreateCompatibleDC($hDDC)
Local $hBMP = _WinAPI_CreateCompatibleBitmap($hDDC, $iW, $iH)
_WinAPI_SelectObject($hCDC, $hBMP)
DllCall("User32.dll", "int", "PrintWindow", "hwnd", $hWnd, "hwnd", $hCDC, "int", 0)
_WinAPI_BitBlt($hCDC, 0, 0, $iW, $iH, $hDDC, $iLeft, $iTop, $__SCREENCAPTURECONSTANT_SRCCOPY)
_WinAPI_ReleaseDC($hWnd, $hDDC)
_WinAPI_DeleteDC($hCDC)
_ScreenCapture_SaveImage(@ScriptDir&"\new.jpg", $hBMP, False)
_WinAPI_DeleteObject($hBMP)
EndFunc
@kojometa
When i hide by moving bs out of screen (not minimised), result is Black screen. Sigh...
Running on Nvidia 650 Ti Boost. maybe i see if there are any better graphic for it...
Just ran for 9 hours overnight for me. Really great job on this version!
BlueStacks restart doesen't work 😕
http://puu.sh/epMGX/4ebd2e7551.png
What can I do?