Jump to content

Help a newbie out!


FeFFe
 Share

Recommended Posts

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

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
Link to comment
Share on other sites

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

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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...