Jump to content

Recommended Posts

Posted (edited)

Hello

I'm going to install an application on some serveral clients..

I made an autoit script and everything is working on 50% of the computers in my company.

On the other computers the script isn't working because there is an additional screen, so I used the IF command.

this is my script for all the computers:

RunAs ( "administrator", "xx", "xx, "path\connector.exe" )

If WinWaitActive("Browse for Folder", "Geef een locatie op", 5) Then Send("{enter}")  

    
WinWaitActive("CaseWare Connector 2009 - InstallShield Wizard", "Welkom bij de InstallShield Wizard")
Send("!v")

When I use "0" instead of "5", then the script is not working for the pc where the additional screen is present.

When I run this script at another computer where the screen is not present, then the script work fine!

I can't resolve this problem :D

hopefully you have an answer for me...

Thanks.

Edited by greenbeauty
Posted

There is a typo in the RunAs line, there is a missing " in the password field. I don't know if this will resolve the issue, another suggestion I will make is leave the WinWaitActive timeout value of 5 if it works correctly in that case.

- Bruce /*somdcomputerguy */  If you change the way you look at things, the things you look at change.

Posted

Uhmm it's a typo made in this reply.

The actual script is this typo not present :D

Ok.. so the "5" is the timeout value??? am I right?

The weird thing is, that when I use 0, it works for the other pc's... but then the other's won't work!!

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
  • Recently Browsing   0 members

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