Skip to content

Commit

Permalink
⚡ update to align 13.11.513.4169
Browse files Browse the repository at this point in the history
  • Loading branch information
SivWatt committed Jun 7, 2023
1 parent a767795 commit 2906fa1
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions league.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ def __init__(self, logger, images, cwd):
with open(os.path.join(cwd, 'reportText.txt'), encoding='utf8') as file:
self.reportText = file.read()

self.cancel_1280_720 = pyautogui.Point(820, 88)
self.cancel_1280_720 = pyautogui.Point(865, 75)
self.team_1280_720 = [
pyautogui.Point(280, 150),
pyautogui.Point(280, 190),
Expand Down Expand Up @@ -86,12 +86,9 @@ def reportAPlayer(self, leagueRegion, point):
checkboxes = list(pyautogui.locateAllOnScreen(self.images.checkbox, region=leagueRegion, confidence=0.7))

if checkboxes:
# get random numbers
rn = myRandom()

# click check boxes
for i in rn:
pyautogui.click(checkboxes[i])
# now we can check them all
for cb in checkboxes:
pyautogui.click(cb)

# paste report text to comment text field
commentTextField = pyautogui.locateCenterOnScreen(self.images.commentText, region=leagueRegion)
Expand Down

0 comments on commit 2906fa1

Please sign in to comment.