Jump to content

Recommended Posts

Posted

So i want to make a script that will check if a window has more to scroll through and if so keep scrolling until it reaches the bottom of the window. Here is my current script.

#include <GUIConstants_EX.au3>
#include <WindowsConstants.au3>
#include <GUIScrollBars_Ex.au3>
#include <StructureConstants.au3>

Local $hndl = WinGetHandle("CodeXL")

Local $check = 1

While $check = 1
    if _GUIScrollBars_GetScrollInfoMax($hndl, $SB_Vert) = _GUIScrollBars_GetScrollInfoTrackPos($hndl, $SB_VERT) Then
        $check = 0
    Else
        MouseWheel("down", 1000)
    EndIf
WEnd

I am very new to AutoIt so i am still trying to figure everything out. Any help would be much appreciated. Also, the program i want the script to scroll through has multiple scroll bars on the page, i am unsure if this affects the outcome of the script. Because currently the script does nothing (no errors though :)) Thanks guys

Posted

Any reason why you started a new thread while you have one going on this topic?

Jos

​The other post didn't have any code, and I decided to make the post less specific since I have got everything down except for the auto-scroll through the page. I will go ahead and delete the other thread if possible since it didnt get any helpful replies.

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
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...