• Support
  • Articles
  • Resources
  • Products

LogMeTT script asks for variable inputs

Moderator: boris

3 postsPage 1 of 1

Yann
Newbie

Posts:
2
Joined: Wed Mar 09, 2016 8:42 am
by Yann » Wed Mar 09, 2016 8:50 am
Hello,

I have written a hierarchical script where some variables and functions are defined in several parts of the "tree".
When I run the script using the "Run branch" button, it asks me for variables inputs: "Enter value for variable $[1]", "Enter value for variable $[2]", ... up to "Enter value for variable $[7]".
I just have to press "OK" or "Cancel" and, then, the script runs fine.
What's the meaning of those variables inputs and how to get rid of this, as useful variable are already defined inside the hierarchical tree ?

Thanks for your help,

Yann
boris
Moderator, LogMeTT and TTLEditor developer

Posts:
1593
Joined: Sat Jan 08, 2005 2:52 pm
by boris » Wed Mar 09, 2016 8:34 pm
Hi Yann,

LogMeTT Keywords $[1]..$[9] should only be used if macro needs to be executed with command line utility RunLTT. They allow to pass variables to the script the same way as par1...par9 arguments do it for ttpmacro.exe. If argument value was not provided, which will be the case when executing such script from LogMeTT, the window will popup asking to enter the missing value manually.

See RunLTT page for more details and an example code http://logmett.com/runltt
Thanks.
Best regards,
Boris
Yann
Newbie

Posts:
2
Joined: Wed Mar 09, 2016 8:42 am
by Yann » Thu Mar 10, 2016 8:43 am
Thanks for your help Boris. There was some "hidden" input variables like '$[1]" in my script that were no more used. I have removed them an now it works fine ! :wink:

Best regards,

Yann
Display posts from previous:
Sort by:

3 postsPage 1 of 1

Users browsing this forum: No registered users
cron