(02-02-2015, 12:27 AM)DrImmo Wrote:(02-01-2015, 11:41 PM)using Wrote: for the last barrack issue, edit the code in the "Func Train()"
Code:SetLog("Training Troops Complete")
Click(1, 1, 2, 250); Click away twice with 250ms delay
ExitLoop
WEnd
EndFunc ;==>Train
(02-01-2015, 11:55 PM)dinobot Wrote: Regards to the out of sync, try revert to old coding in 5.4.2.2 as below... Swapping of return false and true.
Please test out and report back..
Code:Func checkNextButton() ;Checks for Out of Sync or Connection Lost errors
$Message = _PixelSearch(457, 300, 458, 330, Hex(0x33B5E5, 6), 10) ;Check for out of sync or inactivity
If IsArray($Message) = False Then
Return False ;Button available
Else
Return True ;Out of sync or inactivity error.
EndIf
EndFunc ;==>checkNextButton
Thanks in advance guys. I put both changes in the code, testing now... lets see if that's working as well as i think it will
the wrong code in my script only of this
_PixelSearch
(458, 300, 458, 330, Hex
(0x33B5E5, 6), 10)
x left and x right coordinate is same... i change 457 to 458 in new version, and it work like a charm.
for swapping return. im not wrong. this code will not force bot to restarting.
if the Out of Sync message not appear, bot will click in the Next Button location.
But in new version, i was added code when Out of Sync message still not appear and white screen still not gone after 3 minutes, bot will restarting Coc and itself