BobDole
April 5th, 2003, 04:14 PM
I've taken a look around the boards and it seems that a few people are having issues with the Window Wait command not working properly and I can't seem to get a definitive solution. Hopefully I'm doing something wrong but the behavior seems very counter-intuitive.
I have created the following Multigroup command based on the 'getting started' example to test:
(Multigroup) Notepad switch; state = (1,1)
-(Cmd) OpenNotepad - OS - Execute - %Windows%notepad.exe; state = (2,1)
-(Cmd) Wait1 - Window - Wait - 800ms; state = (2,1)
-(Cmd) TypeHello - Keyboard - "hello" into notepad; state = (2,1)
-(Cmd) TypeBye - Keyboard - "bye" into notepad; state = (2,2)
-(Cmd) Wait2 - Window - Wait - 800ms; state = (2,2)
-(Cmd) CloseNotepad - Window - Close notepad; state = (2,2)
-(EvStr) remote_code
What happens is the order is the opposite of what would be expected. It prints "bye" after notepad opens and prints "hello" in the 2nd half when it should be closing.
Any idea why this is the case?
Thanks.
I have created the following Multigroup command based on the 'getting started' example to test:
(Multigroup) Notepad switch; state = (1,1)
-(Cmd) OpenNotepad - OS - Execute - %Windows%notepad.exe; state = (2,1)
-(Cmd) Wait1 - Window - Wait - 800ms; state = (2,1)
-(Cmd) TypeHello - Keyboard - "hello" into notepad; state = (2,1)
-(Cmd) TypeBye - Keyboard - "bye" into notepad; state = (2,2)
-(Cmd) Wait2 - Window - Wait - 800ms; state = (2,2)
-(Cmd) CloseNotepad - Window - Close notepad; state = (2,2)
-(EvStr) remote_code
What happens is the order is the opposite of what would be expected. It prints "bye" after notepad opens and prints "hello" in the 2nd half when it should be closing.
Any idea why this is the case?
Thanks.