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