Revision: 8592
Author: marcelofoxes
Date: quarta-feira, 22 de maio de 2013 06:02:27
Message:
* implemented arguments in macro calls (not tested with automacros "call", don't know if it will work)
* arguments parser now supports quoted arguments
----
Modified : /plugins/macro/trunk/Macro/Script.pm
Modified : /plugins/macro/trunk/macro.pl
These macros:
Code: Select all
macro callmemaybe {
# call this macro two times with these arguments
call meMaybe 2 --Hey "I just met you" "And" "this is crazy"
}
macro meMaybe {
[
$i++
log This is the $i º time i'll sing for you
log $.param1
log $.param2
log $.param3
log $.param4
]
}
Code: Select all
macro callmemaybe
[macro log] This is the 1 º time i'll sing for you
[macro log] Hey
[macro log] I just met you
[macro log] And
[macro log] this is crazy
[macro log] This is the 2 º time i'll sing for you
[macro log] Hey
[macro log] I just met you
[macro log] And
[macro log] this is crazy