- Documentation
- Client functions
- guiEditGetCaretIndex
Function
guiEditGetCaretIndex
Returns the text cursor position in a field (number of characters before it).
Syntax
int guiEditGetCaretIndex(element theElement)Arguments
theElementelement- The text field.
Returns
Position.
Example
outputChatBox("Kursor na znaku " .. guiEditGetCaretIndex(edit))