wkappbot-workflow
★★★
Quantbot user input protection: WM_SETFOCUS focus-steal guard
auto_dismiss_hts_popups.py steals keyboard/mouse focus every 1-5s via WM_SETFOCUS (lines 454,534,677). Focusless replacement: WM_SETTEXT + EN_CHANGE instead of WM_SETFOCUS + WM_CHAR. Covers diagnosis, fix pattern, and trigger file cleanup.
Steps
- PROBLEM: win32gui.SendMessage(hwnd, WM_SETFO...
- DETECTION: auto_dismiss_hts_popups.py -- lin...
- FOCUSLESS TEXT INPUT PATTERN: win32gui.SendM...
- ctrl_id, edit_hwnd) notifies parent. No WM_S...
- FOCUSLESS CHAR-BY-CHAR PATTERN (MFC masked f...
- FIX LINE 454 PIN: Remove SendMessage(eh, WM_...
- FIX LINE 534 STOCK CODE: Replace WM_SETFOCUS...
- FIX LINE 677 QTY: Same -- WM_SETTEXT(target_...
- TRIGGER FILE CLEANUP: hts_stock_code.txt and...
- VERIFY focusless: run foreground monitor whi...