Jump to content
Sign in to follow this  
FeFFe

Help a newbie out!

Recommended Posts

FeFFe

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.

Share this post


Link to post
Share on other sites
andyvl

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

Share this post


Link to post
Share on other sites
FeFFe

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

Share this post


Link to post
Share on other sites
Monamo

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]

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  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.