Jump to content
Sign in to follow this  
holdups

PRogress bar and GUICtrlRead

Recommended Posts

holdups

i am running an application that uses displays a progress bar. I want to use my script to control that application based on when its progress bar is above a certain percentage. How do i get the info of the applications progress bar. everytime i call guictrlRead i get zero. even when i call it for the example app GUICtrlCreateProgress.au3 i get zero. Inside the example app there is a call using the GuictrlRead function and that gives the correct value. So im not sure why i can't do from my script. Does this function only work for the progress bars i create? if so what other way can i get the info?

Share this post


Link to post
Share on other sites
Valuater

Does this function only work for the progress bars i create? Yes!

You can use PixelGetColor()

Because a progress bar changes colors

You can use this to get the color and the mouse position....

http://www.autoitscript.com/forum/index.ph...st&p=577922

8)

BTW.... Welcome to the Autoit Forums

Edited by Valuater

NEWHeader1.png

Share this post


Link to post
Share on other sites
holdups

So get the position of the progress bar and check when the position changes color

Share this post


Link to post
Share on other sites
Valuater

So get the position of the progress bar and check when the position changes color

Yep, very easy to do..... There are more complicated ways too!

8)


NEWHeader1.png

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  

×