AnsweredAssumed Answered

Get Scrolled Position in Layout

Question asked by twelvetens on Aug 18, 2016
Latest reply on Oct 15, 2016 by monkeybreadsoftware

I've got a script that gets fired off by trigger, and freezes the current window, goes off to another layout, does some stuff, and then goes back to the original layout. This all works fine, but the starting layout is quite long (vertical) and so the user typically has to scroll down the screen a certain amount in order to start the script off.


What I'd like to do is record exactly how far down the layout they are when the script is initiated, so that when the script returns to this layout, the scrolled amount can be recovered, so the layout doesn't appear to 'jump' back to the top of the layout.


I've experimented with using Go To Object and Go To Field, which don't quite do what I want, as they seem to centre on the object/field, whereas the user may not have the object/field in the centre of their screen when the script is fired.


Is there a way to Get(ScrollPosition) or something like that?