mirror of
https://gitee.com/sui-feng-cb/AzurLaneAutoScript1
synced 2026-03-13 02:06:59 +08:00
@@ -104,6 +104,8 @@ class AScreenCap(Connection):
|
||||
if self.__bytepointer >= len(byte_array):
|
||||
text = 'Repositioning byte pointer failed, corrupted aScreenCap data received'
|
||||
logger.warning(text)
|
||||
if len(byte_array) < 500:
|
||||
logger.warning(f'Unexpected screenshot: {byte_array}')
|
||||
raise AscreencapError(text)
|
||||
return byte_array[self.__bytepointer:]
|
||||
|
||||
|
||||
@@ -191,7 +191,7 @@ class Dock(Equipment):
|
||||
if self.appear(check_button, offset=(30, 30)):
|
||||
break
|
||||
|
||||
if self.appear_then_click(SHIP_CONFIRM, offset=(30, 30), interval=5):
|
||||
if self.appear_then_click(SHIP_CONFIRM, offset=(200, 50), interval=5):
|
||||
continue
|
||||
if self.handle_popup_confirm('DOCK_SELECT_CONFIRM'):
|
||||
continue
|
||||
|
||||
Reference in New Issue
Block a user