iHonda Posted March 13, 2006 Share Posted March 13, 2006 ok i wrote the starting part of my program and it works really good and it ends but i want to add a bit more too it. right now all it does is open windows disc clean for you and tells you what do check but what i want it to do is to check the stuff on its own then hit the ok button w8 for that to finish then lauch the anti virus program and run a virus scan then create a restore point and close, with no need for human interaction. is this possible?? A great place to start Autoit 1-2-3 Link to comment Share on other sites More sharing options...
greenmachine Posted March 13, 2006 Share Posted March 13, 2006 The simple answer to your question is this: it is most likely possible. How you would go about doing that would require a little knowledge of the controls. Go find your Au3Info.exe and run it, and check out all the info on the controls of the window. Then, look at Control* in the helpfile. Link to comment Share on other sites More sharing options...
Lapo Posted March 13, 2006 Share Posted March 13, 2006 (edited) ok i wrote the starting part of my program and it works really good and it ends but i want to add a bit more too it. right now all it does is open windows disc clean for you and tells you what do check but what i want it to do is to check the stuff on its own then hit the ok button w8 for that to finish then lauch the anti virus program and run a virus scan then create a restore point and close, with no need for human interaction. is this possible??---------------------------------------MY SCRIPTS--------------------DisKlean By: Zmasterthe above is a exe file .. post the au3 sourceEDIT :the harder stuf IMHO is the restore point _:http://www.dougknox.com/xp/scripts_desc/xp...estorepoint.htmfom :http://www.google.it/search?hl=it&q=xp%2Bc...ore+point&meta= Edited March 13, 2006 by Lapo Link to comment Share on other sites More sharing options...
Moderators SmOke_N Posted March 13, 2006 Moderators Share Posted March 13, 2006 ---------------------------------------MY SCRIPTS--------------------DisKlean By: Zmasterthe above is a exe file .. post the au3 sourceWhat the hell does that mean 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...
slightly_abnormal Posted March 13, 2006 Share Posted March 13, 2006 What the hell does that mean he's talking about his sig. Link to comment Share on other sites More sharing options...
Lapo Posted March 13, 2006 Share Posted March 13, 2006 (edited) What the hell does that mean I am wrong ?Maybe if we see the source that the OP has done ...EDITAhh it's the sign ... i believe it was the script he is talking Edited March 13, 2006 by Lapo Link to comment Share on other sites More sharing options...
greenmachine Posted March 13, 2006 Share Posted March 13, 2006 (edited) He's talking about Zmaster's sig: the script he made is only available in exe format. Wow, lost in a frenzy of posts. Edited March 13, 2006 by greenmachine Link to comment Share on other sites More sharing options...
slightly_abnormal Posted March 13, 2006 Share Posted March 13, 2006 (edited) ok i wrote the starting part of my program and it works really good and it ends but i want to add a bit more too it. right now all it does is open windows disc clean for you and tells you what do check but what i want it to do is to check the stuff on its own then hit the ok button w8 for that to finish then lauch the anti virus program and run a virus scan then create a restore point and close, with no need for human interaction. is this possible??Yes it is.. I made something like this with "scriptwriter.exe" and "autoitmacroeditor" check out winzip installtion automation in help file.. i'll have to look for the code.. Edited March 13, 2006 by slightly_abnormal Link to comment Share on other sites More sharing options...
Moderators SmOke_N Posted March 13, 2006 Moderators Share Posted March 13, 2006 He's talking about Zmaster's sig: the script he made is only available in exe format.Wow, lost in a frenzy of posts.LMAO... I looked at that, and swore it was in Swahili Thanks for the clarification. 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...
iHonda Posted March 13, 2006 Author Share Posted March 13, 2006 o sorry i forgot about the script the .exe that i have posted is well the .exe of what i have now here is the script: Opt("WinTitleMatchMode", 4) $g_szVersion = "My Script 1.1" If WinExists($g_szVersion) Then Exit AutoItWinSetTitle($g_szVersion) TrayTip("Initiating DisKlean", "Now Starting DisKlean Please refer to the notepad that is being opened for instructions.", 3, 1) Run("notepad.exe") WinWaitActive("classname=Notepad") WinSetTitle("classname=Notepad", "", "Instructions") ControlSend("classname=Notepad", "", "Edit1", _ "~~DisKlean By: Zmaster)atF(~~" & @CRLF & @CRLF _ & "DO NOT CLOSE THIS WINDOW IT WILL CLOSE IT SELF LATER" & @CRLF & @CRLF _ & "Thank you for using my program, I promise that it is 100% safe to use." & @CRLF _ & "This window will automaticaly close itself when the wizard is done running." & @CRLF _ & "Please follow all instructions on this page for optimal script operation." & @CRLF & @CRLF _ & "1. Make sure that the following Files to Delete are selected in the Disk Clean up for (C:) window" & @CRLF _ & "Downloaded Program Files" & @CRLF _ & "Temporary Internet Files" & @CRLF _ & "Recycle Bing" & @CRLF _ & "Temporary file" & @CRLF _ & "WebClient/Publisher Temporary Files" & @CRLF _ & "Compress old files" & @CRLF _ & "After all of those boxes are selected click OK." & @CRLF) Run("cleanmgr.exe") ProcessWaitClose("cleanmgr.exe") ProcessClose("notepad.exe") MsgBox(0, "Thank You", "Thank you for using DisKlean", 3) kk thats all the code A great place to start Autoit 1-2-3 Link to comment Share on other sites More sharing options...
Lapo Posted March 13, 2006 Share Posted March 13, 2006 (edited) I have not XP here but your script is ok here on a win98seEDIT :try this :http://www.ccleaner.com/http://www.autoitscript.com/forum/index.php?showtopic=22846 Edited March 13, 2006 by Lapo Link to comment Share on other sites More sharing options...
Lapo Posted March 13, 2006 Share Posted March 13, 2006 (edited) ahh maybe you want to automate this part : & "1. Make sure that the following Files to Delete are selected in the Disk Clean up for (C:) window" & @CRLF _ & "Downloaded Program Files" & @CRLF _ & "Temporary Internet Files" & @CRLF _ & "Recycle Bing" & @CRLF _ & "Temporary file" & @CRLF _ & "WebClient/Publisher Temporary Files" & EDIT: Start C:\Progra**\Autoit3\AU3Info.exe and cleanmgr.exe and C:\PROGRA~1\AUTOIT3\AUTOIT3.CHM and look at ControlCommand >> "IsChecked", "" Returns 1 if Button is checked, 0 otherwise Edited March 13, 2006 by Lapo Link to comment Share on other sites More sharing options...
greenmachine Posted March 13, 2006 Share Posted March 13, 2006 Someone might want to check the spelling too... Recycle Bing? Link to comment Share on other sites More sharing options...
Lapo Posted March 13, 2006 Share Posted March 13, 2006 Someone might want to check the spelling too... Recycle Bing?I have a swahili OS and it's named Recycle Bing :-))) Link to comment Share on other sites More sharing options...
greenmachine Posted March 13, 2006 Share Posted March 13, 2006 I have a swahili OS and it's named Recycle Bing :-)))Well that's interesting. It's definitely Recycle Bin in English. Link to comment Share on other sites More sharing options...
iHonda Posted March 13, 2006 Author Share Posted March 13, 2006 huh?? im lost A great place to start Autoit 1-2-3 Link to comment Share on other sites More sharing options...
Lapo Posted March 13, 2006 Share Posted March 13, 2006 (edited) huh?? im lost I have made a quick test in win98 se :change the captions and try it too :; #Include ""; Run("cleanmgr.exe"); sleep(500) AutoItSetOption("WinTitleMatchMode", 4) WinWaitActive( "Seleziona unità ", "", 5 ) ControlFocus ( "Seleziona unità ","" , "Button1" ) ControlClick ( "Seleziona unità ", "" , "Button1","left" ) WinWaitActive( "Pulitura disco di (C:)", "", 5 ) $a =ControlCommand ( "Pulitura disco di (C:)", "","ListBox1", "IsChecked", "") MsgBox(0, "", $a)ControlCommand ( "Pulitura disco di (C:)", "","ListBox1", "UnCheck", "")PS:have you try the CCLEANER :here is what i use every day : Run("C:\PROGRA~1\CCLEANER\CCLEANER.EXE") AutoItSetOption("WinTitleMatchMode", 4) WinWaitActive( "CCleaner", "", 5 ) ControlFocus ( "CCleaner","" , "ThunderRT6CommandButton1" ) ControlClick ( "CCleaner", "" , "ThunderRT6CommandButton1","left" ) sleep(1500)$a =ControlCommand ( "CCleaner", "", "ThunderRT6CommandButton2","IsEnabled", "" )while $a = 0 sleep(500)$a =ControlCommand ( "CCleaner", "", "ThunderRT6CommandButton2","IsEnabled", "" )Wend; MsgBox(0, $a, $a) sleep(1000)$text = WinGetText("CCleaner", "")$temp1 ="c:\windows\temp\tmp.tmp" $file = FileOpen($temp1, 1); Check if file opened for writing OKIf $file = -1 Then MsgBox(0, "Error", "Unable to open file.") ExitEndIfFileWrite($file, $text & @CRLF)FileClose($file)$file = FileOpen("c:\windows\temp\tmp.tmp", 0)If $file = -1 Then MsgBox(0, "Error", "Unable to open file.") ExitEndIf$line = FileReadLine($file,5); MsgBox(0, "Char read:", $line)FileClose($file)If $line = "0 bytes to be removed. (Approximate size)" Then MsgBox(0, "0 bytes","")FileDelete("c:\windows\temp\tmp.tmp")exitelse sleep(500) ControlFocus ( "CCleaner","" , "ThunderRT6CommandButton2" ) ControlClick ( "CCleaner", "" , "ThunderRT6CommandButton2","left" ) endif Edited March 13, 2006 by Lapo Link to comment Share on other sites More sharing options...
iHonda Posted March 13, 2006 Author Share Posted March 13, 2006 uhhh im not sure that will work on a normal american computer A great place to start Autoit 1-2-3 Link to comment Share on other sites More sharing options...
Lapo Posted March 13, 2006 Share Posted March 13, 2006 (edited) uhhh im not sure that will work on a normal american computerLaunch C:\PROGRA~1\AUTOIT3\AU3INFO.EXE and change the captionsEDIT :the CCleaner part has not language references and works on vour OS Edited March 13, 2006 by Lapo Link to comment Share on other sites More sharing options...
iHonda Posted March 13, 2006 Author Share Posted March 13, 2006 (edited) O ok ill do that thank you for your help im gonna go and try all of the ideas u guys gave me Edited March 13, 2006 by Zmaster A great place to start Autoit 1-2-3 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