jonathan2133 Posted September 7, 2006 Share Posted September 7, 2006 Lets say i want to make autoit install somthing. Or another automated task. Now lets say that task had a progress bar. Is there a way to make autoit "see" that progress bar, not as we see it, but the actual value of the bar, and react accordingly? like if at 80% i want to make the computer play a sound so that the person knows that they need to start paying attention, or make autoit do somthing, how do i do that? I can use the tool that came with autoit to see what the progress bar's name is, but how do i get a value from that name? basically thats what im wondering. Link to comment Share on other sites More sharing options...
lod3n Posted September 7, 2006 Share Posted September 7, 2006 I don't know if you can get the value of a progress bar. You might be able to find the coordinates of a progress bar with ControlGetPos, and then use PixelSearch to find out when that progress bar changes color at the 80% mark. [font="Fixedsys"][list][*]All of my AutoIt Example Scripts[*]http://saneasylum.com[/list][/font] Link to comment Share on other sites More sharing options...
jonathan2133 Posted September 7, 2006 Author Share Posted September 7, 2006 Ya i could do that, but if the resolution is changed or if the window is moved then im SOL... Link to comment Share on other sites More sharing options...
lod3n Posted September 7, 2006 Share Posted September 7, 2006 Ah, see, you invoke WinActivate, ControlGetPos, and PixelSearch as part of a function. Then you run that function every few seconds. [font="Fixedsys"][list][*]All of my AutoIt Example Scripts[*]http://saneasylum.com[/list][/font] 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