C# Class OCRSample.Wim32API

显示文件 Open project: JhetoX/SkypeOCR Class Usage Examples

Public Methods

Method Description
SendText ( string text ) : void
mouseClick ( long dx, long dy, bool isLeft ) : void

Private Methods

Method Description
FindWindow ( string lpClassName, string lpWindowName ) : IntPtr
FindWindowEx ( IntPtr hwndParent, IntPtr hwndChildAfter, string lpszClass, string lpszWindow ) : IntPtr
GetDC ( IntPtr WindowHandle ) : IntPtr
GetWindow ( IntPtr hwnd, int wFlag ) : IntPtr
GetWindowRect ( IntPtr WindowHandle, System.Drawing.Rect &rect ) : IntPtr
PrintWindow ( IntPtr hwnd, IntPtr hDC, uint nFlags ) : bool
ReleaseDC ( IntPtr WindowHandle, IntPtr DC ) : void
SendMessage ( IntPtr hWnd, int uMsg, int wParam, int lParam ) : int
SetCursorPos ( int X, int Y ) : bool
SetFocus ( IntPtr hwnd ) : IntPtr
SetForegroundWindow ( IntPtr hWnd ) : bool
mouse_event ( long dwFlags, long dx, long dy, long cButtons, long dwExtraInfo ) : void

Method Details

SendText() public static method

public static SendText ( string text ) : void
text string
return void

mouseClick() public static method

public static mouseClick ( long dx, long dy, bool isLeft ) : void
dx long
dy long
isLeft bool
return void