IMouse Methods
Last updated
Last updated
Overload List
Executes a defined sequence of MOUSE_DOWN & MOUSE_UP events to simulate a mouse click. The mouse is moved to the found position and a MOUSE_DOWN event, followed by a wait time defined in MouseClickDelay, followed by a MOUSE_UP event is executed.
Syntax:
Executes a defined sequence of MOUSE_DOWN & MOUSE_UP events to simulate a mouse click. The mouse is moved to the specified target position and a MOUSE_DOWN event, followed by a wait time defined in MouseClickDelay, followed by a MOUSE_UP event is executed.
Syntax:
Overload List
Triggers a MOUSE_DOWN event on the subject under test.
Syntax:
Triggers a MOUSE_DOWN event on the subject under test.
Syntax:
Overload List
Moves the mouse to an absolute position on the subject under test
Syntax:
Moves the mouse to an absolute position on the subject under test
Syntax:
Moves the mouse cursor of screen (on the right side, in the middle of the screen). If Properties.MouseMoveOutOffset is set, moves the mouse by this offset instead.
Syntax:
Moves the mouse relative to the current position on the subject under test
Syntax:
Triggers a SCROLL mouse event on the subject under test. If target is set, the mouse first moves to the specified point on the SUT before doing the scrolling, otherwise scrolls at the current position.
Syntax:
Overload List
Triggers a MOUSE_UP event on the subject under test
Syntax:
Triggers a MOUSE_UP event on the subject under test
Syntax:
Triggers a MOUSE_UP event on the subject under test
Syntax:
Name
Description
Executes a defined sequence of MOUSE_DOWN & MOUSE_UP events to simulate a mouse click. The mouse is moved to the found position and a MOUSE_DOWN event, followed by a wait time defined in MouseClickDelay, followed by a MOUSE_UP event is executed.
Executes a defined sequence of MOUSE_DOWN & MOUSE_UP events to simulate a mouse click. The mouse is moved to the specified target position and a MOUSE_DOWN event, followed by a wait time defined in MouseClickDelay, followed by a MOUSE_UP event is executed.
Parameter
Description
result
Type: IEngineResult
IEngineResult used to position the mouse
[mouseButton]
Type: MouseButton
Mouse button to use for click. By default MouseButton.Left
[withSlowApproach]
Type: Boolean
If true, jumps from the current position to a position close to the result and then moves pixel by pixel to the result position before doing the click.
This simulates more closely how a human interacts with the mouse and is sometimes required to make sure the click is correctly registered by the target.
By default true
[positionOffset]
Parameter
Description
target
Type: Point
Position where to click with the mouse
[mouseButton]
Type: MouseButton
Mouse button to use for click. By default MouseButton.Left
[withSlowApproach]
Type: Boolean
If true, jumps from the current position to a position close to the result and then moves pixel by pixel to the result position before doing the click.
This simulates more closely how a human interacts with the mouse and is sometimes required to make sure the click is correctly registered by the target.
By default true
Name
Description
Triggers a MOUSE_DOWN event on the subject under test
Triggers a MOUSE_DOWN event on the subject under test
Parameter
Description
result
Type: IEngineResult
IEngineResult used to position the mouse
[mouseButton]
Type: MouseButton
Mouse button to press. By default MouseButton.Left
[positionOffset]
Parameter
Description
target
Type: Point
Position where press the mouse button
[mouseButton]
Type: MouseButton
Mouse button to press. By default MouseButton.Left
Name
Description
Moves the mouse to an absolute position on the subject under test
Moves the mouse to an absolute position on the subject under test
Parameter
Description
result
Type: IEngineResult
IEngineResult used to position the mouse
[withSlowApproach]
Type: Boolean
Jumps from the current position to a position close to result and then moves pixel by pixel to the result position. False by default.
[positionOffset]
Parameter
Description
target
Type: Point
Absolute position on the subject under test
[withSlowApproach]
Type: Boolean
Jumps from the current position to a position close to target and then moves pixel by pixel to the target position. False by default.
Parameter
Description
x
Type: Int32
Vertical movement in pixels
y
Type: Int32
Horizontal movement in pixels
[slowMove]
Type: Boolean
If true the mouse moves slowly by the indicated offsets, otherwise it jumps directly to the new position. True by default.
Parameter
Description
direction
Type: ScrollDirection
scroll direction
[increments]
Type: Int32
amount of scroll moves (defined by the target operating system). By default 1.
[target]
Name
Description
Triggers a MOUSE_UP event on the subject under test
Triggers a MOUSE_UP event on the subject under test
Triggers a MOUSE_UP event on the subject under test
Parameter
Description
result
Type: IEngineResult
IEngineResult used to position the mouse
[mouseButton]
Type: MouseButton
Mouse button to use for click. By default MouseButton.Left
[positionOffset]
Parameter
Description
target
Type: Point
Position where to release the mouse
[mouseButton]
Type: MouseButton
Mouse button to release. By default MouseButton.Left
Parameter
Description
[mouseButton]
Type: MouseButton
Mouse button to release. By default MouseButton.Left