// Window management methods // Example: Automate.WinClose(hWnd); public static int WinClose(int hWnd) { return(WinApi.PostMessage(hWnd, WinApi.WM_CLOSE, 0, 0) == true ? 1 : 0); }
// Control management methods // ControlClick: Sends a mouse click command to a given control. // TODO Add overload for className/Instance public static bool ControlClick(int hWnd) { return(WinApi.PostMessage(hWnd, WinApi.BM_CLICK, 0, 0)); }
// Send a character to a control public static bool SendChar(int hWnd, char c) { return(WinApi.PostMessage(hWnd, WinApi.WM_CHAR, c, 0)); }