GetCursor

Retrieves the host screen cursor position.

Parameters:

RowVal  -  Variable to contain cursor's row position.

ColumnVal  -  Variable to contain cursor's column position.

Returns:

0 for success; or a non-zero error code.  See Error Codes for a complete listing of error code descriptions.

Remarks:

When the GetCursor function returns, the RowVal and ColumnVal variables will contain the host screen cursor position.

Set Host = CreateObject( "BZWhll.WhllObj" )

 

Host.Connect "A"

Host.GetCursor row, col

Host.MsgBox "Cursor is at row " & row & ", column " & col, 0