diff --git a/main.py b/main.py index 650f9d8..6cac6f1 100644 --- a/main.py +++ b/main.py @@ -153,6 +153,11 @@ def clickImage(self, x, y, duration = 0.5): # print(f'Moving mouse to x: {x}, y: {y}') pyautogui.moveTo(x,y,duration) # pyautogui.click(button='left') # This doesn't click in league, it maybe too fast + + ## Added a right click to make sure that the bot is clicked ingame before executing a left click + pyautogui.mouseDown(button='right') + pyautogui.mouseUp(button='right') + time.sleep(0.25) pyautogui.mouseDown() pyautogui.mouseUp()