Variables in External Basic Script Path

Discuss RoboTask here
Post Reply
verona
Posts: 24
Joined: Wed Jun 25, 2008 4:16 pm

Variables in External Basic Script Path

Post by verona »

I'd like to insert an external script into my task, but have run into a problem with using a variable name in the path. I'd like to have the path set to "C:\Users\{UserName}\Documents\script.bas" but it doesn't seem to be interpreting {UserName} as a variable and gives an error saying that the macro/module doesn't exist. (It does work if I manually specify my user name.)
I assume this should be supported, since there is a {V} button on the Basic Script dialog box and there's no other textbox in the window that it could apply to. (I'm using version 3.2.1)
verona
Posts: 24
Joined: Wed Jun 25, 2008 4:16 pm

Variables in External Basic Script Path

Post by verona »

Will this be fixed in the next update?
Oleg
Site Admin
Posts: 3219
Joined: Thu Jan 01, 1970 1:00 am
Contact:

Variables in External Basic Script Path

Post by Oleg »

You may specify the the name of script without full path at all.
Do the following:
1. Set the desired folder in plugin settings. By default it is
"C:\Documents and Settings\<UserName>\Local Settings\Application Data\RoboTask\BasicScripts" for XP
and
"C:\Users\<username>\AppData\Local\RoboTask\BasicScrip ts" for Vista
2. Specify the script name without path as external script, like this:
Script1.bas
MyCalcScript.bas
etc.
Will this be fixed in the next update?
Thank you for the report. Of course, we'll fix this in future.
Post Reply