C# Class AirTabInputServer.Win32InputClient

Inheritance: InputClient
显示文件 Open project: Aiur/Airtab Class Usage Examples

Public Methods

Method Description
GetScreenSize ( int &width, int &height ) : void
KeyDown ( byte keycode ) : void
KeyUp ( byte keycode ) : void
MouseClick ( MouseButton button ) : void
MouseDown ( MouseButton button ) : void
MouseMove ( int x, int y ) : void
MouseMoveRelative ( int xDiff, int yDiff ) : void
MouseScroll ( int scrollDelta, bool isHorizontal ) : void
MouseUp ( MouseButton button ) : void
ResetScreenSaver ( ) : void
Screenshot ( string dir, int width, int height ) : string

Private Methods

Method Description
GetCursorPos ( MousePoint &lpMousePoint ) : bool
GetCursorPosition ( ) : MousePoint
GetSystemMetrics ( SystemMetric smIndex ) : int
SetCursorPos ( int x, int y ) : int
SetThreadExecutionState ( [ esFlags ) : uint
keybd_event ( byte bVk, byte bScan, uint dwFlags, int dwExtraInfo ) : void
mouse_event ( int dwFlags, int dx, int dy, int dwData, int dwExtraInfo ) : void

Method Details

GetScreenSize() public method

public GetScreenSize ( int &width, int &height ) : void
width int
height int
return void

KeyDown() public method

public KeyDown ( byte keycode ) : void
keycode byte
return void

KeyUp() public method

public KeyUp ( byte keycode ) : void
keycode byte
return void

MouseClick() public method

public MouseClick ( MouseButton button ) : void
button MouseButton
return void

MouseDown() public method

public MouseDown ( MouseButton button ) : void
button MouseButton
return void

MouseMove() public method

public MouseMove ( int x, int y ) : void
x int
y int
return void

MouseMoveRelative() public method

public MouseMoveRelative ( int xDiff, int yDiff ) : void
xDiff int
yDiff int
return void

MouseScroll() public method

public MouseScroll ( int scrollDelta, bool isHorizontal ) : void
scrollDelta int
isHorizontal bool
return void

MouseUp() public method

public MouseUp ( MouseButton button ) : void
button MouseButton
return void

ResetScreenSaver() public method

public ResetScreenSaver ( ) : void
return void

Screenshot() public method

public Screenshot ( string dir, int width, int height ) : string
dir string
width int
height int
return string