It's because of the quotation marks. Because one of your parameters includes quotation marks, it's screwing with the entire string. Here's what I mean:
You have this parameter:
Code: Select all
"["#ADDONSPATH#GetUnderColor\GetUnderColor.exe" "Swatch1" "GetUnderColor" "ColorTarget" "#IncFile#" "0"]"
Unfortunately, even though the entire thing is encased in quotation marks, the quotation marks inside are making it think that the string has ended prematurely. Instead of one string, it think you have several that look like this:
Code: Select all
"["
#ADDONSPATH#GetUnderColor\GetUnderColor.exe
" "
Swatch1
" "
GetUnderColor
" "
ColorTarget
" "
#IncFile#
" "
0
"]"
The only way around this right now is to separate all of the parameters that you want to store in the variable (ie: everything in quotation marks). Also, because the initial launch of the addon requires that you have quotation marks around the program path, as do the parameters, you will need to change how the Bang variable is being used. I presume that somewhere you have an action that looks something like this:
Instead, you're going to want to set #Bang# to just #ADDONSPATH#GetUnderColor\GetUnderColor.exe and then use it like this:
Code: Select all
SomethingAction=!Execute ["#Bang#" "#Param1" "#Param2#" "#Param3#" "#Param4#" "#Param5#"]
So each of the variables is encased in quotation marks without needing to include the marks within the variables themselves. Unfortunately, you're going to run into problems if you change the program you are running and it requires fewer parameters than that one.