Page 1 of 1

Runing a macro in a template

Posted: Wed Nov 29, 2006 2:29 pm
by dmaon
It would be very usefull if I could enter a macro name in the definition of a template. This should enable me more sofisticated templates.

Posted: Thu Nov 30, 2006 10:18 pm
by jussij
It would be very usefull if I could enter a macro name in the definition of a template.
That is a nice idea :) I'll add this to the Zeus todo list.

Cheers Jussi

Posted: Mon Jan 22, 2007 10:12 pm
by jussij
It would be very usefull if I could enter a macro name in the definition of a template.
The latest Zeus for Windows Version 3.96 implements this new feature :)

Refer to this link for more details: http://www.zeusedit.com/forum/viewtopic.php?t=1035

It is now possible to run a macro script using the macro_tag function using the following $TAG syntax:

Code: Select all

$MacroExcute<macro_file name>
or this shorthand version:

Code: Select all

$ME<macro_file name>
for example:

Code: Select all

output = macro_tag("$MacroExcute<c:/program files/zeus/zscript/macro.lua>")
So for example in your template definition just add the following line of code:

Code: Select all

$ME<macro_file name>
Cheers Jussi