Skip to main content

SetCursorPosTopLHS

Set the cursor position relative to the top left corner of window.

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

Parameters

moveRight: x offset relative to the left side of the given window.

moveDown: y offset relative to the left side of the given window.

Return Value

None

Remarks

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

Example

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