Returns the current pointer position as an offset in pixels from the nearest corner of the
specified rectangle.
Syntax
GetOffset(rectangleName)
Parameters
- rectangleName
- Name of rectangle from whose nearest corner the pointer offset
should be measured. Case insensitive. Choices:
- Window - Current window's bounding rectangle, as with GetOffset().
- WindowInner - Current window's inner rectangle (or "client area"), i.e., the part not occupied by the title bar, toolbars, etc.
- Screen - Screen's bounding rectangle.
- ScreenInner - Screen's inner rectangle (or "work area"), i.e., the part not occupied by the taskbar, docked windows, etc.
- Screen2 - Bounding rectangle of a second screen, if present. Additional screens, if present, may be similarly referenced by number.
- ScreenInner2 - Inner rectangle of a second screen, if present. Additional screens, if present, may be similarly referenced by number.
Return Value
The current pointer position, using the syntax "(x,y)"
Remarks
When writing a command which positions the pointer you can place the pointer in an interesting location,
use this function to discover its coordinates, and use them as arguments to MoveTo.
Examples
CopyGet current pointer offset
Get Pointer = Clipboard.SetText(Pointer.GetOffset(WindowInner));
See Also
Assembly: VocolaFunctionLibrary (Module: VocolaFunctionLibrary) Version: 3.1.1.0 (3.1.1.0)