Was having trouble opening a file for Readln, so I decided to try a simple snippet:
ReadLn>C:\temp\validpings.txt,1,strLine
Show>Hi,strLine
… and this gives me the following error dialog:
"Error in: test
Line: 5 - Cannot Show Dialog HI. Not Found"
I tried a scorched-earth reinstall (deleting directory / registry key first) - same result. Tried rebooting - same result. Starting to think my Readln issue is related to an install problem, but not sure where to go from here. Appreciate ideas. -KLM
Can't open a dialog box
Moderators: Dorian (MJT support), JRL
- Dorian (MJT support)
- Automation Wizard
- Posts: 1390
- Joined: Sun Nov 03, 2002 3:19 am
- Contact:
Re: Can't open a dialog box
Show displays a dialog created with a Dialog block
What you're looking for is something like :
or
What you're looking for is something like :
Code: Select all
ReadLn>C:\temp\validpings.txt,1,strLine
Message>Hi,%strLine%
Code: Select all
ReadLn>C:\temp\validpings.txt,1,strLine
MessageModal>Hi,%strLine%
Yes, we have a Custom Scripting Service. Message me or go here
Re: Can't open a dialog box
Awesome, thanks, yes.
Why does the variable strline not need % in the ReadLn, but needs them in the Message?
Why does the variable strline not need % in the ReadLn, but needs them in the Message?
- Grovkillen
- Automation Wizard
- Posts: 1131
- Joined: Fri Aug 10, 2012 2:38 pm
- Location: Bräcke, Sweden
- Contact:
Re: Can't open a dialog box
You're assigning the variable in the first command and referring the variable in the second command.
- Grovkillen
- Automation Wizard
- Posts: 1131
- Joined: Fri Aug 10, 2012 2:38 pm
- Location: Bräcke, Sweden
- Contact:
Re: Can't open a dialog box
See this example:
This will show you that the ReadLn command is assigning the variable testLine by referring to the variable strLine. Thus the message text will not work... I think, haven't tested it.
Code: Select all
Let>strLine=testLine
ReadLn>C:\temp\validpings.txt,1,%strLine%
MessageModal>Hi,%strLine%
- Dorian (MJT support)
- Automation Wizard
- Posts: 1390
- Joined: Sun Nov 03, 2002 3:19 am
- Contact:
Re: Can't open a dialog box
This article in the KB will explain that : Using Variables and When to use Percent Symbols (%variable%)
Yes, we have a Custom Scripting Service. Message me or go here