C# Class LoveBoot.WindowFinder

Exibir arquivo Open project: AlbinoDrought/LoveBoot Class Usage Examples

Public Methods

Method Description
GetClientWindowLocation ( System.Drawing.Rect r = newRect() ) : System.Drawing.Rect
GetEstimatedTitlebarLocation ( ) : System.Drawing.Rect
GetScreenshot ( bool crop = false, Rectangle cropRectangle = newRectangle() ) : Bitmap
GetWindowLocation ( System.Drawing.Rect r = newRect() ) : System.Drawing.Rect
IsWindowActive ( ) : bool
SendKeystroke ( ushort k, int sleep ) : void
SetProcess ( string _processName ) : bool

Private Methods

Method Description
FindWindow ( string strClassName, string strWindowName ) : IntPtr
GetClientRect ( IntPtr hWnd, System.Drawing.Rect &lpRect ) : bool
GetForegroundWindow ( ) : IntPtr
GetWindowRect ( IntPtr hwnd, System.Drawing.Rect &rectangle ) : bool
PostMessage ( IntPtr hWnd, uint Msg, IntPtr wParam, IntPtr lParam ) : IntPtr
PrintWindow ( IntPtr hWnd, IntPtr hdcBlt, int nFlags ) : bool
SendMessage ( IntPtr hWnd, uint Msg, IntPtr wParam, IntPtr lParam ) : IntPtr
getProcess ( string _processName ) : Process

Method Details

GetClientWindowLocation() public method

public GetClientWindowLocation ( System.Drawing.Rect r = newRect() ) : System.Drawing.Rect
r System.Drawing.Rect
return System.Drawing.Rect

GetEstimatedTitlebarLocation() public method

public GetEstimatedTitlebarLocation ( ) : System.Drawing.Rect
return System.Drawing.Rect

GetScreenshot() public method

public GetScreenshot ( bool crop = false, Rectangle cropRectangle = newRectangle() ) : Bitmap
crop bool
cropRectangle System.Drawing.Rectangle
return System.Drawing.Bitmap

GetWindowLocation() public method

public GetWindowLocation ( System.Drawing.Rect r = newRect() ) : System.Drawing.Rect
r System.Drawing.Rect
return System.Drawing.Rect

IsWindowActive() public method

public IsWindowActive ( ) : bool
return bool

SendKeystroke() public method

public SendKeystroke ( ushort k, int sleep ) : void
k ushort
sleep int
return void

SetProcess() public method

public SetProcess ( string _processName ) : bool
_processName string
return bool