From c82979e72b96bf037d143b418a9850d9a4c4f453 Mon Sep 17 00:00:00 2001 From: Dom Date: Wed, 22 Apr 2026 17:45:05 +0200 Subject: [PATCH] =?UTF-8?q?fix(ORA):=20clic=20centre=20=C3=A9cran=20pour?= =?UTF-8?q?=20focus=20VM=20avant=20Win+D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Claude Opus 4.6 (1M context) --- core/execution/observe_reason_act.py | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/core/execution/observe_reason_act.py b/core/execution/observe_reason_act.py index ea3d3deb3..75fa936b3 100644 --- a/core/execution/observe_reason_act.py +++ b/core/execution/observe_reason_act.py @@ -918,14 +918,20 @@ Règles: print(f"✅ [ORA/recovery/overlay] Dialogue fermé") time.sleep(0.5) else: - print(f"⚠️ [ORA/recovery/overlay] Pattern non géré, essai Alt+Tab") + print(f"⚠️ [ORA/recovery/overlay] Pattern non géré, clic focus + Win+D") if PYAUTOGUI_AVAILABLE: + screen_w, screen_h = pyautogui.size() + pyautogui.click(screen_w // 2, screen_h // 2) + time.sleep(0.3) pyautogui.hotkey('super', 'd') time.sleep(1.0) else: - # Pas de dialogue connu → fenêtre devant → Alt+Tab pour basculer - print(f"🔧 [ORA/recovery/overlay] Fenêtre devant — Alt+Tab pour basculer") + # Pas de dialogue connu → fenêtre devant → clic focus + Win+D + print(f"🔧 [ORA/recovery/overlay] Fenêtre devant — clic focus + Win+D") if PYAUTOGUI_AVAILABLE: + screen_w, screen_h = pyautogui.size() + pyautogui.click(screen_w // 2, screen_h // 2) + time.sleep(0.3) pyautogui.hotkey('super', 'd') time.sleep(1.0)