|
rob Novice
Joined: 12 Oct 2000 Posts: 30 Location: Australia
|
Posted: Mon Jun 14, 2004 3:26 am
triggering on a pattern or variable |
Is there a way to make zmud expand a pattern or a variable when
making a trigger
i.e if i have an alias "add word name"
and I wish to make a trigger like #TR {word} {...} and want the word
to be all uppercase no matter how i type it when using the alias how can I do it?
I have tried #TR {%upper(%1)} and
#Var Temp %upper(%1) and #TR {@Temp} but both dont expand and just use them verbatim is there a way to make zmud do this?
cheers Rob |
|
|
|
LightBulb MASTER
Joined: 28 Nov 2000 Posts: 4817 Location: USA
|
Posted: Mon Jun 14, 2004 3:41 am |
#AL maketrigger {#EXEC {#TR {%upper(%1)} {-%2}}}
|
|
|
|
rob Novice
Joined: 12 Oct 2000 Posts: 30 Location: Australia
|
Posted: Mon Jun 14, 2004 3:51 am |
cheers works perfect now
|
|
|
|
|
|