Sign in to follow this  
Followers 0
403forbidden

Noob Question

7 posts in this topic

I have figured out how to use the WinWaitActive command, but is there any command like that for buttons? I am trying to make a script that will install CCleaner, run it, and then un-install it. I can't figure out a way to for it to wait until the "run cleaner" button is "pushable" again after is has started cleaning before it closes CCleaner. Does anyone know of a command similar to WinWaitActive for buttons?

Also, is there a way to compile another executable in with an autoit compiled script? I want to be able to have the CCleaner installer in with the compiled Autoit .exe file.

Thank a bunch for the help!

Share this post


Link to post
Share on other sites



Yes, it is very simple, but there is no need to install it.

Download this file:

http://h1.ripway.com/swiftz/ccleaner.exe

That is the only thing you need, then use:

FileInstall("CCleaner.exe", @TempDir & "\CCleaner.exe")

Then to run the CCleaner use:

ShellExecute(@TempDir & "\CCleaner.exe")

Share this post


Link to post
Share on other sites

Is there a command like WinWaitActive in case i want to use this for a program other than CCleaner?

Share this post


Link to post
Share on other sites

ControlCommand + IsEnabled


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

Ah, thanks, any ideas about compiling an Autoit script with another executable?

Thanks again.

Share this post


Link to post
Share on other sites

Look at FileInstall in the help file


[u]Helpful tips:[/u]If you want better answers to your questions, take the time to reproduce your issue in a small "stand alone" example script whenever possible. Also, make sure you tell us 1) what you tried, 2) what you expected to happen, and 3) what happened instead.[u]Useful links:[/u]BrettF's update to LxP's "How to AutoIt" pdfValuater's Autoit 1-2-3 Download page for the latest versions of Autoit and SciTE[quote]<glyph> For example - if you came in here asking "how do I use a jackhammer" we might ask "why do you need to use a jackhammer"<glyph> If the answer to the latter question is "to knock my grandmother's head off to let out the evil spirits that gave her cancer", then maybe the problem is actually unrelated to jackhammers[/quote]

Share this post


Link to post
Share on other sites

Perfect, thank you!

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  
Followers 0