Sign in to follow this  
Followers 0
ogrish

hot to test whether the scroll bar is on the page bottom?

3 posts in this topic

Hi,

I need to process a high text area component. Since it's high, i need to process one page at a time. Then i send a {pagedown} key to process the next page. I want to know how to determine whether the scrollbar is one the bottom of the page (if so that means the process is complete).

Thanks.

Share this post


Link to post
Share on other sites



Hi,

I need to process a high text area component. Since it's high, i need to process one page at a time. Then i send a {pagedown} key to process the next page. I want to know how to determine whether the scrollbar is one the bottom of the page (if so that means the process is complete).

Thanks.

If you can get the handle of the scrollbar then maybe you can use the GetScrollInfo function.

Maybe you could get the current line where the cursor is, which might be the end of the page each time or the end of the document, and compare that to the number of lines in the edit.

Or get the total number of lines and count the lines you've processed.

Or you could page down and if the text didn't change then that's the end.


Serial port communications UDF Includes functions for binary transmission and reception.printing UDF Useful for graphs, forms, labels, reports etc.Add User Call Tips to SciTE for functions in UDFs not included with AutoIt and for your own scripts.Functions with parameters in OnEvent mode and for Hot Keys One function replaces GuiSetOnEvent, GuiCtrlSetOnEvent and HotKeySet.UDF IsConnected2 for notification of status of connected state of many urls or IPs, without slowing the script.

Share this post


Link to post
Share on other sites

#3 ·  Posted (edited)

As Martin said.

Look at _GUIScrollBars_GetScrollInfo() or _GUIScrollBars_GetScrollInfoPos() or _GUIScrollBars_GetScrollPos() example in Autoit's helpfile.

Edited by Zedna

Share this post


Link to post
Share on other sites

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
Sign in to follow this  
Followers 0