Next Update

This commit is contained in:
Boris 2025-05-10 20:12:11 +02:00
parent 0f94b54b54
commit 30280bc279

View File

@ -73,6 +73,11 @@ powerBox_Y = 831
powerBox_Width = 65 powerBox_Width = 65
powerBox_Heigth = 22 powerBox_Heigth = 22
min_shards = 3
min_shards_for_kor_chat = 3
isServer = False
serverString = '#1004'
foundTrucks = [] foundTrucks = []
pytesseract.pytesseract.tesseract_cmd = r'C:\Program Files\Tesseract-OCR\tesseract.exe' pytesseract.pytesseract.tesseract_cmd = r'C:\Program Files\Tesseract-OCR\tesseract.exe'
@ -135,7 +140,7 @@ def share_Truck(count,isServer):
if j == 0 and i == 1: if j == 0 and i == 1:
clickShare(shareItem_X+shareOffset,shareItem_Y+shareOffset) clickShare(shareItem_X+shareOffset,shareItem_Y+shareOffset)
continue continue
if j == 0 and i == 2 and count > 3: if j == 0 and i == 2 and count >= min_shards_for_kor_chat:
clickShare(shareItem_X+shareOffset,shareItem_Y+shareOffset) clickShare(shareItem_X+shareOffset,shareItem_Y+shareOffset)
continue continue
continue continue
@ -264,9 +269,12 @@ def analyse_static_Truck(foundTrucks):
print(count) print(count)
if count > 2: if isServer:
isServer = serverString in truckstring
if count >= min_shards:
#click(shareTruck_X,shareTruck_Y,True) #click(shareTruck_X,shareTruck_Y,True)
share_Truck(count,False) share_Truck(count,isServer)
time.sleep(0.5) time.sleep(0.5)
keyboard.send('esc') keyboard.send('esc')
time.sleep(1) time.sleep(1)