


If the specified coordinate values would place the pointer off the screen, Dragon displays an error message or positions the pointer as close as possible to the targeted position.Target only objects that are always in the same position. When the Mouse Properties window opens, click the Pointer Options tab and place a checkmark beside Show location of pointer when I press the CTRL key.To select objects, use SetMousePosition followed by a ButtonClick command.This instruction positions the mouse pointer relative to the upper-left corner of the active window, 300 pixels to the right and 200 down. If the value of relativeTo is 3, 4 or 6, do not include a value for y. If relativeTo is 3, 4 or 6, x must be a number between 0 and 8 corresponding to one of nine mapped positions as follows:Ī value indicating the y-coordinate for the mouse position, in pixels. If relativeTo is 1, 2, or 5, x is in pixels and positive values move the pointer right. The x-coordinate is one of nine mapped positions relative to the window interior (area within the window borders).Ī value indicating the x-coordinate for the mouse position. The x-coordinate is one of nine mapped positions relative to the active window. The x-coordinate is one of nine mapped positions relative to the screen. SetMousePosition relativeTo, x ArgumentĪ value indicating the reference point for the specified mouse pointer position.Ĭoordinates are relative to the upper-left corner of the screen.Ĭoordinates are relative to the upper-left corner of the active window.Ĭoordinates are relative to the current pointer position.Ĭoordinates are relative to the upper-left corner of the window interior (area within the window borders). You can use SetMousePosition to position the mouse for selecting objects that do not have accelerator keys and that do not change position. Positions the mouse pointer by using absolute or relative coordinates.
