From 43c4aa320a47a041cde9816b3e0009b7601cf2fa Mon Sep 17 00:00:00 2001 From: Alex Date: Thu, 11 Jan 2024 19:39:11 +0100 Subject: [PATCH] display --- minecraft_automation_log.txt | 20 ++++++++++++++++++++ trader.py | 2 +- 2 files changed, 21 insertions(+), 1 deletion(-) diff --git a/minecraft_automation_log.txt b/minecraft_automation_log.txt index 87ae38c..35879d1 100644 --- a/minecraft_automation_log.txt +++ b/minecraft_automation_log.txt @@ -12312,3 +12312,23 @@ 2023-12-19 12:01:37,412: Performing right click. 2023-12-19 12:01:38,413: Checking for trade window... 2023-12-19 12:01:38,413: Trade window not detected. Adjusting position. +2024-01-05 10:54:27,009: Focusing Minecraft window... +2024-01-05 10:54:29,019: Pressing Esc... +2024-01-05 10:54:31,042: Performing right click. +2024-01-05 10:54:32,144: Checking for trade window... +2024-01-05 10:54:33,249: Trade window not detected. Adjusting position. +2024-01-05 10:55:09,218: Focusing Minecraft window... +2024-01-05 10:55:11,228: Pressing Esc... +2024-01-05 10:55:13,244: Performing right click. +2024-01-05 10:55:14,346: Checking for trade window... +2024-01-05 10:55:15,442: Trade window not detected. Adjusting position. +2024-01-05 10:55:41,758: Focusing Minecraft window... +2024-01-05 10:55:43,767: Pressing Esc... +2024-01-05 10:55:45,783: Performing right click. +2024-01-05 10:55:46,885: Checking for trade window... +2024-01-05 10:55:47,894: Trade window not detected. Adjusting position. +2024-01-05 11:09:46,747: Focusing Minecraft window... +2024-01-05 11:09:48,755: Pressing Esc... +2024-01-05 11:09:50,775: Performing right click. +2024-01-05 11:09:51,877: Checking for trade window... +2024-01-05 11:09:52,909: Trade window not detected. Adjusting position. diff --git a/trader.py b/trader.py index 36f6a3d..1068c10 100644 --- a/trader.py +++ b/trader.py @@ -3,7 +3,7 @@ import subprocess import time from PIL import Image, ImageGrab import logging - +from Xlib import display # Setup logging logging.basicConfig(filename='minecraft_automation_log.txt', level=logging.INFO, format='%(asctime)s: %(message)s')