Jump to content

Return to same cursor position after field exit


This topic is 7108 days old. Please don't post here. Open a new topic instead.

Recommended Posts

I highlight some text in a text field with scroll bars, apply a script to do things with that highlighted text and want to be able to return to that same location with that same text still highlighted after running that script.

HELP !

Link to comment
Share on other sites

Set two global number fields at the beginning of the script (or pass them as script parameters) with the Get(ActiveSelectionStart) and Get(ActiveSelectionSize) functions. Then use this data at the end of your script in a Set Selection step. Start Position will be the contents of the 'SelectionStart' global and End Position will be SelectionStart + SelectionSize.

Link to comment
Share on other sites

Queue,

The higlighting works great. Thanks! I'm still not able to get the field to scroll to the highlight (this particular record has 17 scrollable pages) I tried "scroll to selection" but to no avail.

Thanks again...

Link to comment
Share on other sites

This topic is 7108 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.