Icemaan Posted March 8, 2007 Posted March 8, 2007 (edited) HalloI work not long with AutoIt but I have make a little Script which start a Programm for Clean Temp FilesFirst here is the Script Quote Run("C:\Programme\Aufräumen\CCleaner\ccleaner.exe")WinWait("CCleaner")Send("!+r")Sleep(3000)WinActivate("CCleaner")Send("!")Send("i")Send("!+s")WinWait("CCleaner" , "&Scan for Issues")If WinExists ("Fix issues") ThenControlClick("Fix issues", "",3)WinWait("CCleaner")WinActivate("CCleaner")ControlClick("CCleaner", "", 1) Else WinClose("CCleaner" , "")EndIfI Not know why not work until WinWait("CCleaner" , "&Scan for Issues") its all okthen Script stop Any IdeaThanks much for HelpIcemaan Edited March 8, 2007 by Icemaan
EndFunc Posted March 8, 2007 Posted March 8, 2007 Icemaan said: HalloI work not long with AutoIt but I have make a little Script which start a Programm for Clean Temp FilesFirst here is the ScriptI Not know why not work until WinWait("CCleaner" , "&Scan for Issues") its all okthen Script stop Any IdeaThanks much for HelpIcemaanSo the script stops at WinWait("CCleaner" , "&Scan for Issues")? Are you sure that's the exact text in the Window that appears. Try just using the title or make sure that the text is exact. EndFuncAutoIt is the shiznit. I love it.
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