Hi all,
I'm written a script that frequently sends the CTRL + SHIFT + END keys to capture text from the caret to the end of the document. The only issue is that when this happens then the scroll bar briefly jumps to the bottom after which I have to scroll back up. Is there a way to remember/lock the scroll bar position?
Thanks,
Derrick
How To Lock Scrollbar?
Re: How To Lock Scrollbar?
You can post your script below.
Re: How To Lock Scrollbar?
Hi Mikey,
My code is below:
My code is below:
Code: Select all
sendinput ^+{end} ;Essentially the equivalent of hitting the CTRL +SHIFT + END to jump to the end of the document
Sleep 200 ; Wait a bit for the delay
Clipboard := ; Clearing the clipboard
sendinput, ^c ;Hit the CTRL + C to copy the info
ClipWait,0.1 ;Waiting for info to be copy in the clipboard
Clipvar := Clipboard ;Making a copy of the current clipboard (IE. From the Caret to the end of the document)
Re: How To Lock Scrollbar?
I see. I'm not sure, but the following might help or provide something to adapt. https://www.autohotkey.com/board/topic/13625-how-to-get-and-set-vertical-scroll-position/?p=89143
I would also recommend searching the forum for "scrollbar". There may be some additional relevant posts.
I would also recommend searching the forum for "scrollbar". There may be some additional relevant posts.