pub type MaaWin32InputMethod = u64;Expand description
@brief Win32 input method
No bitwise OR, select ONE method only.
No default value. Client should choose one as default.
Different applications process input differently, there is no universal solution.
| Method | Compatibility | Require Admin | Seize Mouse | Background Support | Notes |
|---|---|---|---|---|---|
| Seize | High | No | Yes | No | |
| Medium | Maybe | No | Yes | ||
| PostMessage | Medium | Maybe | No | Yes | |
| No | Yes | No | PostThreadMessage | ||
| Low | Maybe | No | Yes | ||
| SendMessageWithCursorPos | Medium | Maybe | Briefly | Yes | Moves cursor to target position, then |
| restores | PostMessageWithCursorPos | Medium | Maybe | Briefly | |
| to target position, then restores | SendMessageWithWindowPos | Medium | Maybe | No | |
| Moves window to align target with cursor, then restores | PostMessageWithWindowPos | Medium | Maybe | No | |
| Moves window to align target with cursor, then restores |
Note:
- Admin rights mainly depend on the target application’s privilege level. If the target runs as admin, MaaFramework should also run as admin for compatibility.
- “WithCursorPos” methods briefly move the cursor to target position, send message, then restore cursor position. This “briefly” seizes the mouse but won’t block user operations.
- “WithWindowPos” methods briefly move the window so the target aligns with the current cursor position, send message, then restore the window position. The cursor is not moved.