C# Class GR.Win32.Window

Afficher le fichier Open project: alexhanh/Botting-Library Class Usage Examples

Méthodes publiques

Méthode Description
AttachToCorner ( ScreenCorner corner ) : void

This method tries to set the position of the window so that it's fully visible but one of it's corners is attached to given parameter.

Capture ( ) : Bitmap
Capture ( Rectangle rect ) : Bitmap
CaptureScreen ( IntPtr hwnd, Rectangle rect ) : Bitmap
CaptureScreenNew ( IntPtr hwnd ) : Bitmap
ChildWindowFromPoint ( Point point, string class_name, Window begin_with ) : Window
Equals ( object obj ) : bool
FindChildWindow ( string text_begin ) : Window
FindChildWindow ( string class_name, string text_begin, Window begin_with ) : Window

Pass empty string to class_name to match all. Pass empty string to text_begin to match all. Pass null to begin_with to skip.

FindWindow ( string title_begin ) : Window
FindWindows ( string title_begin ) : GR.Win32.Window[]
Focus ( ) : void
ForegroundWindow ( ) : Window
GetHashCode ( ) : int
GetOpenWindowFromProcessID ( int process_id, string title_begins, string &matched_title ) : Window
GetOpenWindowsFromPID ( int processID ) : string>.IDictionary
GetOpenWindowsFromProcessID ( int process_id, string title_begins ) : List
GetOpenWindowsFromProcessID ( int process_id, string title_begins ) : GR.Win32.Window[]
GetText ( ) : string
GetWindowRect ( IntPtr hwnd ) : Rectangle
GetWindowText ( IntPtr hwnd ) : string
Hide ( ) : void
IsMinimized ( ) : bool
MakeVisible ( ) : void
Minimize ( ) : void
Resize ( Size size ) : void
Restore ( ) : void
SetForeground ( ) : void
SetPosition ( Point position ) : void
Window ( IntPtr window_handle ) : System

Private Methods

Méthode Description
EnumCallback ( IntPtr hwnd, int lParam ) : bool

Method Details

AttachToCorner() public méthode

This method tries to set the position of the window so that it's fully visible but one of it's corners is attached to given parameter.
public AttachToCorner ( ScreenCorner corner ) : void
corner ScreenCorner
Résultat void

Capture() public méthode

public Capture ( ) : Bitmap
Résultat System.Drawing.Bitmap

Capture() public méthode

public Capture ( Rectangle rect ) : Bitmap
rect System.Drawing.Rectangle
Résultat System.Drawing.Bitmap

CaptureScreen() public static méthode

public static CaptureScreen ( IntPtr hwnd, Rectangle rect ) : Bitmap
hwnd System.IntPtr
rect System.Drawing.Rectangle
Résultat System.Drawing.Bitmap

CaptureScreenNew() public static méthode

public static CaptureScreenNew ( IntPtr hwnd ) : Bitmap
hwnd System.IntPtr
Résultat System.Drawing.Bitmap

ChildWindowFromPoint() public méthode

public ChildWindowFromPoint ( Point point, string class_name, Window begin_with ) : Window
point Point
class_name string
begin_with Window
Résultat Window

Equals() public méthode

public Equals ( object obj ) : bool
obj object
Résultat bool

FindChildWindow() public méthode

public FindChildWindow ( string text_begin ) : Window
text_begin string
Résultat Window

FindChildWindow() public méthode

Pass empty string to class_name to match all. Pass empty string to text_begin to match all. Pass null to begin_with to skip.
public FindChildWindow ( string class_name, string text_begin, Window begin_with ) : Window
class_name string
text_begin string
begin_with Window
Résultat Window

FindWindow() public static méthode

public static FindWindow ( string title_begin ) : Window
title_begin string
Résultat Window

FindWindows() public static méthode

public static FindWindows ( string title_begin ) : GR.Win32.Window[]
title_begin string
Résultat GR.Win32.Window[]

Focus() public méthode

public Focus ( ) : void
Résultat void

ForegroundWindow() public static méthode

public static ForegroundWindow ( ) : Window
Résultat Window

GetHashCode() public méthode

public GetHashCode ( ) : int
Résultat int

GetOpenWindowFromProcessID() public static méthode

public static GetOpenWindowFromProcessID ( int process_id, string title_begins, string &matched_title ) : Window
process_id int
title_begins string
matched_title string
Résultat Window

GetOpenWindowsFromPID() public static méthode

public static GetOpenWindowsFromPID ( int processID ) : string>.IDictionary
processID int
Résultat string>.IDictionary

GetOpenWindowsFromProcessID() public static méthode

public static GetOpenWindowsFromProcessID ( int process_id, string title_begins ) : List
process_id int
title_begins string
Résultat List

GetOpenWindowsFromProcessID() public static méthode

public static GetOpenWindowsFromProcessID ( int process_id, string title_begins ) : GR.Win32.Window[]
process_id int
title_begins string
Résultat GR.Win32.Window[]

GetText() public méthode

public GetText ( ) : string
Résultat string

GetWindowRect() public static méthode

public static GetWindowRect ( IntPtr hwnd ) : Rectangle
hwnd System.IntPtr
Résultat System.Drawing.Rectangle

GetWindowText() public static méthode

public static GetWindowText ( IntPtr hwnd ) : string
hwnd System.IntPtr
Résultat string

Hide() public méthode

public Hide ( ) : void
Résultat void

IsMinimized() public méthode

public IsMinimized ( ) : bool
Résultat bool

MakeVisible() public méthode

public MakeVisible ( ) : void
Résultat void

Minimize() public méthode

public Minimize ( ) : void
Résultat void

Resize() public méthode

public Resize ( Size size ) : void
size System.Drawing.Size
Résultat void

Restore() public méthode

public Restore ( ) : void
Résultat void

SetForeground() public méthode

public SetForeground ( ) : void
Résultat void

SetPosition() public méthode

public SetPosition ( Point position ) : void
position Point
Résultat void

Window() public méthode

public Window ( IntPtr window_handle ) : System
window_handle System.IntPtr
Résultat System