diff --git a/imagestuff.py b/imagestuff.py index 56f3eb0..d1cabf9 100644 --- a/imagestuff.py +++ b/imagestuff.py @@ -1,103 +1,52 @@ -import tkinter as tk -from PIL import Image, ImageTk -import subprocess -import time -import cv2 +#get image stuff # + +#import base64 + +# Replace 'path_to_image.png' with the path to your image file +#with open('/home/alex/minecraft/minecraft/autologin_screenshots/join_button.png', 'rb') as image_file: +# encoded_string = base64.b64encode(image_file.read()) + +#Now, you can print this string or write it to a text file +#print(encoded_string) + +import base64 +from PIL import Image +from io import BytesIO import pyautogui -from screeninfo import get_monitors -from mss import mss +import cv2 +import numpy as np -def get_primary_monitor(): - for m in get_monitors(): - if m.is_primary: - return m - return None +# Replace the content of encoded_image with your actual base64 string. -class ScreenshotSelector: - def __init__(self, root): - self.root = root - self.start_x = None - self.start_y = None - self.rect = None - self.temp_screenshot_path = '/tmp/temp_screenshot.png' - self.button_image_path = None +#back to server list +#encoded_image = (b'iVBORw0KGgoAAAANSUhEUgAAATUAAAAwCAIAAAD/x3pUAAAAA3NCSVQICAjb4U/gAAAMVUlEQVR4nO2dS4tUSROGo7TsmzIOAzOzGBj4FrPzLqK49OcI4h31F4h4R/BH+CPciYh43yizGxDFgeHDT+2228u3eKnTT9V74nRNL8YzEO+iqT6VJzMy85x4MyIyowY7/vNzAIvLK9GGj8ufWq9/v2V+3fcu4frczHDN+v/7brH1OlHyT39vye/om/wbWq8WCoU+oN7PQqG/qPezUOgvBj9tXeDa948/335DaQqFAl1CxZ+FQn/R7jW6detWxz2fP39uPm/cuHHKlgaDQUR8/fp1zW/5+cuXLxPXhQ0bVjWLyvBK93UHS+qztzI9vB5Co5f1xUv6CHfX73WqpGrTSOpb/aU8LolL6zKsb5S6n4dp0D1T3q/sWRoOV9+CT58+xfj48IrLr2+zVjh3uq6/bF1l7ty5ExHXr1+faKX4s1DoL4ZzM0PGcGh/6p3uBllu06ZNEbGyshJr8WrGAGRmfZZuo66ltsvaUhnVrzLUf+QlajLVr291r+qZhpkpIetZWF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rfdefTdcuOpI6/HI6KMiypfBH3IrMGlJZ8z++EaGQMSG5Lzy8xP/rsv5Cv/luNDRuXqxk+i+oqSzyFXdsx+yHNaXMv4yigdjTVLFAqFb4UW4zPazmRIr2tdnmXKoS2hkgL1jfv3HNS7jGjRLqVH0e1M13b6HTEyJ7Moub6cJq5LO9O9eZ713E/w8HyPZz9kbM33fNIapM3Pv9TxHNXuMzQcGf7SJjPWs0f+m5lcEXCvr7eV7S1zy5M102dBpvJVQ/f+Ho6hewe6swFSHu4wp1+d+ZN4L/NC8HkQ+HtIxZ+FQn8x4GaFGP/97EKh8M/jt19+aD4XfxYK/cXgp60LW7fMNf+3mqMRwT26xPzMqgeM50hZ/kOsxnMWov2cG9tdwudMtmnKlPwl/79d/uLPQqG/qPezUOgv6v0sFPqL/wNoBGzpOlo41wAAAABJRU5ErkJggg==') - # Delay and capture - time.sleep(5) - self.capture_primary_display() +#join button +encoded_image = (b'iVBORw0KGgoAAAANSUhEUgAAASkAAAA4CAYAAAChZA4IAAAAwnpUWHRSYXcgcHJvZmlsZSB0eXBlIGV4aWYAAHjabVBBDgMhCLz7ij5BGFbxOba7TfqDPr+4YLK2nYQBIYxAOt6vZ7oNMEmSrWpppWSDNGncLdDs6CdTlpNPcIuI1nzCbGJLwTz8qcU9zXw0TE/dou0ipI8o3NdCk9DXLyF2hzHRiPcQaiEE9gKFQPe1cmlaryvcj7xC3dIg0XXsn3e16+2b/QPmA4RsDIgPgGFI6FYg4wxlT3cIijGjhpgd5N+dJtIH9HBZIU+CbosAAAGEaUNDUElDQyBwcm9maWxlAAB4nH2RPUjDQBzFX1OlRSsO7SDikKE62UWlONYqFKFCqBVadTC59AuatCQpLo6Ca8HBj8Wqg4uzrg6ugiD4AeLq4qToIiX+Lym0iPHguB/v7j3u3gFCq8o0sy8BaLplZFJJMZdfFQOvGEQQYcQQl5lZn5OkNDzH1z18fL2L8Szvc3+OIbVgMsAnEidY3bCIN4jjm1ad8z5xhJVllficeNKgCxI/cl1x+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AgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgIAo8P3hwYWN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ErkJggg==') - # Load the screenshot for display - self.image = Image.open(self.temp_screenshot_path) - self.tkimage = ImageTk.PhotoImage(self.image) +# Decode the image +decoded_image = base64.b64decode(encoded_image) +image_data = BytesIO(decoded_image) +image = Image.open(image_data) +image.save('/tmp/button_image.png') - self.canvas = tk.Canvas(root, width=self.image.width, height=self.image.height) - self.canvas.pack() - self.canvas.create_image(0, 0, anchor='nw', image=self.tkimage) +# Now, when you want to find and click the button, load the image as before: +button_image = cv2.imread('/tmp/button_image.png', 0) +w, h = button_image.shape[::-1] - # Bind mouse events - self.canvas.bind("", self.on_press) - self.canvas.bind("", self.on_drag) - self.canvas.bind("", self.on_release) +# Take a screenshot using pyautogui +screenshot = pyautogui.screenshot() +screenshot = np.array(screenshot) +screenshot_gray = cv2.cvtColor(screenshot, cv2.COLOR_BGR2GRAY) - # Bind key events - self.root.bind("", self.on_d_press) +# Template matching +res = cv2.matchTemplate(screenshot_gray, button_image, cv2.TM_CCOEFF_NORMED) +min_val, max_val, min_loc, max_loc = cv2.minMaxLoc(res) - def capture_primary_display(self): - # Command to capture the primary display - cmd = ["gnome-screenshot", "-f", self.temp_screenshot_path] - - # Execute the command - subprocess.run(cmd, check=True) - - def on_press(self, event): - self.start_x = self.root.winfo_pointerx() - self.root.winfo_rootx() - self.start_y = self.root.winfo_pointery() - self.root.winfo_rooty() - self.rect = self.canvas.create_rectangle(self.start_x, self.start_y, self.start_x, self.start_y, outline='red') - - def on_drag(self, event): - curX = self.root.winfo_pointerx() - self.root.winfo_rootx() - curY = self.root.winfo_pointery() - self.root.winfo_rooty() - self.canvas.coords(self.rect, self.start_x, self.start_y, curX, curY) - - def on_release(self, event): - end_x = self.root.winfo_pointerx() - self.root.winfo_rootx() - end_y = self.root.winfo_pointery() - self.root.winfo_rooty() - self.capture_region(self.start_x, self.start_y, end_x, end_y) - self.root.destroy() - - def capture_region(self, x1, y1, x2, y2): - region_screenshot = self.image.crop((x1, y1, x2, y2)) - self.button_image_path = '/tmp/button_image.png' - region_screenshot.save(self.button_image_path) - print(f"Button image saved to {self.button_image_path}") - - def on_d_press(self, event): - if self.button_image_path: - self.find_button_and_click(self.button_image_path) - - def find_button_and_click(self, button_image_path): - # Take a current screenshot of the primary display - self.capture_primary_display() - - # Load the current screenshot and button image - current_screenshot = cv2.imread(self.temp_screenshot_path, 0) - button_image = cv2.imread(button_image_path, 0) - w, h = button_image.shape[::-1] - - # Template matching - res = cv2.matchTemplate(current_screenshot, button_image, cv2.TM_CCOEFF_NORMED) - min_val, max_val, min_loc, max_loc = cv2.minMaxLoc(res) - print(f"Match percentage: {max_val * 100:.2f}%") - - # Click if a good match is found - if max_val > 0.8: # Adjust this threshold as needed - click_x, click_y = max_loc[0] + w//2, max_loc[1] + h//2 - pyautogui.click(click_x, click_y) - print("Clicked on the button.") - else: - print("No suitable match found.") - -if __name__ == "__main__": - root = tk.Tk() - ScreenshotSelector(root) - root.mainloop() +# Click if a good match is found +if max_val > 0.8: # Adjust this threshold as needed + click_x, click_y = max_loc[0] + w // 2, max_loc[1] + h // 2 + pyautogui.click(click_x, click_y) + print("Clicked on the button.") +else: + print("No suitable match found.") diff --git a/minecraft_automation_log.txt b/minecraft_automation_log.txt index 98fb724..c9e54cb 100644 --- a/minecraft_automation_log.txt +++ b/minecraft_automation_log.txt @@ -10842,3 +10842,574 @@ 2023-11-22 12:37:07,899: Posted to Discord: Potion clicked. 2023-11-22 12:37:07,899: Pressing 'Esc' key. 2023-11-22 12:37:08,915: Holding 'D' key for a step. +2023-11-24 20:42:46,900: Focusing Minecraft window... +2023-11-24 20:42:48,911: Pressing Esc... +2023-11-24 20:42:50,929: Performing right click. +2023-11-24 20:42:52,033: Checking for trade window... +2023-11-24 20:42:53,087: Trade window detected. +2023-11-24 20:42:53,087: Dragging slider. +2023-11-24 20:42:56,098: Taking a screenshot for color search... +2023-11-24 20:42:59,656: Color found at (2541, 1401). Clicking at this position. +2023-11-24 20:42:59,660: Performing left click. +2023-11-24 20:43:00,764: Color found at (2541, 1401). Clicking at this position. +2023-11-24 20:43:00,767: Performing left click. +2023-11-24 20:43:01,874: Performing left click. +2023-11-24 20:43:01,977: Performing shift click. +2023-11-24 20:43:03,465: Posted to Discord: Potion clicked. +2023-11-24 20:43:03,469: Performing left click. +2023-11-24 20:43:03,573: Performing shift click. +2023-11-24 20:43:19,127: Focusing Minecraft window... +2023-11-24 20:43:21,138: Pressing Esc... +2023-11-24 20:43:23,156: Performing right click. +2023-11-24 20:43:24,260: Checking for trade window... +2023-11-24 20:43:25,677: Trade window detected. +2023-11-24 20:43:25,677: Dragging slider. +2023-11-24 20:43:28,687: Taking a screenshot for color search... +2023-11-24 20:43:32,821: Color found at (2556, 1405). Clicking at this position. +2023-11-24 20:43:32,825: Performing left click. +2023-11-24 20:43:33,930: Color found at (2556, 1405). Clicking at this position. +2023-11-24 20:43:33,933: Performing left click. +2023-11-24 20:43:35,040: Performing left click. +2023-11-24 20:43:35,143: Performing shift click. +2023-11-24 20:43:36,580: Posted to Discord: Potion clicked. +2023-11-24 20:43:36,584: Performing left click. +2023-11-24 20:43:36,687: Performing shift click. +2023-11-24 20:43:38,084: Posted to Discord: Potion clicked. +2023-11-24 20:43:38,085: Pressing 'Esc' key. +2023-11-24 20:43:39,100: Holding 'D' key for a step. +2023-11-24 20:43:40,586: Performing right click. +2023-11-24 20:43:41,690: Checking for trade window... +2023-11-24 20:43:43,144: Trade window detected. +2023-11-24 20:43:43,144: Dragging slider. +2023-11-24 20:43:46,160: Taking a screenshot for color search... +2023-11-24 20:43:50,084: Color found at (2559, 1399). Clicking at this position. +2023-11-24 20:43:50,088: Performing left click. +2023-11-24 20:43:51,191: Color found at (2559, 1399). Clicking at this position. +2023-11-24 20:43:51,194: Performing left click. +2023-11-24 20:43:52,301: Performing left click. +2023-11-24 20:43:52,405: Performing shift click. +2023-11-24 20:43:53,872: Posted to Discord: Potion clicked. +2023-11-24 20:43:53,876: Performing left click. +2023-11-24 20:43:53,981: Performing shift click. +2023-11-24 20:43:55,370: Posted to Discord: Potion clicked. +2023-11-24 20:43:55,371: Pressing 'Esc' key. +2023-11-24 20:43:56,387: Holding 'D' key for a step. +2023-11-24 20:43:57,872: Performing right click. +2023-11-24 20:43:58,976: Checking for trade window... +2023-11-24 20:44:00,266: Trade window detected. +2023-11-24 20:44:00,266: Dragging slider. +2023-11-24 20:44:03,278: Taking a screenshot for color search... +2023-11-24 20:44:07,104: Color found at (2535, 1421). Clicking at this position. +2023-11-24 20:44:07,109: Performing left click. +2023-11-24 20:44:08,213: Color found at (2535, 1421). Clicking at this position. +2023-11-24 20:44:08,217: Performing left click. +2023-11-24 20:44:09,324: Performing left click. +2023-11-24 20:44:09,428: Performing shift click. +2023-11-24 20:44:10,828: Posted to Discord: Potion clicked. +2023-11-24 20:44:10,832: Performing left click. +2023-11-24 20:44:10,936: Performing shift click. +2023-11-24 20:44:12,369: Posted to Discord: Potion clicked. +2023-11-24 20:44:12,369: Pressing 'Esc' key. +2023-11-24 20:44:13,385: Holding 'D' key for a step. +2023-11-24 20:44:14,870: Performing right click. +2023-11-24 20:44:15,974: Checking for trade window... +2023-11-24 20:44:17,180: Trade window detected. +2023-11-24 20:44:17,180: Dragging slider. +2023-11-24 20:44:20,196: Taking a screenshot for color search... +2023-11-24 20:44:24,142: Color found at (2535, 1420). Clicking at this position. +2023-11-24 20:44:24,146: Performing left click. +2023-11-24 20:44:25,249: Color found at (2535, 1420). Clicking at this position. +2023-11-24 20:44:25,252: Performing left click. +2023-11-24 20:44:26,359: Performing left click. +2023-11-24 20:44:26,463: Performing shift click. +2023-11-24 20:44:27,965: Posted to Discord: Potion clicked. +2023-11-24 20:44:27,970: Performing left click. +2023-11-24 20:44:28,073: Performing shift click. +2023-11-24 20:44:29,489: Posted to Discord: Potion clicked. +2023-11-24 20:44:29,489: Pressing 'Esc' key. +2023-11-24 20:44:30,505: Holding 'D' key for a step. +2023-11-24 20:44:31,990: Performing right click. +2023-11-24 20:44:33,093: Checking for trade window... +2023-11-24 20:44:34,448: Trade window detected. +2023-11-24 20:44:34,448: Dragging slider. +2023-11-24 20:44:37,464: Taking a screenshot for color search... +2023-11-24 20:44:43,132: Color not found on the screen. Using fallback coordinates. +2023-11-24 20:44:43,136: Performing left click. +2023-11-24 20:44:44,240: Color not found on the screen. Using fallback coordinates. +2023-11-24 20:44:44,244: Performing left click. +2023-11-24 20:44:45,352: Performing left click. +2023-11-24 20:44:45,456: Performing shift click. +2023-11-24 20:44:47,346: Posted to Discord: Potion clicked. +2023-11-24 20:44:47,350: Performing left click. +2023-11-24 20:44:47,455: Performing shift click. +2023-11-24 20:44:48,868: Posted to Discord: Potion clicked. +2023-11-24 20:44:48,869: Pressing 'Esc' key. +2023-11-24 20:44:49,885: Holding 'D' key for a step. +2023-11-24 20:44:51,370: Performing right click. +2023-11-24 20:44:52,474: Checking for trade window... +2023-11-24 20:44:53,833: Trade window not detected. Adjusting position. +2023-11-24 20:44:58,387: Trade window detected after adjustment. +2023-11-24 20:44:58,387: Dragging slider. +2023-11-24 20:45:01,404: Taking a screenshot for color search... +2023-11-24 20:45:06,876: Color not found on the screen. Using fallback coordinates. +2023-11-24 20:45:06,880: Performing left click. +2023-11-24 20:45:07,984: Color not found on the screen. Using fallback coordinates. +2023-11-24 20:45:07,988: Performing left click. +2023-11-24 20:45:09,096: Performing left click. +2023-11-24 20:45:09,200: Performing shift click. +2023-11-24 20:45:10,637: Posted to Discord: Potion clicked. +2023-11-24 20:45:10,642: Performing left click. +2023-11-24 20:45:10,746: Performing shift click. +2023-11-24 20:45:12,218: Posted to Discord: Potion clicked. +2023-11-24 20:45:12,218: Pressing 'Esc' key. +2023-11-24 20:45:13,234: Holding 'D' key for a step. +2023-11-24 20:45:14,720: Performing right click. +2023-11-24 20:45:15,823: Checking for trade window... +2023-11-24 20:45:17,050: Trade window detected. +2023-11-24 20:45:17,050: Dragging slider. +2023-11-24 20:45:20,067: Taking a screenshot for color search... +2023-11-24 20:45:25,456: Color not found on the screen. Using fallback coordinates. +2023-11-24 20:45:25,460: Performing left click. +2023-11-24 20:45:26,565: Color not found on the screen. Using fallback coordinates. +2023-11-24 20:45:26,569: Performing left click. +2023-11-24 20:45:27,677: Performing left click. +2023-11-24 20:45:27,780: Performing shift click. +2023-11-24 20:45:29,188: Posted to Discord: Potion clicked. +2023-11-24 20:45:29,192: Performing left click. +2023-11-24 20:45:29,297: Performing shift click. +2023-11-24 20:45:30,777: Posted to Discord: Potion clicked. +2023-11-24 20:45:30,778: Pressing 'Esc' key. +2023-11-24 20:45:31,795: Holding 'D' key for a step. +2023-11-24 20:45:33,281: Performing right click. +2023-11-24 20:45:34,385: Checking for trade window... +2023-11-24 20:45:35,619: Trade window detected. +2023-11-24 20:45:35,619: Dragging slider. +2023-11-24 20:45:38,635: Taking a screenshot for color search... +2023-11-24 20:45:44,135: Color not found on the screen. Using fallback coordinates. +2023-11-24 20:45:44,138: Performing left click. +2023-11-24 20:45:45,242: Color not found on the screen. Using fallback coordinates. +2023-11-24 20:45:45,245: Performing left click. +2023-11-24 20:45:46,353: Performing left click. +2023-11-24 20:45:46,457: Performing shift click. +2023-11-24 20:45:47,862: Posted to Discord: Potion clicked. +2023-11-24 20:45:47,867: Performing left click. +2023-11-24 20:45:47,971: Performing shift click. +2023-11-24 20:45:49,378: Posted to Discord: Potion clicked. +2023-11-24 20:45:49,379: Pressing 'Esc' key. +2023-11-24 20:45:50,395: Holding 'D' key for a step. +2023-11-24 20:45:51,880: Performing right click. +2023-11-24 20:45:52,983: Checking for trade window... +2023-11-24 20:45:54,303: Trade window detected. +2023-11-24 20:45:54,303: Dragging slider. +2023-11-24 20:45:57,319: Taking a screenshot for color search... +2023-11-24 20:46:01,238: Color found at (2537, 1424). Clicking at this position. +2023-11-24 20:46:01,242: Performing left click. +2023-11-24 20:46:02,346: Color found at (2537, 1424). Clicking at this position. +2023-11-24 20:46:02,350: Performing left click. +2023-11-24 20:46:03,459: Performing left click. +2023-11-24 20:46:03,564: Performing shift click. +2023-11-24 20:46:05,034: Posted to Discord: Potion clicked. +2023-11-24 20:46:05,038: Performing left click. +2023-11-24 20:46:05,142: Performing shift click. +2023-11-24 20:46:06,699: Posted to Discord: Potion clicked. +2023-11-24 20:46:06,700: Pressing 'Esc' key. +2023-11-24 20:46:07,716: Holding 'D' key for a step. +2023-11-24 20:46:09,201: Performing right click. +2023-11-24 20:46:10,305: Checking for trade window... +2023-11-24 20:46:11,511: Trade window detected. +2023-11-24 20:46:11,511: Dragging slider. +2023-11-24 20:46:14,527: Taking a screenshot for color search... +2023-11-24 20:46:20,293: Color not found on the screen. Using fallback coordinates. +2023-11-24 20:46:20,297: Performing left click. +2023-11-24 20:46:21,401: Color not found on the screen. Using fallback coordinates. +2023-11-24 20:46:21,404: Performing left click. +2023-11-24 20:46:22,511: Performing left click. +2023-11-24 20:46:22,615: Performing shift click. +2023-11-24 20:46:24,059: Posted to Discord: Potion clicked. +2023-11-24 20:46:24,064: Performing left click. +2023-11-24 20:46:24,168: Performing shift click. +2023-11-24 20:46:25,615: Posted to Discord: Potion clicked. +2023-11-24 20:46:25,616: Pressing 'Esc' key. +2023-11-24 20:46:26,632: Holding 'D' key for a step. +2023-11-24 20:46:28,118: Performing right click. +2023-11-24 20:46:29,221: Checking for trade window... +2023-11-24 20:46:30,503: Trade window detected. +2023-11-24 20:46:30,503: Dragging slider. +2023-11-24 20:46:33,520: Taking a screenshot for color search... +2023-11-24 20:46:39,147: Color not found on the screen. Using fallback coordinates. +2023-11-24 20:46:39,151: Performing left click. +2023-11-24 20:46:40,255: Color not found on the screen. Using fallback coordinates. +2023-11-24 20:46:40,259: Performing left click. +2023-11-24 20:46:41,367: Performing left click. +2023-11-24 20:46:41,471: Performing shift click. +2023-11-24 20:46:42,877: Posted to Discord: Potion clicked. +2023-11-24 20:46:42,881: Performing left click. +2023-11-24 20:46:42,985: Performing shift click. +2023-11-24 20:46:44,379: Posted to Discord: Potion clicked. +2023-11-24 20:46:44,380: Pressing 'Esc' key. +2023-11-24 20:46:45,395: Holding 'D' key for a step. +2023-11-24 20:46:46,881: Performing right click. +2023-11-24 20:46:47,984: Checking for trade window... +2023-11-24 20:46:49,458: Trade window detected. +2023-11-24 20:46:49,458: Dragging slider. +2023-11-24 20:46:52,473: Taking a screenshot for color search... +2023-11-24 20:46:56,547: Color found at (2559, 1396). Clicking at this position. +2023-11-24 20:46:56,550: Performing left click. +2023-11-24 20:46:57,654: Color found at (2559, 1396). Clicking at this position. +2023-11-24 20:46:57,658: Performing left click. +2023-11-24 20:46:58,765: Performing left click. +2023-11-24 20:46:58,869: Performing shift click. +2023-11-24 20:47:00,378: Posted to Discord: Potion clicked. +2023-11-24 20:47:00,382: Performing left click. +2023-11-24 20:47:00,486: Performing shift click. +2023-11-24 20:47:01,904: Posted to Discord: Potion clicked. +2023-11-24 20:47:01,904: Pressing 'Esc' key. +2023-11-24 20:47:02,921: Holding 'D' key for a step. +2023-11-24 20:47:04,406: Performing right click. +2023-11-24 20:47:05,510: Checking for trade window... +2023-11-24 20:47:06,788: Trade window detected. +2023-11-24 20:47:06,788: Dragging slider. +2023-11-24 20:47:09,802: Taking a screenshot for color search... +2023-11-24 20:47:15,497: Color not found on the screen. Using fallback coordinates. +2023-11-24 20:47:15,501: Performing left click. +2023-11-24 20:47:16,605: Color not found on the screen. Using fallback coordinates. +2023-11-24 20:47:16,608: Performing left click. +2023-11-24 20:47:17,715: Performing left click. +2023-11-24 20:47:17,819: Performing shift click. +2023-11-24 20:47:19,320: Posted to Discord: Potion clicked. +2023-11-24 20:47:19,324: Performing left click. +2023-11-24 20:47:19,428: Performing shift click. +2023-11-24 20:47:20,901: Posted to Discord: Potion clicked. +2023-11-24 20:47:20,901: Pressing 'Esc' key. +2023-11-24 20:47:21,918: Holding 'D' key for a step. +2023-11-24 20:47:23,404: Performing right click. +2023-11-24 20:47:24,509: Checking for trade window... +2023-11-24 20:47:25,882: Trade window not detected. Adjusting position. +2023-11-24 20:47:54,437: Trade window detected after adjustment. +2023-11-24 20:47:54,437: Dragging slider. +2023-11-24 20:47:57,451: Taking a screenshot for color search... +2023-11-24 20:48:01,547: Color found at (2536, 1425). Clicking at this position. +2023-11-24 20:48:01,551: Performing left click. +2023-11-24 20:48:02,655: Color found at (2536, 1425). Clicking at this position. +2023-11-24 20:48:02,659: Performing left click. +2023-11-24 20:48:03,768: Performing left click. +2023-11-24 20:48:03,872: Performing shift click. +2023-11-24 20:48:05,302: Posted to Discord: Potion clicked. +2023-11-24 20:48:05,307: Performing left click. +2023-11-24 20:48:05,411: Performing shift click. +2023-11-24 20:48:07,367: Posted to Discord: Potion clicked. +2023-11-24 20:48:07,367: Pressing 'Esc' key. +2023-11-24 20:48:08,384: Holding 'D' key for a step. +2023-11-24 20:48:09,869: Performing right click. +2023-11-24 20:48:10,972: Checking for trade window... +2023-11-24 20:48:12,309: Trade window detected. +2023-11-24 20:48:12,309: Dragging slider. +2023-11-24 20:48:15,325: Taking a screenshot for color search... +2023-11-24 20:48:19,391: Color found at (2556, 1404). Clicking at this position. +2023-11-24 20:48:19,395: Performing left click. +2023-11-24 20:48:20,499: Color found at (2556, 1404). Clicking at this position. +2023-11-24 20:48:20,503: Performing left click. +2023-11-24 20:48:21,611: Performing left click. +2023-11-24 20:48:21,716: Performing shift click. +2023-11-24 20:48:23,194: Posted to Discord: Potion clicked. +2023-11-24 20:48:23,198: Performing left click. +2023-11-24 20:48:23,303: Performing shift click. +2023-11-24 20:48:24,786: Posted to Discord: Potion clicked. +2023-11-24 20:48:24,786: Pressing 'Esc' key. +2023-11-24 20:48:25,803: Holding 'D' key for a step. +2023-11-24 20:48:27,289: Performing right click. +2023-11-24 20:48:28,392: Checking for trade window... +2023-11-24 20:48:29,605: Trade window detected. +2023-11-24 20:48:29,606: Dragging slider. +2023-11-24 20:48:32,622: Taking a screenshot for color search... +2023-11-24 20:48:36,596: Color found at (2536, 1420). Clicking at this position. +2023-11-24 20:48:36,600: Performing left click. +2023-11-24 20:48:37,704: Color found at (2536, 1420). Clicking at this position. +2023-11-24 20:48:37,707: Performing left click. +2023-11-24 20:48:38,815: Performing left click. +2023-11-24 20:48:38,919: Performing shift click. +2023-11-24 20:48:40,327: Posted to Discord: Potion clicked. +2023-11-24 20:48:40,331: Performing left click. +2023-11-24 20:48:40,435: Performing shift click. +2023-11-24 20:48:41,930: Posted to Discord: Potion clicked. +2023-11-24 20:48:41,930: Pressing 'Esc' key. +2023-11-24 20:48:42,946: Holding 'D' key for a step. +2023-11-24 20:48:44,431: Performing right click. +2023-11-24 20:48:45,535: Checking for trade window... +2023-11-24 20:48:46,865: Trade window detected. +2023-11-24 20:48:46,865: Dragging slider. +2023-11-24 20:48:49,881: Taking a screenshot for color search... +2023-11-24 20:48:53,942: Color found at (2556, 1395). Clicking at this position. +2023-11-24 20:48:53,946: Performing left click. +2023-11-24 20:48:55,050: Color found at (2556, 1395). Clicking at this position. +2023-11-24 20:48:55,053: Performing left click. +2023-11-24 20:48:56,159: Performing left click. +2023-11-24 20:48:56,262: Performing shift click. +2023-11-24 20:48:57,720: Posted to Discord: Potion clicked. +2023-11-24 20:48:57,724: Performing left click. +2023-11-24 20:48:57,829: Performing shift click. +2023-11-24 20:48:59,307: Posted to Discord: Potion clicked. +2023-11-24 20:48:59,308: Pressing 'Esc' key. +2023-11-24 20:49:00,325: Holding 'D' key for a step. +2023-11-24 20:49:01,811: Performing right click. +2023-11-24 20:49:02,915: Checking for trade window... +2023-11-24 20:49:04,381: Trade window detected. +2023-11-24 20:49:04,381: Dragging slider. +2023-11-24 20:49:07,396: Taking a screenshot for color search... +2023-11-24 20:49:11,526: Color found at (2535, 1423). Clicking at this position. +2023-11-24 20:49:11,530: Performing left click. +2023-11-24 20:49:12,634: Color found at (2535, 1423). Clicking at this position. +2023-11-24 20:49:12,638: Performing left click. +2023-11-24 20:49:13,746: Performing left click. +2023-11-24 20:49:13,850: Performing shift click. +2023-11-24 20:49:15,269: Posted to Discord: Potion clicked. +2023-11-24 20:49:15,274: Performing left click. +2023-11-24 20:49:15,378: Performing shift click. +2023-11-24 20:49:17,430: Posted to Discord: Potion clicked. +2023-11-24 20:49:17,430: Pressing 'Esc' key. +2023-11-24 20:49:18,447: Holding 'D' key for a step. +2023-11-24 20:49:19,932: Performing right click. +2023-11-24 20:49:21,036: Checking for trade window... +2023-11-24 20:49:22,412: Trade window detected. +2023-11-24 20:49:22,412: Dragging slider. +2023-11-24 20:49:25,428: Taking a screenshot for color search... +2023-11-24 20:49:29,523: Color found at (2558, 1394). Clicking at this position. +2023-11-24 20:49:29,527: Performing left click. +2023-11-24 20:49:30,631: Color found at (2558, 1394). Clicking at this position. +2023-11-24 20:49:30,634: Performing left click. +2023-11-24 20:49:31,741: Performing left click. +2023-11-24 20:49:31,846: Performing shift click. +2023-11-24 20:49:33,314: Posted to Discord: Potion clicked. +2023-11-24 20:49:33,319: Performing left click. +2023-11-24 20:49:33,423: Performing shift click. +2023-11-24 20:49:34,856: Posted to Discord: Potion clicked. +2023-11-24 20:49:34,857: Pressing 'Esc' key. +2023-11-24 20:49:35,873: Holding 'D' key for a step. +2023-11-24 20:49:37,359: Performing right click. +2023-11-24 20:49:38,464: Checking for trade window... +2023-11-24 20:49:39,696: Trade window detected. +2023-11-24 20:49:39,696: Dragging slider. +2023-11-24 20:49:42,709: Taking a screenshot for color search... +2023-11-24 20:49:46,798: Color found at (2545, 1432). Clicking at this position. +2023-11-24 20:49:46,802: Performing left click. +2023-11-24 20:49:47,906: Color found at (2545, 1432). Clicking at this position. +2023-11-24 20:49:47,909: Performing left click. +2023-11-24 20:49:49,017: Performing left click. +2023-11-24 20:49:49,123: Performing shift click. +2023-11-24 20:49:50,562: Posted to Discord: Potion clicked. +2023-11-24 20:49:50,566: Performing left click. +2023-11-24 20:49:50,671: Performing shift click. +2023-11-24 20:49:52,067: Posted to Discord: Potion clicked. +2023-11-24 20:49:52,068: Pressing 'Esc' key. +2023-11-24 20:49:53,084: Holding 'D' key for a step. +2023-11-24 20:49:54,570: Performing right click. +2023-11-24 20:49:55,675: Checking for trade window... +2023-11-24 20:49:56,891: Trade window detected. +2023-11-24 20:49:56,891: Dragging slider. +2023-11-24 20:49:59,907: Taking a screenshot for color search... +2023-11-24 20:50:05,315: Color not found on the screen. Using fallback coordinates. +2023-11-24 20:50:05,319: Performing left click. +2023-11-24 20:50:06,423: Color not found on the screen. Using fallback coordinates. +2023-11-24 20:50:06,427: Performing left click. +2023-11-24 20:50:07,535: Performing left click. +2023-11-24 20:50:07,638: Performing shift click. +2023-11-24 20:50:09,094: Posted to Discord: Potion clicked. +2023-11-24 20:50:09,098: Performing left click. +2023-11-24 20:50:09,201: Performing shift click. +2023-11-24 20:50:10,641: Posted to Discord: Potion clicked. +2023-11-24 20:50:10,642: Pressing 'Esc' key. +2023-11-24 20:50:11,657: Holding 'D' key for a step. +2023-11-24 20:50:13,143: Performing right click. +2023-11-24 20:50:14,247: Checking for trade window... +2023-11-24 20:50:15,458: Trade window detected. +2023-11-24 20:50:15,458: Dragging slider. +2023-11-24 20:50:18,474: Taking a screenshot for color search... +2023-11-24 20:50:22,374: Color found at (2559, 1409). Clicking at this position. +2023-11-24 20:50:22,378: Performing left click. +2023-11-24 20:50:23,482: Color found at (2559, 1409). Clicking at this position. +2023-11-24 20:50:23,486: Performing left click. +2023-11-24 20:50:24,594: Performing left click. +2023-11-24 20:50:24,698: Performing shift click. +2023-11-24 20:50:26,148: Posted to Discord: Potion clicked. +2023-11-24 20:50:26,153: Performing left click. +2023-11-24 20:50:26,257: Performing shift click. +2023-11-24 20:50:27,644: Posted to Discord: Potion clicked. +2023-11-24 20:50:27,644: Pressing 'Esc' key. +2023-11-24 20:50:28,660: Holding 'D' key for a step. +2023-11-24 20:50:30,145: Performing right click. +2023-11-24 20:50:31,248: Checking for trade window... +2023-11-24 20:50:32,580: Trade window detected. +2023-11-24 20:50:32,580: Dragging slider. +2023-11-24 20:50:35,592: Taking a screenshot for color search... +2023-11-24 20:50:40,837: Color not found on the screen. Using fallback coordinates. +2023-11-24 20:50:40,841: Performing left click. +2023-11-24 20:50:41,945: Color not found on the screen. Using fallback coordinates. +2023-11-24 20:50:41,949: Performing left click. +2023-11-24 20:50:43,056: Performing left click. +2023-11-24 20:50:43,159: Performing shift click. +2023-11-24 20:50:44,582: Posted to Discord: Potion clicked. +2023-11-24 20:50:44,587: Performing left click. +2023-11-24 20:50:44,690: Performing shift click. +2023-11-24 20:50:46,140: Posted to Discord: Potion clicked. +2023-11-24 20:50:46,140: Pressing 'Esc' key. +2023-11-24 20:50:47,156: Holding 'D' key for a step. +2023-11-24 20:50:48,643: Performing right click. +2023-11-24 20:50:49,747: Checking for trade window... +2023-11-24 20:50:50,833: Trade window detected. +2023-11-24 20:50:50,833: Dragging slider. +2023-11-24 20:50:53,848: Taking a screenshot for color search... +2023-11-24 20:50:57,929: Color found at (2559, 1397). Clicking at this position. +2023-11-24 20:50:57,933: Performing left click. +2023-11-24 20:50:59,036: Color found at (2559, 1397). Clicking at this position. +2023-11-24 20:50:59,039: Performing left click. +2023-11-24 20:51:00,146: Performing left click. +2023-11-24 20:51:00,251: Performing shift click. +2023-11-24 20:51:01,803: Posted to Discord: Potion clicked. +2023-11-24 20:51:01,808: Performing left click. +2023-11-24 20:51:01,911: Performing shift click. +2023-11-24 20:51:03,391: Posted to Discord: Potion clicked. +2023-11-24 20:51:03,392: Pressing 'Esc' key. +2023-11-24 20:51:04,408: Holding 'D' key for a step. +2023-11-24 20:51:05,894: Performing right click. +2023-11-24 20:51:06,999: Checking for trade window... +2023-11-24 20:51:08,384: Trade window not detected. Adjusting position. +2023-11-24 20:51:59,691: Trade window detected after adjustment. +2023-11-24 20:51:59,691: Dragging slider. +2023-11-24 20:52:02,707: Taking a screenshot for color search... +2023-11-24 20:52:06,598: Color found at (2560, 1398). Clicking at this position. +2023-11-24 20:52:06,601: Performing left click. +2023-11-24 20:52:07,704: Color found at (2560, 1398). Clicking at this position. +2023-11-24 20:52:07,708: Performing left click. +2023-11-24 20:52:08,815: Performing left click. +2023-11-24 20:52:08,919: Performing shift click. +2023-11-24 20:52:10,456: Posted to Discord: Potion clicked. +2023-11-24 20:52:10,461: Performing left click. +2023-11-24 20:52:10,566: Performing shift click. +2023-11-24 20:52:12,045: Posted to Discord: Potion clicked. +2023-11-24 20:52:12,046: Pressing 'Esc' key. +2023-11-24 20:52:13,062: Holding 'D' key for a step. +2023-11-24 20:52:14,548: Performing right click. +2023-11-24 20:52:15,653: Checking for trade window... +2023-11-24 20:52:16,970: Trade window detected. +2023-11-24 20:52:16,970: Dragging slider. +2023-11-24 20:52:19,984: Taking a screenshot for color search... +2023-11-24 20:52:23,928: Color found at (2537, 1424). Clicking at this position. +2023-11-24 20:52:23,932: Performing left click. +2023-11-24 20:52:25,036: Color found at (2537, 1424). Clicking at this position. +2023-11-24 20:52:25,040: Performing left click. +2023-11-24 20:52:26,149: Performing left click. +2023-11-24 20:52:26,253: Performing shift click. +2023-11-24 20:52:27,757: Posted to Discord: Potion clicked. +2023-11-24 20:52:27,761: Performing left click. +2023-11-24 20:52:27,865: Performing shift click. +2023-11-24 20:52:29,265: Posted to Discord: Potion clicked. +2023-11-24 20:52:29,265: Pressing 'Esc' key. +2023-11-24 20:52:30,282: Holding 'D' key for a step. +2023-11-24 20:52:31,767: Performing right click. +2023-11-24 20:52:32,870: Checking for trade window... +2023-11-24 20:52:34,246: Trade window detected. +2023-11-24 20:52:34,246: Dragging slider. +2023-11-24 20:52:37,261: Taking a screenshot for color search... +2023-11-24 20:52:41,237: Color found at (2557, 1405). Clicking at this position. +2023-11-24 20:52:41,241: Performing left click. +2023-11-24 20:52:42,346: Color found at (2557, 1405). Clicking at this position. +2023-11-24 20:52:42,349: Performing left click. +2023-11-24 20:52:43,456: Performing left click. +2023-11-24 20:52:43,560: Performing shift click. +2023-11-24 20:52:44,989: Posted to Discord: Potion clicked. +2023-11-24 20:52:44,994: Performing left click. +2023-11-24 20:52:45,099: Performing shift click. +2023-11-24 20:52:46,501: Posted to Discord: Potion clicked. +2023-11-24 20:52:46,501: Pressing 'Esc' key. +2023-11-24 20:52:47,517: Holding 'D' key for a step. +2023-11-24 20:52:49,003: Performing right click. +2023-11-24 20:52:50,106: Checking for trade window... +2023-11-24 20:52:51,296: Trade window detected. +2023-11-24 20:52:51,296: Dragging slider. +2023-11-24 20:52:54,310: Taking a screenshot for color search... +2023-11-24 20:52:58,326: Color found at (2535, 1424). Clicking at this position. +2023-11-24 20:52:58,330: Performing left click. +2023-11-24 20:52:59,433: Color found at (2535, 1424). Clicking at this position. +2023-11-24 20:52:59,437: Performing left click. +2023-11-24 20:53:00,543: Performing left click. +2023-11-24 20:53:00,646: Performing shift click. +2023-11-24 20:53:02,070: Posted to Discord: Potion clicked. +2023-11-24 20:53:02,074: Performing left click. +2023-11-24 20:53:02,178: Performing shift click. +2023-11-24 20:53:03,571: Posted to Discord: Potion clicked. +2023-11-24 20:53:03,572: Pressing 'Esc' key. +2023-11-24 20:53:04,588: Holding 'D' key for a step. +2023-11-24 20:53:06,072: Performing right click. +2023-11-24 20:53:07,176: Checking for trade window... +2023-11-24 20:53:08,400: Trade window not detected. Adjusting position. +2023-11-24 20:53:12,939: Trade window detected after adjustment. +2023-11-24 20:53:12,939: Dragging slider. +2023-11-24 20:53:15,953: Taking a screenshot for color search... +2023-11-24 20:53:19,938: Color found at (2537, 1424). Clicking at this position. +2023-11-24 20:53:19,942: Performing left click. +2023-11-24 20:53:21,046: Color found at (2537, 1424). Clicking at this position. +2023-11-24 20:53:21,049: Performing left click. +2023-11-24 20:53:22,156: Performing left click. +2023-11-24 20:53:22,259: Performing shift click. +2023-11-24 20:53:23,721: Posted to Discord: Potion clicked. +2023-11-24 20:53:23,726: Performing left click. +2023-11-24 20:53:23,830: Performing shift click. +2023-11-24 20:53:25,300: Posted to Discord: Potion clicked. +2023-11-24 20:53:25,301: Pressing 'Esc' key. +2023-11-24 20:53:26,317: Holding 'D' key for a step. +2023-11-24 20:53:27,801: Performing right click. +2023-11-24 20:53:28,904: Checking for trade window... +2023-11-24 20:53:30,239: Trade window detected. +2023-11-24 20:53:30,239: Dragging slider. +2023-11-24 20:53:33,254: Taking a screenshot for color search... +2023-11-24 20:53:37,330: Color found at (2561, 1397). Clicking at this position. +2023-11-24 20:53:37,334: Performing left click. +2023-11-24 20:53:38,438: Color found at (2561, 1397). Clicking at this position. +2023-11-24 20:53:38,442: Performing left click. +2023-11-24 20:53:39,550: Performing left click. +2023-11-24 20:53:39,653: Performing shift click. +2023-11-24 20:53:41,171: Posted to Discord: Potion clicked. +2023-11-24 20:53:41,174: Performing left click. +2023-11-24 20:53:41,278: Performing shift click. +2023-11-24 20:53:42,732: Posted to Discord: Potion clicked. +2023-11-24 20:53:42,732: Pressing 'Esc' key. +2023-11-24 20:53:43,749: Holding 'D' key for a step. +2023-11-24 20:53:45,234: Performing right click. +2023-11-24 20:53:46,338: Checking for trade window... +2023-11-24 20:53:47,717: Trade window detected. +2023-11-24 20:53:47,717: Dragging slider. +2023-11-24 20:53:50,731: Taking a screenshot for color search... +2023-11-24 20:53:54,873: Color found at (2545, 1432). Clicking at this position. +2023-11-24 20:53:54,877: Performing left click. +2023-11-24 20:53:55,981: Color found at (2545, 1432). Clicking at this position. +2023-11-24 20:53:55,985: Performing left click. +2023-11-24 20:53:57,093: Performing left click. +2023-11-24 20:53:57,196: Performing shift click. +2023-11-24 20:53:58,615: Posted to Discord: Potion clicked. +2023-11-24 20:53:58,620: Performing left click. +2023-11-24 20:53:58,724: Performing shift click. +2023-11-24 20:54:00,210: Posted to Discord: Potion clicked. +2023-11-24 20:54:00,210: Pressing 'Esc' key. +2023-11-24 20:54:01,227: Holding 'D' key for a step. +2023-11-24 20:54:02,712: Performing right click. +2023-11-24 20:54:03,816: Checking for trade window... +2023-11-24 20:54:05,200: Trade window detected. +2023-11-24 20:54:05,200: Dragging slider. +2023-11-24 20:54:08,212: Taking a screenshot for color search... +2023-11-24 20:54:12,270: Color found at (2535, 1420). Clicking at this position. +2023-11-24 20:54:12,273: Performing left click. +2023-11-24 20:54:13,377: Color found at (2535, 1420). Clicking at this position. +2023-11-24 20:54:13,381: Performing left click. +2023-11-24 20:54:14,489: Performing left click. +2023-11-24 20:54:14,593: Performing shift click. +2023-11-24 20:54:16,028: Posted to Discord: Potion clicked. +2023-11-24 20:54:16,033: Performing left click. +2023-11-24 20:54:16,137: Performing shift click. +2023-11-24 20:54:17,591: Posted to Discord: Potion clicked. +2023-11-24 20:54:17,592: Pressing 'Esc' key. +2023-11-24 20:54:18,608: Holding 'D' key for a step. +2023-11-24 20:54:20,095: Performing right click. +2023-11-24 20:54:21,199: Checking for trade window... +2023-11-24 20:54:22,687: Trade window detected. +2023-11-24 20:54:22,687: Dragging slider. +2023-11-24 20:54:25,701: Taking a screenshot for color search...