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. Refer to Error codes for a complete listing of error code descriptions.
- Remarks
- When the EMGetCursor function returns, the RowVal and ColumnVal variables contain the host screen cursor position.
- Example
EMConnect "A"
EMGetCursor row, col
MsgBox "Cursor is at row " & row & ", column " & col, 0