|
dazed-n-confused Novice
Joined: 14 Jan 2004 Posts: 31
|
Posted: Wed Jan 14, 2004 10:14 am
variables to ailiases |
Dose anyone have a clue how to get a variable that is redefined from several different triggers to point to the ailias that needs to be done? I keep the variable in the value of a button and a macro key as well. I cant seem to get past the variable being a single command, like sip potion. If I try to force the variable to point to one of my ailiases it just acts like nothing happened. Someone please help so that I can get some sleep again.
|
|
|
|
Danlo Magician
Joined: 28 Nov 2003 Posts: 313 Location: Australia
|
Posted: Wed Jan 14, 2004 12:41 pm |
You can put several commands in a list variable, then do a Forall:
#forall @variable {%i}
Or, you could put the name of an alias in the variable, then execute the variable: [@variable] |
|
|
|
LightBulb MASTER
Joined: 28 Nov 2000 Posts: 4817 Location: USA
|
Posted: Wed Jan 14, 2004 5:52 pm |
Use the %exec function.
|
|
|
|
dazed-n-confused Novice
Joined: 14 Jan 2004 Posts: 31
|
Posted: Thu Jan 15, 2004 8:25 pm |
Those are some good ideas, and get me thinking. I did find the problem sort of accidently. MY code was like this the trigger "Hi there" sets var = ailias %null. It was the %null messin everything up. Deleted that and it seems to work fine.
|
|
|
|
|
|