FeFFe Posted August 28, 2007 Share Posted August 28, 2007 I never done programming before, but I liked the idea of this program so I gave it a shot! I got some problems with a unattended install of Ad-Aware 2007 AutoItSetOption("WinTitleMatchMode", 1) $dir="C:\Program Files\Winamp" $SF= "aaw2007.exe" Run($SF) WinWaitActive("Ad-Aware 2007 Setup") WinWaitActive("Ad-Aware 2007 Setup") WinWaitActive("Ad-Aware 2007 Setup") Send("{SPACE}") WinWaitActive("Ad-Aware 2007 Setup") Send("{UP}") Send("{ENTER}") WinWaitActive("Ad-Aware 2007 Setup") Send("{ENTER}") WinWaitActive("Ad-Aware 2007 Setup") Send("{ENTER}") WinWaitActive("Ad-Aware 2007 Setup") Send("{ENTER}") WinWaitActive("Ad-Aware 2007 Setup") Send("{ENTER}") All of this works, until the installation starts runnin', I set a "WinWaitActive("Ad-Aware 2007 Setup")" and then a "Send("{!f}")" but the !f key is pressed to fast and the last "finish" window doesnt get unattended. Can someone of you guys help me out? I've read the help, but all the programming-text doesnt help me I don't understand. Link to comment Share on other sites More sharing options...
andyvl Posted August 28, 2007 Share Posted August 28, 2007 if last action is done to fast, maybe you can use the sleep option? sleep(5000) it's in millisec so now you wait 5 secs Link to comment Share on other sites More sharing options...
FeFFe Posted August 28, 2007 Author Share Posted August 28, 2007 (edited) I tried a similair thing called WinWaitNotActive and I put in some seconds there, it worked fine, but if i'm gonna use this scrip on another computer, that is slower, it won't work cuz the installation takes longer time Edited August 28, 2007 by FeFFe Link to comment Share on other sites More sharing options...
Monamo Posted August 28, 2007 Share Posted August 28, 2007 You'd be better off using the "optional text" parameters for WinWaitActive - for a usage example, look for the "WinZip Installation" entry in the help file. - MoChr(77)& Chr(97)& Chr(100)& Chr(101)& Chr(32)& Chr(121)& Chr(97)& Chr(32)& Chr(108)& Chr(111)& Chr(111)& Chr(107)-------I've told you 100,000 times not to exaggerate!-------Don't make me hit you with my cigarette hand...-------My scripts:Random Episode Selector, Keyboard MouseMover, CopyPath v2.1, SmartRename for XP,Window Tracer[sup]New![/sup] 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