IfWindowOpen

Technical support and scripting issues

Moderators: Dorian (MJT support), JRL

Post Reply
Hardware_Tester
Pro Scripter
Posts: 58
Joined: Mon Jun 27, 2005 7:03 am
Location: Switzerland

IfWindowOpen

Post by Hardware_Tester » Wed Nov 16, 2005 12:53 pm

I wrote a code where this line is defined:


IfWindowOpen>Test configuration time,configtime


The jump is to this label:


Label>configtime
Messagemodal>configtime
goto>popups


The code before is simple "Let" for variables and a Label named "popups"

When I execute this program I get the Error that the label "configtime" could not be found. The Label is near to other labels which work.

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

Post by support » Wed Nov 16, 2005 1:08 pm

This means it can't find the label. Perhaps it is spelt different or has a space before or after it. Hard to know without seeing your full unedited script. It if looks right then check for trailing blanks on the IfWindowOpen line and the Label line.
MJT Net Support
[email protected]

Hardware_Tester
Pro Scripter
Posts: 58
Joined: Mon Jun 27, 2005 7:03 am
Location: Switzerland

Post by Hardware_Tester » Wed Nov 16, 2005 1:40 pm

Thanks, it was really the trailing space.

I can't understand what a trailing space is. Is it befor or after a command, or between a command and a parameter?

I use spaces to indent loops and ifs, because the tab goes too far.

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

Post by support » Wed Nov 16, 2005 1:49 pm

Trailing means "coming after". So it's a space at the end of the line.
MJT Net Support
[email protected]

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