Class Mouse
Inheritance
Inherited Members
Namespace: ArtOfTest.WebAii.Win32
Assembly: ArtOfTest.WebAii.dll
Syntax
public class Mouse
Fields
_desktop
CLICK_DELAY
Declaration
protected const int CLICK_DELAY = 50
Field Value
System.Int32
|
WHEEL_DELTA
Declaration
protected const int WHEEL_DELTA = 120
Field Value
System.Int32
|
Properties
MouseMoveIntervalTime
Declaration
public int MouseMoveIntervalTime { get; set; }
Property Value
System.Int32
|
Methods
CalculateOffset(Rectangle, Point, OffsetReference)
Declaration
public static Point CalculateOffset(Rectangle rectangle, Point offset, OffsetReference reference)
Parameters
System.Drawing.Rectangle
rectangle
|
System.Drawing.Point
offset
|
OffsetReference
reference
|
Returns
System.Drawing.Point
|
Click(MouseClickType, Point)
Declaration
public void Click(MouseClickType clickType, Point pointToClick)
Parameters
MouseClickType
clickType
|
System.Drawing.Point
pointToClick
|
Click(MouseClickType, Rectangle)
Declaration
public void Click(MouseClickType clickType, Rectangle target)
Parameters
MouseClickType
clickType
|
System.Drawing.Rectangle
target
|
Click(MouseClickType, Rectangle, Point, OffsetReference)
Declaration
public void Click(MouseClickType clickType, Rectangle target, Point offset, OffsetReference reference)
Parameters
MouseClickType
clickType
|
System.Drawing.Rectangle
target
|
System.Drawing.Point
offset
|
OffsetReference
reference
|
Click(MouseClickType, Rectangle, Point, OffsetReference, ActionPointUnitType)
Declaration
public void Click(MouseClickType clickType, Rectangle target, Point offset, OffsetReference reference, ActionPointUnitType unitType)
Parameters
MouseClickType
clickType
|
System.Drawing.Rectangle
target
|
System.Drawing.Point
offset
|
OffsetReference
reference
|
ActionPointUnitType
unitType
|
Click(MouseClickType, Int32, Int32)
Declaration
public void Click(MouseClickType clickType, int x, int y)
Parameters
MouseClickType
clickType
|
System.Int32
x
|
System.Int32
y
|
Click(MouseClickType, Int32, Int32, Int32)
Declaration
protected virtual void Click(MouseClickType clickType, int x, int y, int wheelDelta)
Parameters
MouseClickType
clickType
|
System.Int32
x
|
System.Int32
y
|
System.Int32
wheelDelta
|
DetectHotSpot(Rectangle, Cursor, Int32)
Declaration
public virtual Point DetectHotSpot(Rectangle rectangle, Cursor hotSpotCursor, int radius)
Parameters
System.Drawing.Rectangle
rectangle
|
System.Windows.Forms.Cursor
hotSpotCursor
|
System.Int32
radius
|
Returns
System.Drawing.Point
|
DragDrop(Point, Point)
Declaration
public void DragDrop(Point start, Point end)
Parameters
System.Drawing.Point
start
|
System.Drawing.Point
end
|
DragDrop(Point, Point, Int32, Int32)
Declaration
public void DragDrop(Point start, Point end, int intervals, int intervalDelay)
Parameters
System.Drawing.Point
start
|
System.Drawing.Point
end
|
System.Int32
intervals
|
System.Int32
intervalDelay
|
DragDrop(Rectangle, Point, OffsetReference, Rectangle, Point, OffsetReference)
Declaration
public void DragDrop(Rectangle startTarget, Point startOffset, OffsetReference startReference, Rectangle endTarget, Point endOffset, OffsetReference endReference)
Parameters
System.Drawing.Rectangle
startTarget
|
System.Drawing.Point
startOffset
|
OffsetReference
startReference
|
System.Drawing.Rectangle
endTarget
|
System.Drawing.Point
endOffset
|
OffsetReference
endReference
|
DragDrop(Rectangle, Point, OffsetReference, Rectangle, Point, OffsetReference, Int32, Int32)
Declaration
public void DragDrop(Rectangle startTarget, Point startOffset, OffsetReference startReference, Rectangle endTarget, Point endOffset, OffsetReference endReference, int intervals, int intervalDelay)
Parameters
System.Drawing.Rectangle
startTarget
|
System.Drawing.Point
startOffset
|
OffsetReference
startReference
|
System.Drawing.Rectangle
endTarget
|
System.Drawing.Point
endOffset
|
OffsetReference
endReference
|
System.Int32
intervals
|
System.Int32
intervalDelay
|
DragDrop(Rectangle, Rectangle)
Declaration
public void DragDrop(Rectangle start, Rectangle end)
Parameters
System.Drawing.Rectangle
start
|
System.Drawing.Rectangle
end
|
DragDrop(Rectangle, Rectangle, Int32, Int32)
Declaration
public void DragDrop(Rectangle startTarget, Rectangle endTarget, int intervals, int intervalDelay)
Parameters
System.Drawing.Rectangle
startTarget
|
System.Drawing.Rectangle
endTarget
|
System.Int32
intervals
|
System.Int32
intervalDelay
|
DragDrop(Rectangle, Int32, Int32, OffsetReference, Rectangle, Int32, Int32, OffsetReference)
Declaration
public void DragDrop(Rectangle startTarget, int startOffsetX, int startOffsetY, OffsetReference startReference, Rectangle endTarget, int endOffsetX, int endOffsetY, OffsetReference endReference)
Parameters
System.Drawing.Rectangle
startTarget
|
System.Int32
startOffsetX
|
System.Int32
startOffsetY
|
OffsetReference
startReference
|
System.Drawing.Rectangle
endTarget
|
System.Int32
endOffsetX
|
System.Int32
endOffsetY
|
OffsetReference
endReference
|
DragDrop(Rectangle, Int32, Int32, OffsetReference, Rectangle, Int32, Int32, OffsetReference, Int32, Int32)
Declaration
public void DragDrop(Rectangle startTarget, int startOffsetX, int startOffsetY, OffsetReference startReference, Rectangle endTarget, int endOffsetX, int endOffsetY, OffsetReference endReference, int intervals, int intervalDelay)
Parameters
System.Drawing.Rectangle
startTarget
|
System.Int32
startOffsetX
|
System.Int32
startOffsetY
|
OffsetReference
startReference
|
System.Drawing.Rectangle
endTarget
|
System.Int32
endOffsetX
|
System.Int32
endOffsetY
|
OffsetReference
endReference
|
System.Int32
intervals
|
System.Int32
intervalDelay
|
DragDrop(Int32, Int32, Int32, Int32)
Declaration
public void DragDrop(int startX, int startY, int endX, int endY)
Parameters
System.Int32
startX
|
System.Int32
startY
|
System.Int32
endX
|
System.Int32
endY
|
DragDrop(Int32, Int32, Int32, Int32, Int32, Int32)
Declaration
public void DragDrop(int startX, int startY, int endX, int endY, int intervals, int intervalDelay)
Parameters
System.Int32
startX
|
System.Int32
startY
|
System.Int32
endX
|
System.Int32
endY
|
System.Int32
intervals
|
System.Int32
intervalDelay
|
GetCursorHandle()
Declaration
public virtual IntPtr GetCursorHandle()
Returns
System.IntPtr
|
GetDistance(Point, Point)
Declaration
protected float GetDistance(Point start, Point end)
Parameters
System.Drawing.Point
start
|
System.Drawing.Point
end
|
Returns
System.Single
|
GetRelativeNumOfMouseMoveIntervals(Point, Point)
Declaration
protected int GetRelativeNumOfMouseMoveIntervals(Point start, Point end)
Parameters
System.Drawing.Point
start
|
System.Drawing.Point
end
|
Returns
System.Int32
|
GetRelativeNumOfMouseMoveIntervals(Rectangle, Point, OffsetReference, Rectangle, Point, OffsetReference)
Declaration
protected int GetRelativeNumOfMouseMoveIntervals(Rectangle startTarget, Point startOffset, OffsetReference startReference, Rectangle endTarget, Point endOffset, OffsetReference endReference)
Parameters
System.Drawing.Rectangle
startTarget
|
System.Drawing.Point
startOffset
|
OffsetReference
startReference
|
System.Drawing.Rectangle
endTarget
|
System.Drawing.Point
endOffset
|
OffsetReference
endReference
|
Returns
System.Int32
|
GetRelativeNumOfMouseMoveIntervals(Rectangle, Rectangle)
Declaration
protected int GetRelativeNumOfMouseMoveIntervals(Rectangle start, Rectangle end)
Parameters
System.Drawing.Rectangle
start
|
System.Drawing.Rectangle
end
|
Returns
System.Int32
|
GetRelativeNumOfMouseMoveIntervals(Int32)
Declaration
protected int GetRelativeNumOfMouseMoveIntervals(int distanceInPixels)
Parameters
System.Int32
distanceInPixels
|
Returns
System.Int32
|
HoverOver(Point)
Declaration
public void HoverOver(Point pointToHoverOver)
Parameters
System.Drawing.Point
pointToHoverOver
|
HoverOver(Rectangle)
Declaration
public void HoverOver(Rectangle target)
Parameters
System.Drawing.Rectangle
target
|
HoverOver(Rectangle, Point, OffsetReference)
Declaration
public void HoverOver(Rectangle target, Point offset, OffsetReference reference)
Parameters
System.Drawing.Rectangle
target
|
System.Drawing.Point
offset
|
OffsetReference
reference
|
HoverOver(Rectangle, Point, OffsetReference, ActionPointUnitType)
Declaration
public void HoverOver(Rectangle target, Point offset, OffsetReference reference, ActionPointUnitType unitType)
Parameters
System.Drawing.Rectangle
target
|
System.Drawing.Point
offset
|
OffsetReference
reference
|
ActionPointUnitType
unitType
|
HoverOver(Int32, Int32)
Declaration
public void HoverOver(int x, int y)
Parameters
System.Int32
x
|
System.Int32
y
|
MatchCursor(IntPtr)
Declaration
public bool MatchCursor(IntPtr handle)
Parameters
System.IntPtr
handle
|
Returns
System.Boolean
|
Move(Point, Point)
Declaration
public void Move(Point start, Point end)
Parameters
System.Drawing.Point
start
|
System.Drawing.Point
end
|
Move(Point, Point, Int32, Int32)
Declaration
public void Move(Point start, Point end, int intervals, int intervalDelay)
Parameters
System.Drawing.Point
start
|
System.Drawing.Point
end
|
System.Int32
intervals
|
System.Int32
intervalDelay
|
Move(Rectangle, Point, OffsetReference, Rectangle, Point, OffsetReference)
Declaration
public void Move(Rectangle startTarget, Point startOffset, OffsetReference startReference, Rectangle endTarget, Point endOffset, OffsetReference endReference)
Parameters
System.Drawing.Rectangle
startTarget
|
System.Drawing.Point
startOffset
|
OffsetReference
startReference
|
System.Drawing.Rectangle
endTarget
|
System.Drawing.Point
endOffset
|
OffsetReference
endReference
|
Move(Rectangle, Point, OffsetReference, Rectangle, Point, OffsetReference, Int32, Int32)
Declaration
public void Move(Rectangle startTarget, Point startOffset, OffsetReference startReference, Rectangle endTarget, Point endOffset, OffsetReference endReference, int intervals, int intervalDelay)
Parameters
System.Drawing.Rectangle
startTarget
|
System.Drawing.Point
startOffset
|
OffsetReference
startReference
|
System.Drawing.Rectangle
endTarget
|
System.Drawing.Point
endOffset
|
OffsetReference
endReference
|
System.Int32
intervals
|
System.Int32
intervalDelay
|
Move(Rectangle, Rectangle)
Declaration
public void Move(Rectangle start, Rectangle end)
Parameters
System.Drawing.Rectangle
start
|
System.Drawing.Rectangle
end
|
Move(Rectangle, Rectangle, Int32, Int32)
Declaration
public void Move(Rectangle start, Rectangle end, int intervals, int intervalDelay)
Parameters
System.Drawing.Rectangle
start
|
System.Drawing.Rectangle
end
|
System.Int32
intervals
|
System.Int32
intervalDelay
|
Move(Rectangle, Int32, Int32, OffsetReference, Rectangle, Int32, Int32, OffsetReference)
Declaration
public void Move(Rectangle startTarget, int startOffsetX, int startOffsetY, OffsetReference startReference, Rectangle endTarget, int endOffsetX, int endOffsetY, OffsetReference endReference)
Parameters
System.Drawing.Rectangle
startTarget
|
System.Int32
startOffsetX
|
System.Int32
startOffsetY
|
OffsetReference
startReference
|
System.Drawing.Rectangle
endTarget
|
System.Int32
endOffsetX
|
System.Int32
endOffsetY
|
OffsetReference
endReference
|
Move(Rectangle, Int32, Int32, OffsetReference, Rectangle, Int32, Int32, OffsetReference, Int32, Int32)
Declaration
public void Move(Rectangle startTarget, int startOffsetX, int startOffsetY, OffsetReference startReference, Rectangle endTarget, int endOffsetX, int endOffsetY, OffsetReference endReference, int intervals, int intervalDelay)
Parameters
System.Drawing.Rectangle
startTarget
|
System.Int32
startOffsetX
|
System.Int32
startOffsetY
|
OffsetReference
startReference
|
System.Drawing.Rectangle
endTarget
|
System.Int32
endOffsetX
|
System.Int32
endOffsetY
|
OffsetReference
endReference
|
System.Int32
intervals
|
System.Int32
intervalDelay
|
Move(Int32, Int32, Int32, Int32)
Declaration
public void Move(int startX, int startY, int endX, int endY)
Parameters
System.Int32
startX
|
System.Int32
startY
|
System.Int32
endX
|
System.Int32
endY
|
Move(Int32, Int32, Int32, Int32, Int32, Int32)
Declaration
public void Move(int startX, int startY, int endX, int endY, int intervals, int intervalDelay)
Parameters
System.Int32
startX
|
System.Int32
startY
|
System.Int32
endX
|
System.Int32
endY
|
System.Int32
intervals
|
System.Int32
intervalDelay
|
TurnWheel(Int32, MouseWheelTurnDirection)
Declaration
public void TurnWheel(int delta, MouseWheelTurnDirection direction)
Parameters
System.Int32
delta
|
MouseWheelTurnDirection
direction
|