Hello Me You Posted March 14, 2007 Share Posted March 14, 2007 I can't automate it because it has button with same control id.. I don't have much time now, sorry. Does anyone have a script for it? Many users use it. Random Link to comment Share on other sites More sharing options...
Moderators SmOke_N Posted March 14, 2007 Moderators Share Posted March 14, 2007 I can't automate it because it has button with same control id.. I don't have much time now, sorry. Does anyone have a script for it? Many users use it.Now how hard is it after all the time you get bashed for not doing any work to make any effort what so ever?http://www.autoitscript.com/forum/index.ph...ite=%2BCCleaner Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer. Link to comment Share on other sites More sharing options...
MHz Posted March 15, 2007 Share Posted March 15, 2007 Use the switch /AUTO Link to comment Share on other sites More sharing options...
PopSmith Posted March 15, 2007 Share Posted March 15, 2007 Or you can do things the "long" way, which is how I do things. Load up the program then load up AutoIt Window Info. Use AutoIt Window Info to find the position of the button and use MouseClick() to click what it needs to for CCleaner to run. Link to comment Share on other sites More sharing options...
mikeylikesit Posted March 15, 2007 Share Posted March 15, 2007 using the mouse it good but, the problem is the different resolutions so i use the "send" command to send the "enter" key or what not. Hard work never killed anyone but why take the chance? Link to comment Share on other sites More sharing options...
PopSmith Posted March 16, 2007 Share Posted March 16, 2007 Yes, Send() and {ENTER} could work too.Just a side note:Assuming you don't have the "You must shut down Firefox" warning (Check the box to get rid of it forever) here is something I put together:;This will run the 'Cleaner' part of the program Run("C:\Program Files\CCleaner\CCleaner.exe") WaitWinActive("CCleaner") Send("{TAB 4}{ENTER}") Sleep(100) Send("{TAB}{ENTER 2}") ;This part will run the "Issues" section. It will also automatically fix any problems it finds Send("!i") Sleep(100) Send("{TAB 3}{ENTER}") ;Below sleeps the program so it can scan. There is probably a better way of doing this however. Sleep(20000) This part tells the program to "Fix Selected Issues" It then creates a registry backup (using CCleaner). Send("{TAB 5}{ENTER}") Send("!y") Sleep(100) ;This renames the Registry Backup. If you have file extentions being shown you will need to add (dot)reg after the word "Backup" Send("{DEL}CCleanerRegistryBackup{ENTER}") ;This part has CCleaner fix the registry Send("{TAB 2}{ENTER}") Sleep(5000) Send("{TAB 3}{ENTER}") Sleep(1000) ;Quits CCleaner Send("!{F4}")This should work for any computer running CCleaner. As I stated somethings may be done in a 'better' way but dunno. Try it if you want and report back. Link to comment Share on other sites More sharing options...
tijiez Posted March 16, 2007 Share Posted March 16, 2007 Func ccleaner() RunWait(@ScriptDir & "\installers\ccsetup138_slim.exe /S", "", @SW_HIDE) EndFunc 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