sleepy Posted January 18, 2007 Posted January 18, 2007 I have a simple do loop and within the loop I need it to run commands one after the other. I have the loop set now to 3 and I expect each runwait to be called one after the other. I am however seing that each runwait is called 3 times then the next one. What am I missing here. ; Set the counter $count = 1 ; Execute the loop "until" the counter is greater than 5 Do ; Print the count ;MsgBox(0, "COUNT NUMBER", "Count is:" & $count, 3) RunWait("E:\share-main\Autoit\RGDK\reboot.au3.exe", "", @SW_MINIMIZE) RunWait("E:\share-main\Autoit\RGDK\telstar-getuptime.au3.exe", "", @SW_MINIMIZE) RunWait("E:\share-main\Autoit\RGDK\file-check.au3.exe", "", @SW_MINIMIZE) ; Increase the count by one $count = $count + 1 Until $count > 3
herewasplato Posted January 18, 2007 Posted January 18, 2007 ...I am however seing that each runwait is called 3 times then the next one...I do not see that behavior with this simple test script:For $i = 1 To 3 RunWait("notepad") RunWait("calc") NextDo you? (Manually kill each window.) [size="1"][font="Arial"].[u].[/u][/font][/size]
sleepy Posted January 18, 2007 Author Posted January 18, 2007 I do not see that behavior with this simple test script:For $i = 1 To 3 RunWait("notepad") RunWait("calc") NextDo you? (Manually kill each window.) Well thanks for the direction, but still have the same problem, my three scripts do close all windows and then exits.
herewasplato Posted January 18, 2007 Posted January 18, 2007 Well thanks for the direction, but still have the same problem, my three scripts do close all windows and then exits.Then I take it that notepad and calc behaved as expected for you, but not your script that calls 3 other scripts via RunWait? Sorry, I don't know why that would be - perhaps you could post some small scripts that would allow us to reproduce the problem. [size="1"][font="Arial"].[u].[/u][/font][/size]
sleepy Posted January 18, 2007 Author Posted January 18, 2007 Then I take it that notepad and calc behaved as expected for you, but not your script that calls 3 other scripts via RunWait? Sorry, I don't know why that would be - perhaps you could post some small scripts that would allow us to reproduce the problem.Thanks much anyway
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