Mouse events class.
Inheritance Hierarchy
ArtOfTest.WebAii.Win32Mouse
Namespace: ArtOfTest.WebAii.Win32
Assembly: ArtOfTest.WebAii (in ArtOfTest.WebAii.dll) Version: 2018.1.116.0 (2018.1.116.0)
Syntax
The Mouse type exposes the following members.
Properties
Name | Description | |
---|---|---|
MouseMoveIntervalTime |
Gets/Sets the mouse interval time between mouse move intervals.
The default is set at 15msec. Typically you don't need to change this.
If you want to configure the speed of the mouse move, use the Settings.SimulatedMouseMoveSpeed.
|
Methods
Name | Description | |
---|---|---|
CalculateOffset |
Calculates the offset from the rectangles given a reference.
| |
Click(MouseClickType, Point) |
Simulate a mouse event (Target as a point object)
| |
Click(MouseClickType, Rectangle) |
Simulate a mouse event (Target a rectangle). Will click absolute center of target rectangle.
| |
Click(MouseClickType, Int32, Int32) |
Simulate a mouse event.
| |
Click(MouseClickType, Rectangle, Point, OffsetReference) |
Simulate a mouse event (Target as a rectangle with offset)
| |
DetectHotSpot |
Given a rectangle and optionally a cursor, this
function will detect the cursor change
| |
DragDrop(Point, Point) |
Simulate a mouse drag and drop.
| |
DragDrop(Rectangle, Rectangle) |
Simulate a mouse drag and drop. (Uses center point of each rectangle)
| |
DragDrop(Point, Point, Int32, Int32) |
Simulate a mouse drag and drop.
| |
DragDrop(Rectangle, Rectangle, Int32, Int32) |
Simulate a mouse drag and drop. (Uses center point of each rectangle)
| |
DragDrop(Int32, Int32, Int32, Int32) |
Simulates a mouse drag and drop.
| |
DragDrop(Rectangle, Point, OffsetReference, Rectangle, Point, OffsetReference) |
Simulate a mouse drag and drop.
| |
DragDrop(Int32, Int32, Int32, Int32, Int32, Int32) |
Simulates a mouse drag and drop.
| |
DragDrop(Rectangle, Point, OffsetReference, Rectangle, Point, OffsetReference, Int32, Int32) |
Simulate a mouse drag and drop.
| |
DragDrop(Rectangle, Int32, Int32, OffsetReference, Rectangle, Int32, Int32, OffsetReference) |
Simulate a mouse drag and drop.
| |
DragDrop(Rectangle, Int32, Int32, OffsetReference, Rectangle, Int32, Int32, OffsetReference, Int32, Int32) |
Simulate a mouse drag and drop.
| |
Equals | Determines whether the specified object is equal to the current object. (Inherited from Object.) | |
Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) | |
GetCursorHandle |
Get the current cursor handle
| |
GetDistance |
Gets the number of mouse move intervals depending on the current set speed and interval time.
Any negative coordinates will be reset to zero automatically.
| |
GetHashCode | Serves as the default hash function. (Inherited from Object.) | |
GetRelativeNumOfMouseMoveIntervals(Int32) |
Gets the number of mouse move intervals depending on the current set speed and interval time.
DistanceInPixels(pixels) = NumOfIntervals(const) * IntervalTime(msec) * Speed(pixels/msec)
| |
GetRelativeNumOfMouseMoveIntervals(Point, Point) |
Gets the number of mouse move intervals depending on the current set speed and interval time.
| |
GetRelativeNumOfMouseMoveIntervals(Rectangle, Rectangle) |
Gets the number of mouse move intervals depending on the current set speed and interval time.
Uses the absolute centers of passed in rectangles.
| |
GetRelativeNumOfMouseMoveIntervals(Rectangle, Point, OffsetReference, Rectangle, Point, OffsetReference) |
Returns the relative number of mouse move intervals given a start/end locations.
| |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
HoverOver(Point) |
HoverOver (Target a point).
| |
HoverOver(Rectangle) |
Hover over (Target the center of the target rectangle).
| |
HoverOver(Int32, Int32) |
Simulates a mouse hover over. Simply moves the mouse pointer over the X,Y passed in.
Can also be used to move the mouse to a certain location.
| |
HoverOver(Rectangle, Point, OffsetReference) |
Hover over (Target is a rectangle with an offset).
| |
MatchCursor |
Tests whether or not the current mouse handle matches a specified handle.
Can be used to check if the current mouse cursor is a particular value.
| |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
Move(Point, Point) |
Move the mouse from the start to the end location
| |
Move(Rectangle, Rectangle) |
Move the mouse from the start to the end location
| |
Move(Point, Point, Int32, Int32) |
Move the mouse from the start to the end location
| |
Move(Rectangle, Rectangle, Int32, Int32) |
Move the mouse from the start to the end location
| |
Move(Int32, Int32, Int32, Int32) |
Move the mouse from the start to the end location
| |
Move(Rectangle, Point, OffsetReference, Rectangle, Point, OffsetReference) |
Move the mouse from the start to the end location
| |
Move(Int32, Int32, Int32, Int32, Int32, Int32) |
Move the mouse from the start to the end location
| |
Move(Rectangle, Point, OffsetReference, Rectangle, Point, OffsetReference, Int32, Int32) |
Move the mouse from the start to the end location
| |
Move(Rectangle, Int32, Int32, OffsetReference, Rectangle, Int32, Int32, OffsetReference) |
Move the mouse from the start to the end location
| |
Move(Rectangle, Int32, Int32, OffsetReference, Rectangle, Int32, Int32, OffsetReference, Int32, Int32) |
Move the mouse from the start to the end location
| |
ToString | Returns a string that represents the current object. (Inherited from Object.) | |
TurnWheel |
Move the mouse wheel by a certain delta
| |
ValidateNonNegativePoint |
Validate that the specified point coordinates is non-negative.
If it is negative, it will be reset to zero.
|
See Also