Method mouse.rightDown(+ 2 overloads)
Overload
Right button down (press and don't release) at position x y relative to window w.
public static MRelease rightDown(wnd w, Coord x = default, Coord y = default, bool nonClient = false)
Parameters
w (wnd)
Window or control. |
x (Coord)
X coordinate relative to the client area of w. Default - center. Examples: |
y (Coord)
Y coordinate relative to the client area of w. Default - center. |
nonClient (bool)
The specified position is relative to the window rectangle, not to its client area. |
Returns
Exceptions
AuWndException
|
ArgumentOutOfRangeException
The position is not in screen. No exception if option Relaxed is |
AuException
Failed to move the cursor to that position. Some reasons:
|
InputDesktopException |
Remarks
To move the mouse cursor, calls mouse.move.
If after moving the cursor it is not in the window (or a window of its thread), activates the window (or its top-level parent window). Throws exception if then x y is still not in the window. Skips all this when just releasing button or if option Relaxed is true
. If w is a control, x y can be somewhere else in its top-level parent window.
Uses opt.mouse: OMouse.MoveSpeed, OMouse.MoveSleepFinally (between moving and clicking), OMouse.ClickSpeed, OMouse.ClickSleepFinally, OMouse.Relaxed.
Overload(next)
Right button down (press and don't release) at position x y.
public static MRelease rightDown(Coord x, Coord y)
Parameters
x (Coord)
X coordinate in the screen. Examples: |
y (Coord)
Y coordinate in the screen. |
Returns
Exceptions
ArgumentOutOfRangeException
The position is not in screen. No exception if option Relaxed is |
AuException
Failed to move the cursor to that position. Some reasons:
|
InputDesktopException |
Remarks
Uses opt.mouse: OMouse.ClickSpeed, OMouse.ClickSleepFinally and those used by mouse.move.
Overload(top)
Right button down (press and don't release).
public static MRelease rightDown(bool useLastXY = false)
Parameters
useLastXY (bool)
Use mouse.lastXY, not current cursor position. More info: mouse.clickEx. |
Returns
Exceptions
Exception
If lastXY |
InputDesktopException |
Remarks
Uses opt.mouse: OMouse.ClickSpeed, OMouse.ClickSleepFinally and maybe those used by mouse.move.