Runing a macro in a template

Post any comments, suggestions, annoyances or ideas for future releases here. Please do not post bug reports or questions here.
Post Reply
dmaon
Posts: 14
Joined: Wed Nov 29, 2006 2:17 pm

Runing a macro in a template

Post by dmaon » Wed Nov 29, 2006 2:29 pm

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.

jussij
Site Admin
Posts: 2449
Joined: Fri Aug 13, 2004 5:10 pm

Post by jussij » Thu Nov 30, 2006 10:18 pm

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

jussij
Site Admin
Posts: 2449
Joined: Fri Aug 13, 2004 5:10 pm

Post by jussij » Mon Jan 22, 2007 10:12 pm

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

Post Reply
kuchnie warszawa opinie

Who is online

Users browsing this forum: No registered users and 2 guests