DotNetBrowser  1.14
Public Member Functions | List of all members
DotNetBrowser.IInputSimulator Interface Reference

Provides an ability to forward messages from input devices. More...

Public Member Functions

void SimulateMouseButtonEvent (object button, MouseButtonState state, int clickCount, int x, int y)
 Fires mouse button event in the specified coordinates. More...
 
void SimulateMouseMoveEvent (int x, int y)
 Fires mouse move to the specified coordinates. More...
 
void SimulateMouseWheelEvent (int x, int y, int unitsToScroll, bool isHorizontalScroll)
 Fires mouse wheel rotation event in the specified coordinates and direction. More...
 

Detailed Description

Provides an ability to forward messages from input devices.

Member Function Documentation

void DotNetBrowser.IInputSimulator.SimulateMouseButtonEvent ( object  button,
MouseButtonState  state,
int  clickCount,
int  x,
int  y 
)

Fires mouse button event in the specified coordinates.

Parameters
buttonRepresents mouse button value - MouseButton enum for WPF and MouseButtons enum for Windows forms.
stateRepresents mouse button state.
clickCountClicks count for selected button.
xX local coordinate of click position.
yY local coordinate of click position.
void DotNetBrowser.IInputSimulator.SimulateMouseMoveEvent ( int  x,
int  y 
)

Fires mouse move to the specified coordinates.

Parameters
xX local coordinate of move position.
yY local coordinate of move position.
void DotNetBrowser.IInputSimulator.SimulateMouseWheelEvent ( int  x,
int  y,
int  unitsToScroll,
bool  isHorizontalScroll 
)

Fires mouse wheel rotation event in the specified coordinates and direction.

Parameters
xX local coordinate of mouse position.
yY local coordinate of mouse position.
unitsToScrollMouse wheel rotation units count.
isHorizontalScrollSpecifies the scroll direction.