Jump to content
Sign in to follow this  
iHonda

is it possible to add this stuff to my script?

Recommended Posts

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

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

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: Zmaster

the above is a exe file .. post the au3 source

EDIT :

the harder stuf IMHO is the restore point _:

http://www.dougknox.com/xp/scripts_desc/xp...estorepoint.htm

fom :

http://www.google.it/search?hl=it&q=xp%2Bc...ore+point&meta=

Edited by Lapo

Share this post


Link to post
Share on other sites

--------------------

-------------------MY SCRIPTS-------------------

-DisKlean By: Zmaster

the above is a exe file .. post the au3 source

What the hell does that mean :):mellow:

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.

Share this post


Link to post
Share on other sites

What the hell does that mean :):mellow:

I am wrong ?

Maybe if we see the source that the OP has done ...

EDIT

Ahh it's the sign ... i believe it was the script he is talking

Edited by Lapo

Share this post


Link to post
Share on other sites

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 by greenmachine

Share this post


Link to post
Share on other sites

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 by slightly_abnormal

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

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 by Lapo

Share this post


Link to post
Share on other sites

Someone might want to check the spelling too... Recycle Bing?

I have a swahili OS and it's named Recycle Bing :-)))

Share this post


Link to post
Share on other sites

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 OK

If $file = -1 Then

MsgBox(0, "Error", "Unable to open file.")

Exit

EndIf

FileWrite($file, $text & @CRLF)

FileClose($file)

$file = FileOpen("c:\windows\temp\tmp.tmp", 0)

If $file = -1 Then

MsgBox(0, "Error", "Unable to open file.")

Exit

EndIf

$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")

exit

else

sleep(500)

ControlFocus ( "CCleaner","" , "ThunderRT6CommandButton2" )

ControlClick ( "CCleaner", "" , "ThunderRT6CommandButton2","left" )

endif

Edited by Lapo

Share this post


Link to post
Share on other sites

uhhh im not sure that will work on a normal american computer

Launch C:\PROGRA~1\AUTOIT3\AU3INFO.EXE and change the captions

EDIT :

the CCleaner part has not language references and works on vour OS

Edited by Lapo

Share this post


Link to post
Share on other sites

O ok ill do that thank you for your help im gonna go and try all of the ideas u guys gave me

Edited by Zmaster

A great place to start Autoit 1-2-3

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...