; #FUNCTION# ====================================================================================================================
; Name ..........: CheckZoomOut
; Description ...:
; Syntax ........: CheckZoomOut()
; Parameters ....:
; Return values .: None
; Author ........: Code Monkey #12
; Modified ......:
; Remarks .......: This file is part of MyBot, previously known as ClashGameBot. Copyright 2015
;                  MyBot is distributed under the terms of the GNU GPL
; Related .......:
; Link ..........: https://github.com/MyBotRun/MyBot/wiki
; Example .......: No
; ===============================================================================================================================
;
Func CheckZoomOut()
					 _CaptureRegion(0, 0, $DEFAULT_WIDTH, 2)
					 If _GetPixelColor(1, 1) <> Hex(0x000000, 6) And _GetPixelColor(850, 1) <> Hex(0x000000, 6) Then
						   SetLog("Not Zoomed Out! Exiting to MainScreen...", $COLOR_RED)
						   checkMainScreen() ;exit battle screen
						   $Restart = True
						   Return False
						Else
						   Return True
						EndIf
EndFunc