Help Please. What is going on here?

Hints, tips and tricks for newbies

Moderators: Dorian (MJT support), JRL

Post Reply
eDad
Newbie
Posts: 2
Joined: Thu Mar 17, 2005 9:36 pm

Help Please. What is going on here?

Post by eDad » Thu Mar 17, 2005 9:42 pm

This script:

Let>WW_TIMEOUT=5
Exe>notepad.exe
WindowWaitOpen>Untitled - Notepad


immediately pops up the dialog saying Specified Window "Untitled - Notepad" Not Present

Can someone tell me why?

Me_again
Automation Wizard
Posts: 1101
Joined: Fri Jan 07, 2005 5:55 pm
Location: Somewhere else on the planet

Post by Me_again » Thu Mar 17, 2005 11:54 pm

Adding an asterisk on the end of the window name should resolve that:

WindowWaitOpen>Untitled - Notepad*

I can't tell you exactly why, but it has worked for me in a number of situations. I can only assume there are undisplayed characters at the end of the window name string.

User avatar
support
Automation Wizard
Posts: 1450
Joined: Sat Oct 19, 2002 4:38 pm
Location: London
Contact:

Post by support » Thu Mar 17, 2005 11:59 pm

Should be :

WaitWindowOpen>Untitled - Notepad

You had written WindowWaitOpen which is not a command, and would have been interpreted as WindowAction as that uses WIN as the abbreviation.
MJT Net Support
[email protected]

eDad
Newbie
Posts: 2
Joined: Thu Mar 17, 2005 9:36 pm

Post by eDad » Fri Mar 18, 2005 1:35 am

Doh :shock:

I guess the fact that it executed a command is why I never even thought about a typo.

Thanks

Me_again
Automation Wizard
Posts: 1101
Joined: Fri Jan 07, 2005 5:55 pm
Location: Somewhere else on the planet

Post by Me_again » Fri Mar 18, 2005 2:52 am

Not only that but with the asterisk at the end there is no error message :D

Accepting any string starting with a command abbreviation as a valid command is pretty surprising behavior to anyone who has learned something like C :shock:

Post Reply
Sign up to our newsletter for free automation tips, tricks & discounts