Table of Contents

Enum Win32InputMethod

Namespace
MaaFramework.Binding
Assembly
MaaFramework.Binding.dll
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  |                                                   |
| SendMessage              | Medium        | Maybe         | No           | Yes |                                                   |
| PostMessage              | Medium        | Maybe         | No           | Yes |                                                   |
| LegacyEvent              | Low           | No            | Yes          | No  |                                                   |
| PostThreadMessage        | Low           | Maybe         | No           | Yes |                                                   |
| SendMessageWithCursorPos | Medium        | Maybe         | Briefly      | Yes | Designed for apps that check real cursor position |
| PostMessageWithCursorPos | Medium        | Maybe         | Briefly      | Yes | Designed for apps that check real cursor position |

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.

public enum Win32InputMethod : ulong

Fields

LegacyEvent = 8
None = 0
PostMessage = 4
PostMessageWithCursorPos = 64
PostThreadMessage = 16
Seize = 1
SendMessage = 2
SendMessageWithCursorPos = 32