예제 #1
0
 // 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);
 }
예제 #2
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));
 }
예제 #3
0
 // Send a character to a control
 public static bool SendChar(int hWnd, char c)
 {
     return(WinApi.PostMessage(hWnd, WinApi.WM_CHAR, c, 0));
 }