This is the script to be compiled to console app:
Code: Select all
// COMPILE_OPTS|C:\Users\Khoa\Desktop\x\x.exe||CONSOLE=1|INCLUDES=1|
//Set IGNORESPACES to 1 to force script interpreter to ignore spaces.
//If using IGNORESPACES quote strings in {" ... "}
//Let>IGNORESPACES=1
SOWriteLn>Hello World!
MDL>Hello World!
That is, I see "Hello World!" on the console where the app is started, and a modal dialog "Hello World!".
When I tried to compile with the command line msrt.exe program:
Code: Select all
msrt.exe -COMPILE %SRC% %EXE%
Where SRC and EXE are set to full path of x.scp and x.exe files.
This problem does not exist in Macro Scheduler 11.
Perhaps msrt.exe in Macro Scheduler 12 doesn't heed the request in the header comment line of x.scp to compile console app, and compiled the script to a non-console app, thus rendering SOWriteLn> a no-op?
If this is the case, is there a command line switch to force msrt.exe to compile a console app?
Thanks