[MacEd] Calling a macro from other

Biju G C bijumaillist at yahoo.com
Thu Dec 18 19:28:03 EST 2003


you can invoke a macro from other by passing 
Macro id as argument to MacroMenu.oncommand()


Example create following two Macros

create Macro 30 as 
Name : "CalledMacro" 
script : 
//===  Macro 30 : CalledMacro =====

alert('this is Macro 30');

//=== Macro 30  : CalledMacro ends =====



now create another macro
Name : "Calling Macro"
script : 
//=== Calling Macro  =====

alert('this is the Calling Macro');

MacroMenu.oncommand(30);   //invokes CalledMacro 

alert('back again in Calling Macro');

//=== Calling Macro ends =====



________________________________________________________________________
Yahoo! Messenger - Communicate instantly..."Ping" 
your friends today! Download Messenger Now 
http://uk.messenger.yahoo.com/download/index.html


More information about the MacroEditor mailing list