Skip to content

Commit 18e4c12

Browse files
feat(sys): update bindings for MaaFramework v5.12.1 (#53)
1 parent 0db1f7d commit 18e4c12

5 files changed

Lines changed: 7 additions & 5 deletions

File tree

Cargo.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,4 @@ homepage = "https://github.com/MaaXYZ/MaaFramework"
1111
repository = "https://github.com/MaaXYZ/MaaFramework"
1212

1313
[workspace.dependencies]
14-
maa-framework-sys = { path = "maa-framework-sys", version = "5.11.2" }
14+
maa-framework-sys = { path = "maa-framework-sys", version = "5.12.1" }

maa-framework-sys/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "maa-framework-sys"
3-
version = "5.11.2"
3+
version = "5.12.1"
44
authors.workspace = true
55
edition.workspace = true
66
description = "Low-level Rust bindings for MaaFramework"

maa-framework-sys/src/bindings/dynamic_bindings.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ pub const MaaWin32InputMethod_SendMessageWithCursorPos: u32 = 32;
4141
pub const MaaWin32InputMethod_PostMessageWithCursorPos: u32 = 64;
4242
pub const MaaWin32InputMethod_SendMessageWithWindowPos: u32 = 128;
4343
pub const MaaWin32InputMethod_PostMessageWithWindowPos: u32 = 256;
44+
pub const MaaWin32InputMethod_Interception: u32 = 512;
4445
pub const MaaMacOSScreencapMethod_None: u32 = 0;
4546
pub const MaaMacOSScreencapMethod_ScreenCaptureKit: u32 = 1;
4647
pub const MaaMacOSInputMethod_None: u32 = 0;
@@ -221,7 +222,7 @@ pub type MaaAdbScreencapMethod = u64;
221222
pub type MaaAdbInputMethod = u64;
222223
#[doc = " @brief Win32 screencap method flags\n\n Use bitwise OR to set the methods you need.\n MaaFramework will test all provided methods and use the fastest available one.\n\n No default value. Client should choose one as default.\n\n Predefined combinations:\n - Foreground: DXGI_DesktopDup_Window | ScreenDC\n - Background: FramePool | PrintWindow\n\n Different applications use different rendering methods, there is no universal solution.\n\n | Method | Speed | Compatibility | Require Admin | Background Support | Notes |\n |-------------------------|-----------|---------------|---------------|--------------------|----------------------------------|\n | GDI | Fast | Medium | No | No | |\n | FramePool | Very Fast | Medium | No | Yes | Requires Windows 10 1903+ |\n | DXGI_DesktopDup | Very Fast | Low | No | No | Desktop duplication (full screen)|\n | DXGI_DesktopDup_Window | Very Fast | Low | No | No | Desktop duplication then crop |\n | PrintWindow | Medium | Medium | No | Yes | |\n | ScreenDC | Fast | High | No | No | |\n\n Note: FramePool and PrintWindow support pseudo-minimize — when the target window\n is minimized, they make it transparent and click-through, then restore it without\n activation, allowing screencap to continue without disturbing the user.\n Other screencap methods will fail when the target window is minimized."]
223224
pub type MaaWin32ScreencapMethod = u64;
224-
#[doc = " @brief Win32 input method\n\n No bitwise OR, select ONE method only.\n\n No default value. Client should choose one as default.\n\n Different applications process input differently, there is no universal solution.\n\n | Method | Compatibility | Require Admin | Seize Mouse | Background Support | Notes |\n |------------------------------|---------------|---------------|--------------|--------------------|-------------------------------------------------------------\n | | Seize | High | No | Yes | No | | | SendMessage |\n Medium | Maybe | No | Yes | | |\n PostMessage | Medium | Maybe | No | Yes | | | LegacyEvent | Low\n | No | Yes | No | | | PostThreadMessage\n | Low | Maybe | No | Yes | | |\n SendMessageWithCursorPos | Medium | Maybe | Briefly | Yes | Moves cursor to target position, then\n restores | | PostMessageWithCursorPos | Medium | Maybe | Briefly | Yes | Moves cursor\n to target position, then restores | | SendMessageWithWindowPos | Medium | Maybe | No | Yes |\n Moves window to align target with cursor, then restores | | PostMessageWithWindowPos | Medium | Maybe | No | Yes |\n Moves window to align target with cursor, then restores |\n\n Note:\n - Admin rights mainly depend on the target application's privilege level.\n If the target runs as admin, MaaFramework should also run as admin for compatibility.\n - \"WithCursorPos\" methods briefly move the cursor to target position, send message,\n then restore cursor position. This \"briefly\" seizes the mouse but won't block user operations.\n - \"WithWindowPos\" methods briefly move the window so the target aligns with the current cursor\n position, send message, then restore the window position. The cursor is not moved."]
225+
#[doc = " @brief Win32 input method\n\n No bitwise OR, select ONE method only.\n\n No default value. Client should choose one as default.\n\n Different applications process input differently, there is no universal solution.\n\n | Method | Compatibility | Require Admin | Seize Mouse | Background Support | Notes |\n |------------------------------|---------------|---------------|-------------|--------------------|-------------------------------------------------------------|\n | Seize | High | No | Yes | No | | | SendMessage |\n Medium | Maybe | No | Yes | | |\n PostMessage | Medium | Maybe | No | Yes | | | LegacyEvent | Low\n | No | Yes | No | | | PostThreadMessage |\n Low | Maybe | No | Yes | Deprecated | |\n SendMessageWithCursorPos | Medium | Maybe | Briefly | Yes | Moves cursor to target position, then\n restores | | PostMessageWithCursorPos | Medium | Maybe | Briefly | Yes | Moves cursor\n to target position, then restores | | SendMessageWithWindowPos | Medium | Maybe | No | Yes |\n Moves window to align target with cursor, then restores | | PostMessageWithWindowPos | Medium | Maybe | No | Yes\n | Moves window to align target with cursor, then restores | | Interception | Medium | Yes | No | No\n | Driver-level input injection via the Interception driver |\n\n Note:\n - Admin rights mainly depend on the target application's privilege level.\n If the target runs as admin, MaaFramework should also run as admin for compatibility.\n - \"WithCursorPos\" methods briefly move the cursor to target position, send message,\n then restore cursor position. This \"briefly\" seizes the mouse but won't block user operations.\n - \"WithWindowPos\" methods briefly move the window so the target aligns with the current cursor\n position, send message, then restore the window position. The cursor is not moved."]
225226
pub type MaaWin32InputMethod = u64;
226227
#[doc = " @brief macOS screencap method\n\n Select ONE method only.\n\n | Method | Description |\n |-----------------|------------------------------------------------|\n | ScreenCaptureKit| Modern macOS screencap using ScreenCaptureKit |"]
227228
pub type MaaMacOSScreencapMethod = u64;

maa-framework-sys/src/bindings/static_bindings.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ pub const MaaWin32InputMethod_SendMessageWithCursorPos: u32 = 32;
3838
pub const MaaWin32InputMethod_PostMessageWithCursorPos: u32 = 64;
3939
pub const MaaWin32InputMethod_SendMessageWithWindowPos: u32 = 128;
4040
pub const MaaWin32InputMethod_PostMessageWithWindowPos: u32 = 256;
41+
pub const MaaWin32InputMethod_Interception: u32 = 512;
4142
pub const MaaMacOSScreencapMethod_None: u32 = 0;
4243
pub const MaaMacOSScreencapMethod_ScreenCaptureKit: u32 = 1;
4344
pub const MaaMacOSInputMethod_None: u32 = 0;
@@ -218,7 +219,7 @@ pub type MaaAdbScreencapMethod = u64;
218219
pub type MaaAdbInputMethod = u64;
219220
#[doc = " @brief Win32 screencap method flags\n\n Use bitwise OR to set the methods you need.\n MaaFramework will test all provided methods and use the fastest available one.\n\n No default value. Client should choose one as default.\n\n Predefined combinations:\n - Foreground: DXGI_DesktopDup_Window | ScreenDC\n - Background: FramePool | PrintWindow\n\n Different applications use different rendering methods, there is no universal solution.\n\n | Method | Speed | Compatibility | Require Admin | Background Support | Notes |\n |-------------------------|-----------|---------------|---------------|--------------------|----------------------------------|\n | GDI | Fast | Medium | No | No | |\n | FramePool | Very Fast | Medium | No | Yes | Requires Windows 10 1903+ |\n | DXGI_DesktopDup | Very Fast | Low | No | No | Desktop duplication (full screen)|\n | DXGI_DesktopDup_Window | Very Fast | Low | No | No | Desktop duplication then crop |\n | PrintWindow | Medium | Medium | No | Yes | |\n | ScreenDC | Fast | High | No | No | |\n\n Note: FramePool and PrintWindow support pseudo-minimize — when the target window\n is minimized, they make it transparent and click-through, then restore it without\n activation, allowing screencap to continue without disturbing the user.\n Other screencap methods will fail when the target window is minimized."]
220221
pub type MaaWin32ScreencapMethod = u64;
221-
#[doc = " @brief Win32 input method\n\n No bitwise OR, select ONE method only.\n\n No default value. Client should choose one as default.\n\n Different applications process input differently, there is no universal solution.\n\n | Method | Compatibility | Require Admin | Seize Mouse | Background Support | Notes |\n |------------------------------|---------------|---------------|--------------|--------------------|-------------------------------------------------------------\n | | Seize | High | No | Yes | No | | | SendMessage |\n Medium | Maybe | No | Yes | | |\n PostMessage | Medium | Maybe | No | Yes | | | LegacyEvent | Low\n | No | Yes | No | | | PostThreadMessage\n | Low | Maybe | No | Yes | | |\n SendMessageWithCursorPos | Medium | Maybe | Briefly | Yes | Moves cursor to target position, then\n restores | | PostMessageWithCursorPos | Medium | Maybe | Briefly | Yes | Moves cursor\n to target position, then restores | | SendMessageWithWindowPos | Medium | Maybe | No | Yes |\n Moves window to align target with cursor, then restores | | PostMessageWithWindowPos | Medium | Maybe | No | Yes |\n Moves window to align target with cursor, then restores |\n\n Note:\n - Admin rights mainly depend on the target application's privilege level.\n If the target runs as admin, MaaFramework should also run as admin for compatibility.\n - \"WithCursorPos\" methods briefly move the cursor to target position, send message,\n then restore cursor position. This \"briefly\" seizes the mouse but won't block user operations.\n - \"WithWindowPos\" methods briefly move the window so the target aligns with the current cursor\n position, send message, then restore the window position. The cursor is not moved."]
222+
#[doc = " @brief Win32 input method\n\n No bitwise OR, select ONE method only.\n\n No default value. Client should choose one as default.\n\n Different applications process input differently, there is no universal solution.\n\n | Method | Compatibility | Require Admin | Seize Mouse | Background Support | Notes |\n |------------------------------|---------------|---------------|-------------|--------------------|-------------------------------------------------------------|\n | Seize | High | No | Yes | No | | | SendMessage |\n Medium | Maybe | No | Yes | | |\n PostMessage | Medium | Maybe | No | Yes | | | LegacyEvent | Low\n | No | Yes | No | | | PostThreadMessage |\n Low | Maybe | No | Yes | Deprecated | |\n SendMessageWithCursorPos | Medium | Maybe | Briefly | Yes | Moves cursor to target position, then\n restores | | PostMessageWithCursorPos | Medium | Maybe | Briefly | Yes | Moves cursor\n to target position, then restores | | SendMessageWithWindowPos | Medium | Maybe | No | Yes |\n Moves window to align target with cursor, then restores | | PostMessageWithWindowPos | Medium | Maybe | No | Yes\n | Moves window to align target with cursor, then restores | | Interception | Medium | Yes | No | No\n | Driver-level input injection via the Interception driver |\n\n Note:\n - Admin rights mainly depend on the target application's privilege level.\n If the target runs as admin, MaaFramework should also run as admin for compatibility.\n - \"WithCursorPos\" methods briefly move the cursor to target position, send message,\n then restore cursor position. This \"briefly\" seizes the mouse but won't block user operations.\n - \"WithWindowPos\" methods briefly move the window so the target aligns with the current cursor\n position, send message, then restore the window position. The cursor is not moved."]
222223
pub type MaaWin32InputMethod = u64;
223224
#[doc = " @brief macOS screencap method\n\n Select ONE method only.\n\n | Method | Description |\n |-----------------|------------------------------------------------|\n | ScreenCaptureKit| Modern macOS screencap using ScreenCaptureKit |"]
224225
pub type MaaMacOSScreencapMethod = u64;

0 commit comments

Comments
 (0)