From 3f76bcb7e1a9166543d358874f1d65374a3fff85 Mon Sep 17 00:00:00 2001 From: youpaishidifu Date: Sun, 26 Jul 2026 12:05:33 +0800 Subject: [PATCH] =?UTF-8?q?OCR=E5=B7=A6=E8=BE=B9=E7=95=8C40%=E2=86=9233%?= =?UTF-8?q?=E7=BB=A7=E7=BB=AD=E5=B7=A6=E7=A7=BB=E9=81=BF=E5=BC=80=E8=87=AA?= =?UTF-8?q?=E8=BA=AB=E6=B6=88=E6=81=AF\n\n-=20cap=5Fleft=20=E4=BB=8E=200.4?= =?UTF-8?q?0=20=E9=99=8D=E5=88=B0=200.33=EF=BC=8C=E5=B9=85=E5=BA=A6?= =?UTF-8?q?=E6=9B=B4=E5=A4=A7\n-=20=E7=9B=AE=E6=A0=87=EF=BC=9A=E5=8F=AA?= =?UTF-8?q?=E6=8D=95=E8=8E=B7=E5=B7=A6=E4=BE=A7=E4=BB=96=E4=BA=BA=E6=B6=88?= =?UTF-8?q?=E6=81=AF=E5=8C=BA=E5=9F=9F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- monitor.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/monitor.py b/monitor.py index d4aaceb..0d02558 100644 --- a/monitor.py +++ b/monitor.py @@ -570,8 +570,8 @@ class MessageMonitor: # 先切 QQ 到前台再截屏,避免 CMD 窗口遮挡→OCR 读到终端文字 self._ensure_foreground(hwnd) time.sleep(0.15) - # 左边界进一步往左调到 40%,捕获消息文字(而非时间戳/UI 碎片) - cap_left = int(left + win_w * 0.40) + # 左边界调到 33%,捕获更靠左的消息文字 + cap_left = int(left + win_w * 0.33) cap_top = top + max(40, int(win_h * 0.04)) # 标题栏下方 cap_right = int(left + win_w * 0.95) # 跳过滚动条 cap_bottom = bottom - max(100, int(win_h * 0.10)) # 输入框上方