Sign in to follow this  
Followers 0
greenbeauty

If command winwaitactive

4 posts in this topic

#1 ·  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

Share this post


Link to post
Share on other sites



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.

Share this post


Link to post
Share on other sites

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!!

Share this post


Link to post
Share on other sites

Ok about the typo. Yes, the value 5 is the timeout, in seconds, so apparently just a little more waiting is needed for the function to operate successfully.

Function WinWaitActive


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

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  
Followers 0