Constructor MaaWin32Controller
- Namespace
- MaaFramework.Binding
- Assembly
- MaaFramework.Binding.Native.dll
MaaWin32Controller(DesktopWindowInfo, Win32ScreencapMethod, Win32InputMethod, LinkOption, CheckStatusOption)
Creates a MaaFramework.Binding.MaaWin32Controller instance.
public MaaWin32Controller(DesktopWindowInfo desktopWindow, Win32ScreencapMethod screencapMethod, Win32InputMethod inputMethod, LinkOption link = LinkOption.Start, CheckStatusOption check = CheckStatusOption.ThrowIfNotSucceeded)Parameters
desktopWindowDesktopWindowInfo-
The desktop window info.
screencapMethodWin32ScreencapMethod-
The screencap method.
inputMethodWin32InputMethod-
The input method.
linkLinkOption-
Executes MaaFramework.Binding.IMaaController.LinkStart if MaaFramework.Binding.LinkOption.Start; otherwise, not link.
checkCheckStatusOption-
Checks LinkStart().Wait() status if MaaFramework.Binding.CheckStatusOption.ThrowIfNotSucceeded; otherwise, not check.
Remarks
Wrapper of MaaFramework.Binding.Interop.Native.MaaController.MaaWin32ControllerCreate(System.IntPtr,System.UInt64,System.UInt64,MaaFramework.Binding.Interop.Native.MaaNotificationCallback,System.IntPtr).
Exceptions
MaaWin32Controller(nint, Win32ScreencapMethod, Win32InputMethod, LinkOption, CheckStatusOption)
Creates a MaaFramework.Binding.MaaWin32Controller instance.
public MaaWin32Controller(nint hWnd, Win32ScreencapMethod screencapMethod, Win32InputMethod inputMethod, LinkOption link = LinkOption.Start, CheckStatusOption check = CheckStatusOption.ThrowIfNotSucceeded)Parameters
hWndnint-
The handle to a win32 window.
screencapMethodWin32ScreencapMethod-
The screencap method.
inputMethodWin32InputMethod-
The input method.
linkLinkOption-
Executes MaaFramework.Binding.IMaaController.LinkStart if MaaFramework.Binding.LinkOption.Start; otherwise, not link.
checkCheckStatusOption-
Checks LinkStart().Wait() status if MaaFramework.Binding.CheckStatusOption.ThrowIfNotSucceeded; otherwise, not check.
Remarks
Wrapper of MaaFramework.Binding.Interop.Native.MaaController.MaaWin32ControllerCreate(System.IntPtr,System.UInt64,System.UInt64,MaaFramework.Binding.Interop.Native.MaaNotificationCallback,System.IntPtr).