First, it seems strange that the "Executable" variable is the same as the "COMPILEFILE" token... shouldn't it be the same as the "EXECUTABLE" token?PB_TOOL_Executable - same as the %COMPILEFILE token for the command-line
Second, when I test "PB_TOOL_Executable" it doesn't seem to return the same thing as "%COMPILEFILE" or "%EXECUTABLE", but something else!
Test with this small tool code:
Code: Select all
; Build this tool, trigger it "Before Compile/Run", pass %COMPILEFILE and %EXECUTABLE arguments
; Then try running this program from the IDE and see what it outputs
If (ProgramParameter(0))
Output.s = "%COMPILEFILE = " + ProgramParameter(0)
Output + #LF$ + "%EXECUTABLE = " + ProgramParameter(1)
Output + #LF$ + "PB_TOOL_CompileFile = " + GetEnvironmentVariable("PB_TOOL_CompileFile") ; does not exist
Output + #LF$ + "PB_TOOL_Executable = " + GetEnvironmentVariable("PB_TOOL_Executable")
MessageRequester("", Output)
EndIf