Skip to main content

SetCursorPosTopLHS

Set the cursor position relative to the top left corner of automation control.

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

Parameters

moveRight: x offset relative to the left side of the automation control.

moveDown: y offset relative to the left side of the automation control.

Return Value

None

Remarks

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

Example

private AutomationControl notepadWindow;
notepadWindow = FindTopAutomationWindow("Untitled - Notepad");
notepadWindow.SetCursorPosTopLHS();

Related: