docs(cua-driver): correct CoreWindow/Calculator section in autostart.mdx - #1608
Conversation
…start.mdx The "What it does NOT unlock" section had a wrong architectural claim: that CoreWindow apps like Calculator are unreachable because they have no addressable HWND. The triangulation done in #1606 (Calculator vs Settings vs modern Notepad) showed the actual pattern: ElementFromHandle on a Windows.UI.Core.CoreWindow HWND returns an empty wrapper, but the real XAML tree is registered at the desktop root as a sibling element with the same ProcessId. inspect.exe walks from root for these apps; cua-driver-rs now does the same via the root-walk fallback merged in #1606. Replaces the architectural-limit paragraph with: - A new "CoreWindow-class apps and the UIA root-walk fallback" section explaining what the fallback does and linking to #1606 - An updated "What it does NOT unlock" entry that points at the real remaining gap: hotkey accelerator shortcuts on XAML targets (#1607), with the workaround (UIA tree walk + click on the menu item) Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
Caution Review failedThe pull request is closed. ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (1)
📝 WalkthroughWalkthroughThis PR updates the autostart and UWP automation documentation by expanding the limitations section. It adds a detailed subsection explaining how CoreWindow-class apps (Calculator, Settings, older UWPs) are handled when element queries return no actionable nodes, describes a UIA root-walk fallback behavior, and clarifies hotkey accelerator limitations on XAML targets with a documented workaround. ChangesCoreWindow UIA Fallback and Hotkey Limitation Documentation
🎯 1 (Trivial) | ⏱️ ~3 minutes Possibly related PRs
Poem
✨ Finishing Touches🧪 Generate unit tests (beta)
Warning There were issues while running some tools. Please review the errors and either fix the tool's configuration or disable the tool if it's a critical failure. 🔧 ESLint
ESLint skipped: no ESLint configuration detected in root package.json. To enable, add Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Summary
The autostart.mdx "What it does NOT unlock" section had a wrong architectural claim about Calculator-class apps. The triangulation in #1606 showed the actual pattern:
ElementFromHandleon aWindows.UI.Core.CoreWindowHWND returns an empty wrapper, but the real XAML tree is registered at the desktop root as a sibling element with the sameProcessId. cua-driver-rs's UIA enumerator now handles that transparently via the root-walk fallback merged in #1606.Changes
hotkeyaccelerator shortcuts (#1607), with the existing UIA-walk +clickworkaroundTest plan
pnpm docs:check-links(will be exercised by CI)🤖 Generated with Claude Code
Summary by CodeRabbit