Page 1 of 1

Start script from Address Bar

Posted: 04 Nov 2011 17:42
by PeterH
Is it possible to start a script by entering it's name (with some prefix) into the Address Bar? (Found nothing in Help...)

As, for example, you can do this for DOS-Cmds with !cmd, it should be possible even more for XY-scripts, I think.

If it's not, this turns into a wish :roll:

Re: Start script from Address Bar

Posted: 04 Nov 2011 17:50
by Stefan
There is "load"

Default looking into <xyscripts> and no extension needed.

Just use

load myScript;
or
::load myScript;

if there is XY\data\scripts\myScript.xys



Otherwise use with path
load x:\test\script;
load subfolder\script;
load ..\test\script;

Re: Start script from Address Bar

Posted: 04 Nov 2011 18:26
by PeterH
Hello Mr. Scripting :D

You are right: works fine! Thanks a lot, Stefan!
So: no wish needed!

...while Don may still consider why it's easier to call DOS than calling XY-script.
But really no problem...