greenbeauty Posted February 3, 2010 Posted February 3, 2010 (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 hopefully you have an answer for me... Thanks. Edited February 3, 2010 by greenbeauty
somdcomputerguy Posted February 3, 2010 Posted February 3, 2010 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.
greenbeauty Posted February 3, 2010 Author Posted February 3, 2010 Uhmm it's a typo made in this reply. The actual script is this typo not present 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!!
somdcomputerguy Posted February 3, 2010 Posted February 3, 2010 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.
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