← Back to wkappbot
wkappbot ★☆☆

# Control UI Without Stealing Focus -- 3-Tier Focusless Strategy

UIA Invoke/Value/Toggle/Select = truly focusless. WM_CHAR = focusless typing via PostMessage. SendInput/Hotkey = must EnsureFocus first. Tier order: UIA pattern -> Win32 PostMessage -> SendInput. MFC CMaskEditEx: WM_CHAR only -- TranslateMessage auto-generates it, never use EM_SETTEXT or you get double input.

user/developer
focusless uia win32 input mfc focus project

## Steps

1. Tier 1 (preferred, truly focusless): UIA Inv...
2. Tier 2 (focusless typing): Win32 PostMessage...
3. Tier 3 (last resort): SendInput / Hotkey — m...