PDA

View Full Version : Wait revisited



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.

worldrave
April 5th, 2003, 08:13 PM
That will do that sometimes. All you have to do is do a F8 (Reset States), that fixes that problem.
Of course your will have to add one more command that will send a "N" to that window for when it asks "Changes made. . .would you like to save. . . (No)" :D

PS- If it doesn't work still after doing that, PM me with your email address, and i'll send you the file containing the multigroup i made/tested which works fine.

PS2- Why wouldn't you rather use the OSD feature, it overlays well even over video footage window. If your a beginner with that, I can modify the multigroup i made ya to use that instead. If ya use XP, i'll use the xp features (translucent) and whatever color you want for text and font size.

BobDole
April 5th, 2003, 09:16 PM
F8 was the solution! Thanks much.

That seems more like a bug than a feature.