holdups Posted May 5, 2009 Share Posted May 5, 2009 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? Link to comment Share on other sites More sharing options...
Valuater Posted May 5, 2009 Share Posted May 5, 2009 (edited) Does this function only work for the progress bars i create? Yes!You can use PixelGetColor() Because a progress bar changes colorsYou can use this to get the color and the mouse position....http://www.autoitscript.com/forum/index.ph...st&p=5779228)BTW.... Welcome to the Autoit Forums Edited May 5, 2009 by Valuater Link to comment Share on other sites More sharing options...
holdups Posted May 5, 2009 Author Share Posted May 5, 2009 So get the position of the progress bar and check when the position changes color Link to comment Share on other sites More sharing options...
Valuater Posted May 5, 2009 Share Posted May 5, 2009 So get the position of the progress bar and check when the position changes colorYep, very easy to do..... There are more complicated ways too!8) Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now