Page 1 of 1

Toolbar-command not evaluating correctly...

Posted: 27 Feb 2016 11:07
by MBaas
I like the idea of having a custom toolbar-btn that has several choices of commands on right-click. And I was able to set this up for several calls, but I'm failing with RapidEE.
The script-line for right-click is:

Code: Select all

"RapidEE|<xyscript>\RapidEEx64\rapidee.exe"  run "<xyscript>\RapidEEx64\rapidee.exe"
The Icon does not show, and when I select that item I get an error:
Das System kann die angegebene Datei nicht finden.

File: <xyscript>\RapidEEx64\rapidee.exe

Parameters:
run
<xyscript>\RapidEEx64\rapidee.exe
The file does exist there, and when I enter <xyscript>\RapidEEx64\rapidee.exe into the address-bar, XY also goes there.

So why is the command not executing?

BTW, it works when I replace the var with the actual path:

Code: Select all

"RapidEE|C:\Users\mbaas\AppData\Roaming\XYplorer\Scripts\RapidEEx64\rapidee.exe"  run "C:\Users\mbaas\AppData\Roaming\XYplorer\Scripts\RapidEEx64\rapidee.exe"

Re: Toolbar-command not evaluating correctly...

Posted: 27 Feb 2016 11:20
by highend
<xyscript> doesn't belong to XY's variables...

It's <xyscripts>

Please read the docs:

Code: Select all

::rtfm "idh_variables.htm";

Re: Toolbar-command not evaluating correctly...

Posted: 27 Feb 2016 11:32
by MBaas
Oh shit - I actually read the hlp, but somehow missed that little (now, where is that eys with tears icon?).
Thanks! :appl: