Skip to main content

RightClick

Right click in the center of the given window.

void RightClick();
void RightClick(int moveRight, int moveDown);

Parameters

moveRight: x offset relative to the center of the given window.

moveDown: y offset relative to the center of the given window.

Return Value

None

Remarks

The optional parameters can be used to offset the mouse cursor position from the center of the given window.

Example

private Control notepadWindow;
notepadWindow = FindTopWindow("Untitled - Notepad");
this.notepadWindow.RightClick();

Related: