Command line compile of with msrt.exe changed?

Technical support and scripting issues

Moderators: JRL, Dorian (MJT support)

Post Reply
KTT
Newbie
Posts: 13
Joined: Thu Jul 02, 2009 10:26 pm

Command line compile of with msrt.exe changed?

Post by KTT » Wed Jun 16, 2010 3:29 pm

I'm running Macro Scheduler Pro 12.0.2 on Windows 7 x64.

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!
Everything works as expected when compiled to exe from Script Editor.
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.
Now, the console output is never emitted, only the modal dialog "Hello World!" is seen.

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

User avatar
Marcus Tettmar
Site Admin
Posts: 7395
Joined: Thu Sep 19, 2002 3:00 pm
Location: Dorset, UK
Contact:

Post by Marcus Tettmar » Wed Jun 16, 2010 3:35 pm

You need to compile with the console compiler instead:

msrt_console.exe -COMPILE %SRC% %EXE%
Marcus Tettmar
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar

Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?

KTT
Newbie
Posts: 13
Joined: Thu Jul 02, 2009 10:26 pm

Post by KTT » Wed Jun 16, 2010 9:39 pm

mtettmar wrote:You need to compile with the console compiler instead:

msrt_console.exe -COMPILE %SRC% %EXE%
So that's what that msrt_console.exe file was for. :oops:

Thank you very much, Marcus.

Post Reply
Sign up to our newsletter for free automation tips, tricks & discounts