public static List <WindowHandle> GetWindows() { List <WindowHandle> list = new List <WindowHandle>(); foreach (IntPtr ptr in HwndInterface.EnumHwnds()) { list.Add(new WindowHandle(ptr)); } return(list); }
public static WindowHandle GetActiveWindow() { return(new WindowHandle(HwndInterface.GetActiveWindow())); }
public static WindowHandle GetWindowByTitle(string title) { return(new WindowHandle(HwndInterface.GetHwndFromTitle(title))); }
public WindowHandle GetParent() { return(new WindowHandle(HwndInterface.GetHwndParent(Hwnd))); }
public string GetMessageString(WM msg, uint param) { return(HwndInterface.GetMessageString(Hwnd, msg, param)); }
public int GetMessageInt(WM msg) { return(HwndInterface.GetMessageInt(Hwnd, msg)); }
public List <WindowHandle> GetChildren() { return(HwndInterface.EnumChildren(Hwnd) .Select(ptr => new WindowHandle(ptr)) .ToList()); }
public WindowHandle GetChild(string cls, string title) { return(new WindowHandle(HwndInterface.GetHwndChild(Hwnd, cls, title))); }
// <summary> // Maximize this window // </summary> public bool Maximize() { return(HwndInterface.MaximizeWindow(Hwnd)); }
// <summary> // Bring this window to the foreground // </summary> public bool Activate() { return(HwndInterface.ActivateWindow(Hwnd)); }
public void Click() { HwndInterface.ClickHwnd(Hwnd); }
public void SendMessage(WM msg, uint param1, uint param2) { HwndInterface.SendMessage(Hwnd, msg, param1, param2); }
public static WindowHandle GetWindowByClassName(string className) { return(new WindowHandle(HwndInterface.GetHwndFromClass(className))); }