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)