Sphaera_ORbis Posted May 26, 2005 Posted May 26, 2005 I want to automate a cleaning program, so far i've managed to figure out some things but i got stuck trying to wait for a progressbar to complete.I will try to explain with a picture (See attachment)What i want to do is let the script wait for the Progressbar to complete thenSleep (100) and continue with the rest of the script...Here's my script (The BOLD section below is were i want to put the code);Opstarten ApplicatieRun("C:\Program Files\CCleaner\ccleaner.exe")WinWaitActive("CCleaner"); Begin opschonen sectie WindowsControlFocus ( "CCleaner", "Opschonen", 3 )ControlClick ( "CCleaner", "Opschonen", 3 , "left" , 1 ) Sleep (2000) ; wacht 2 seconden; Begin opschonen sectie ApplicatiesSend ( "{TAB}")Sleep (100)Send ( "{TAB}")Sleep (100)Send ( "{TAB}")Sleep (100)Send ( "{TAB}")Sleep (100)Send ( "{TAB}")Sleep (100)Send ( "{TAB}")Sleep (100)Send ( "{TAB}")Sleep (100)Send ( "{TAB}")Sleep (100)Send ( "{RIGHT}")Sleep (100)ControlFocus ( "CCleaner", "Opschonen", 3 )ControlClick ( "CCleaner", "Opschonen", 3 , "left" , 1 )Sleep (5000) ; wacht 5 seconden; Begin opschonen sectie FoutenSend ( "{TAB}")Sleep (100)Send ( "{TAB}")Sleep (100)Send ( "{TAB}")Sleep (100)Send ( "{TAB}")Sleep (100)Send ( "{TAB}")Sleep (100)Send ( "{TAB}")Sleep (100)Send ( "{TAB}")Sleep (100)Send ( "{TAB}")Sleep (100)Send ( "{RIGHT}")Sleep (100)ControlFocus ( "CCleaner", "Scannen naar fouten", 3 )ControlClick ( "CCleaner", "Scannen naar fouten", 3 , "left" , 1 )Sleep (5000)WinWait ( "CCleaner", "Herstel geselecteerde fouten..." )ControlFocus ( "CCleaner", "Herstel geselecteerde fouten...", 4 )ControlClick ( "CCleaner", "Herstel geselecteerde fouten...", 4 , "left" , 1 );Script not completed yet.can anyone tell me what to do?Thanks in advance!!
Valuater Posted May 27, 2005 Posted May 27, 2005 (edited) I will try to explain with a picture (See attachment)i didn't see any picture???maybe this will help#78701view all the posts associatedgood luck Edited May 27, 2005 by Valuater
GaryFrost Posted May 27, 2005 Posted May 27, 2005 This topic was posted twice, was answered in previous SciTE for AutoItDirections for Submitting Standard UDFs Don't argue with an idiot; people watching may not be able to tell the difference.
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