1 of 1 people found this helpful
Get ( ActiveSelectionStart ) will give you the current cursor position.
Why not use either insert text or insert calculated result with no target field specfied?
That would insert the desired text at the current cursor location and leave the cursor to the right of the inserted text.
I usually avoid the user of such "insert" script steps--preferring to use set field, but this is a case where it makes sense to use one.
Its for use with an auto expansion feature in Text fields.
Every key captured is appended to a global field and there is a commit record in the script as the string generated is used in a relationship to see if there is a match for the shortcut to be expanded.
When the script re-enters the field, if it does not know its position in the field, it goes to the end of the line, which is not what I would like it to.