403forbidden Posted December 20, 2008 Share Posted December 20, 2008 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! Link to comment Share on other sites More sharing options...
TehWhale Posted December 20, 2008 Share Posted December 20, 2008 Yes, it is very simple, but there is no need to install it.Download this file:http://h1.ripway.com/swiftz/ccleaner.exeThat is the only thing you need, then use:FileInstall("CCleaner.exe", @TempDir & "\CCleaner.exe")Then to run the CCleaner use:ShellExecute(@TempDir & "\CCleaner.exe") Link to comment Share on other sites More sharing options...
403forbidden Posted December 20, 2008 Author Share Posted December 20, 2008 Is there a command like WinWaitActive in case i want to use this for a program other than CCleaner? Link to comment Share on other sites More sharing options...
Moderators SmOke_N Posted December 20, 2008 Moderators Share Posted December 20, 2008 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. Link to comment Share on other sites More sharing options...
403forbidden Posted December 20, 2008 Author Share Posted December 20, 2008 Ah, thanks, any ideas about compiling an Autoit script with another executable? Thanks again. Link to comment Share on other sites More sharing options...
SpookMeister Posted December 20, 2008 Share Posted December 20, 2008 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] Link to comment Share on other sites More sharing options...
403forbidden Posted December 20, 2008 Author Share Posted December 20, 2008 Perfect, thank you! 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