This documentation was styled with a demo skin from the Premium Pack 4 add-on for Help & Manual. The contents of the skin are encrypted and not configurable. You can only publish HM projects with this skin. You cannot edit it or change it.
This version is copyright and may only be used for local testing purposes. It may not be distributed.
Please purchase the full version of the Premium Pack to get the configurable skins and remove this notice. The package will also include the Toolbox configuration utility for Premium Pack skins.
Description
Sets the cursor position.
Syntax
Console_CursorPos(nXpos, nYPos)
or
Console_SetCursorPosition(nXpos, nYPos)
Returns
Parameters
Name |
Type |
Optional |
Meaning |
nXpos |
Numeric |
No |
New X position. If 0 (zero), current cursor X position will not change If negative, the ABS of nXpos will be subtracted to current cursor X position |
nYpos |
Numeric |
No |
New Y position. If 0 (zero), current cursor Y position will not change If negative, the ABS of nXpos will be subtracted to current cursor Y position |
Remarks
Restrictions
See also
Console Module, Console_SetCursorSize
Examples
Console_SetCursorPosition(10, 10) '---Change X and Y position
Console_SetCursorPosition(0 , 10) '---Change only Y position
Console_SetCursorPosition(10, 0) '---Change only X position
Console_SetCursorPosition(-2, 0) '---Y position will not change
'---Current X position will move 2 position back
Console_SetCursorPosition(0, -2) '---X position will not change
'---Current Y position will move 2 lines up