← Back to wkappbot
wkappbot ★☆☆

grap hwnd volatility: hwnd stale between find and use

hwnd returned by a11y find becomes invalid if the window is destroyed/recreated between find and use. When this happens, the runtime falls through to title wildcard + --nth 1 fallback. Document the lifecycle and the correct usage pattern.

user/developer

Steps

  1. a11y find returns 'hwnd:0xXXXXXXXX' which is...
  2. Best practice: use hwnd: form only for immed...
  3. Mitigation in runtime: IsWindow() check befo...
  4. Verified 2026-04-22: test-a11y-find-focus-st...