Macro Syntax


Alphane

 

Posted

/macro LDR “/tell $target, Is there any space on your team and if so who is you team leader if you don’t mind me asking?”

tried this macro with and without quotes but doesn't do what I expected can anyone correct me?


 

Posted

You don't need the slash at the tell command.

Just /macro LDR tell $target, blah

All the slash commands go without the / in macros, the macro itself is the slash command.


@Nanba, Union

 

Posted

Thank you muchly that works just fine now. That will save my poor fingers much work while LFT. Cheers again.


 

Posted

Nanba yup but you do need the " because of the command lines spaces!

/macro ldr "tell $target, blah"


Nuff Said...
Coolio Wolfus leader of Coolio�s Crusaders on Union.
Tekna Logik leader of Tekna�s Tormentors on Defiant.
AE arc 402506, 'The Rise and Demise or Otherwise of Tekna Logik...'.

 

Posted

Seems to work fine without quotes.


 

Posted

Yup but, and I'll quote you on this...
[ QUOTE ]
Seems to work fine without quotes.

[/ QUOTE ]
It becomes more of an issue on extended multiple command strings $$ variety with tells and power commands etc.


Nuff Said...
Coolio Wolfus leader of Coolio�s Crusaders on Union.
Tekna Logik leader of Tekna�s Tormentors on Defiant.
AE arc 402506, 'The Rise and Demise or Otherwise of Tekna Logik...'.

 

Posted

This is right. With only a single command, the " aren't necessary. But I played around with macros a bit, also chaining commands with the $$ function, and there the " should definitly be used. However, it doesn't seem to be a must. The following works fine:

/macro tpON tell MyName, Teleport ON $$ bind LButton “powexec_name Teleport”

The tell and bind commands do work without " even when chained with $$, but the powexec part seems to need one. I will test that later.


@Nanba, Union