Documentation ¶
Index ¶
- func FindWindow(className, windowName string) uint64
- func GetCursorWindow() unsafe.Pointer
- func GetDesktopWindow() unsafe.Pointer
- func GetDeviceAdbConfig(index uint64) string
- func GetDeviceAdbControllerType(index uint64) maa.AdbControllerType
- func GetDeviceAdbPath(index uint64) string
- func GetDeviceAdbSerial(index uint64) string
- func GetDeviceCount() uint64
- func GetDeviceName(index uint64) string
- func GetForegroundWindow() unsafe.Pointer
- func GetWindow(index uint64) unsafe.Pointer
- func GetWindowClassName(hwnd unsafe.Pointer) (string, bool)
- func GetWindowWindowName(hwnd unsafe.Pointer) (string, bool)
- func InitOption(userPath, defaultJson string) bool
- func IsFindDeviceCompleted() bool
- func ListWindows() uint64
- func PostFindDevice() bool
- func PostFindDeviceWithAdb(adbPath string) bool
- func SearchWindow(className, windowName string) uint64
- func WaitForFindDeviceToComplete() uint64
- type AdbDevice
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FindWindow ¶
FindWindow finds a win32 window by class name and window name. Return the number of windows found that match the criteria. To get the corresponding window handle, use GetWindow.
This function finds the function by exact match. See also SearchWindow.
func GetCursorWindow ¶
GetCursorWindow returns the window handle of the window under the cursor. This uses the WindowFromPoint() system API.
func GetDesktopWindow ¶
GetDesktopWindow returns the desktop window handle. This uses the GetDesktopWindow() system API.
func GetDeviceAdbConfig ¶
GetDeviceAdbConfig returns the device ADB config by index.
func GetDeviceAdbControllerType ¶
func GetDeviceAdbControllerType(index uint64) maa.AdbControllerType
GetDeviceAdbControllerType returns the device ADB controller type by index.
func GetDeviceAdbPath ¶
GetDeviceAdbPath returns the device ADB path by index.
func GetDeviceAdbSerial ¶
GetDeviceAdbSerial returns the device ADB serial by index.
func GetDeviceCount ¶
func GetDeviceCount() uint64
GetDeviceCount returns the number of devices found.
func GetDeviceName ¶
GetDeviceName returns the device name by index.
func GetForegroundWindow ¶
GetForegroundWindow returns the foreground window handle. This uses the GetForegroundWindow() system API.
func GetWindowClassName ¶
GetWindowClassName returns the window class name by window handle.
func GetWindowWindowName ¶
GetWindowWindowName returns the window window name by window handle.
func InitOption ¶
InitOption inits the toolkit option config.
func IsFindDeviceCompleted ¶
func IsFindDeviceCompleted() bool
IsFindDeviceCompleted checks if the find device request is completed.
func ListWindows ¶
func ListWindows() uint64
ListWindows lists all windows. Return the number of windows found. To get the corresponding window handle, use GetWindow.
func PostFindDevice ¶
func PostFindDevice() bool
PostFindDevice posts a request to find all ADB devices.
func PostFindDeviceWithAdb ¶
PostFindDeviceWithAdb posts a request to find all ADB devices with a given ADB path.
func SearchWindow ¶
SearchWindow regex search a win32 window by class name and window name. Return the number of windows found that match the criteria. To get the corresponding window handle, use GetWindow.
func WaitForFindDeviceToComplete ¶
func WaitForFindDeviceToComplete() uint64
WaitForFindDeviceToComplete waits for the find device request to complete. Return the number of devices found.