Auto-select target window with optional override