Currently, the "Set Selection" script step allows us to jump the cursor to the end of a field, the beginning of a field, or highlight a contiguous set of characters within a field. Plus, if we use the number 0 in creative ways, we can get the cursor to blink right before or after any character in the field:
- If we specify the number 0 as the "End Position", we can get the cursor to blink right before the specified "Start Position".
- If we specify the number 0 as the "Start Position", we can get the cursor to blink immediately after the specified "End Position".
So... it would be really cool if we could grab the precise cursor position of a blinking cursor within a field, so we could take the user back to that EXACT location in the field later on.
Perhaps a Get (CursorPosition) function?
That way, we could do all sorts of fancy scripting and if we ever need to refresh the layout (or leave the layout and return to it later), we can put the user's cursor right back where it was... without them even knowing that anything changed. This would be especially useful when triggering scripts based on the OnObjectKeystroke script trigger, which might be followed by a refresh of the layout.