|
Create Exe |
Top Previous Next |
|
If you have the Professional edition installed this option will create a standalone executable version of the highlighted script. Some functions require runtime library files which must be in the same folder as your .exe. See "Runtime Libraries" below for details.
Output file: The compiler will prompt for an output exe file. By default the exe will have the same name and path as the script being compiled. You can browse for a different location using the browse button.
Icon: As an option a custom icon can be embedded into the compiled executable by selecting an icon (.ico) file. This is not supported in Windows 95/98. To compile a custom icon into the executable use Windows NT, 2000, XP or above.
Options:
Include Parameters: Optionally you can also specify a command line to include in the compiled executable. This means command line parameters can be "hard-coded" into the executable so that they don't have to be specified on the command line when the executable is run. Any of the command line options that can be passed into scripts can be included, including parameters to be passed into scripts. E.g. /HIDE, /NOSYSTRAY, /LOGFILE= and script parameters can be hard coded into the executable. See Command Line Options.
The title of the compiled executable can be modified by setting the APP_TITLE variable in the script or pass it in Include Parameters. The default is "Macro Scheduler". E.g.: Let>APP_TITLE=My Program
The executable file created by the compiler can be run on any machine without having to have Macro Scheduler installed, and it will run the script.
Compiling from the command line: To compile on the command line run msrt.exe as follows:
msrt.exe -COMPILE source.scp target.exe [-QUIET] [-DEL] [-OPTS:options] [-ICON:iconfile]
Optional switches are shown in square brackets and are as follows:
-QUIET will prevent compiler error/success messages being displayed -DEL deletes the source script file -OPTS: then a command line to compile into the executable, e.g.: -OPTS:-NOSYSTRAY /parm1=fred -ICON: then a .ico file to change the default program icon
To compile a console app use msrt_console.exe instead of msrt.exe.
Runtime Libraries
If your script contains any of the text capture functions (GetTextAtPos, GetTextInRect, GetWindowsTextEx, GetTextPos, WaitScreenText) you will need to supply the following files with your .exe:
GetWord.dll GetWordNT.dll GetWord_x64.dll GetWordNT_x64.dll GetWord_x64.exe License.dat
These files can be found in the Macro Scheduler program folder. Copy the above files to the same location as your .exe. |