Exemplo n.º 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));
 }
Exemplo n.º 2
0
 public static int WinExists(int hWnd)
 {
     return(WinApi.IsWindow(hWnd) != false ? 1 : 0);
 }
Exemplo n.º 3
0
 // Set focus to a window
 public static int SetFocus(int hWnd)
 {
     return(WinApi.SetFocus(hWnd));
 }
Exemplo n.º 4
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);
 }
Exemplo n.º 5
0
 // Send a character to a control
 public static bool SendChar(int hWnd, char c)
 {
     return(WinApi.PostMessage(hWnd, WinApi.WM_CHAR, c, 0));
 }