2. Save it e.g. as
3. Compile it
4. Run it using any of the below expressions I tried, it shows always an empty result back, thus "", from Query( MacroCmdLine ).
g32.exe -efoobar.mac 1 2
g32.exe -e"foobar.mac 1 2"
g32.exe -e"foobar.mac" "1 2"
g32.exe -e"ddd1.mac" "1" "2"
5. Expected was that is should first show "1 2", then after that "2".
6. Note: Running the same TSE macro INSIDE TSE, e.g.
menu > Macro > ExecMacro >
ddd1.mac 1 2
shows first "1 2", then "2", as expected.
7. See also the inline screenshot.
8. E.g. So the parameters should be able to be passed from the TSE command line as parameters to the foobar macro, and not seen as filenames. Maybe supplying a separate parameter, like
g32.exe -efoobar.mac -p 1 -p 2
or
g32.exe -efoobar.mac -p 1 2
or something similar.
Thanks
with friendly greetings
Knud van Eeden