The Bytecode Club - Reverse Engineering Forum
Another device is connecting to this village - Printable Version

+- The Bytecode Club - Reverse Engineering Forum (https://the.bytecode.club)
+-- Forum: Lobby (https://the.bytecode.club/forumdisplay.php?fid=1)
+--- Forum: Game Cheating, Botting & Reverse Engineering (https://the.bytecode.club/forumdisplay.php?fid=97)
+--- Thread: Another device is connecting to this village (/showthread.php?tid=440)



Another device is connecting to this village - panick - 01-25-2015

I am not familiar with autoit, does anyone know if there is a possible way to set a delay on the reconnect from when you get this error message? This is because I want to use my phone regularly throughout the day to check up on coc, while having it run at hime.


Thanks Smile


RE: Another device is connecting to this village - copper - 01-26-2015

test adjusting the the checkMainScreen() code to increase the delay

Func checkMainScreen() ;Checks if in main screen
SetLog("Trying to locate Main Screen")
_CaptureRegion()
While _ColorCheckVariation(_PixelGetColor_GetPixel(284, 2Shadehappy, Hex(0x41B1CD, 6), 20) = False
$HWnD = WinGetHandle("BlueStacks App Player")

If _Sleep(1000) Then Return


RE: Another device is connecting to this village - panick - 01-26-2015

OK thank you very much! I'll try it and reply Smile


RE: Another device is connecting to this village - panick - 01-26-2015

(01-26-2015, 01:48 AM)copper Wrote:  test adjusting the the checkMainScreen() code to increase the delay

Func checkMainScreen() ;Checks if in main screen
SetLog("Trying to locate Main Screen")
_CaptureRegion()
While _ColorCheckVariation(_PixelGetColor_GetPixel(284, 2Shadehappy, Hex(0x41B1CD, 6), 20) = False
$HWnD = WinGetHandle("BlueStacks App Player")

If _Sleep(1000) Then Return

I didn't have any luck adjusting values for that function.
I think the actual code where it checks for connection lost is

Func checkNextButton() ;Checks for Out of Sync or Connection Lost errors
$Message = _PixelSearch(458, 300, 458, 330, Hex(0x33B5E5, 6), 10) ;Check for out of sync or inactivity
If IsArray($Message) = False Then
Return False ;Button available

But im not sure how to set a timer