Skip to main content

How to get cursor Position?

  • September 23, 2013
  • 1 reply
  • 4 views

Hi,

Need to get the current cursor position in a variable.

EMSetCursor is used to set cursor to certain row, col. Is there any function to get current cursor position in variables?


#Rumba

1 reply

André Escudero

Hi,

Need to get the current cursor position in a variable.

EMSetCursor is used to set cursor to certain row, col. Is there any function to get current cursor position in variables?


#Rumba

Hi,

this code snippet should help.

Sub Main

Dim CursR as Integer

Dim CursCol as Integer

EMReadCursor   CursR, CursCol

MsgBox "Cursor Position: Row=" & CursR & " Column=" & CursCol

End Sub

Please note: In the Rumba ScriptEditor press F1 (Assist) to open the Script Command reference with code Samüles and an overview of all Functions.