mIRC Home    About    Download    Register    News    Help

Print Thread
#98790 26/09/04 04:13 PM
Joined: Feb 2003
Posts: 3,432
S
sparta Offline OP
Hoopy frood
OP Offline
Hoopy frood
S
Joined: Feb 2003
Posts: 3,432
if i have a alias lest say its called alias1, then alias1 does this command: alias1 echo -a Alias1
now i want to get that value i have set as alias1 "the red part".. any command that can do that? in a simulare way as you read a %var ..

never mind, solved it

Last edited by sparta; 26/09/04 04:26 PM.

if ($me != tired) { return } | else { echo -a Get a pot of coffee now $+($me,.) }
#98791 27/09/04 02:31 PM
Joined: Feb 2003
Posts: 3,432
S
sparta Offline OP
Hoopy frood
OP Offline
Hoopy frood
S
Joined: Feb 2003
Posts: 3,432
New question about alias..

alias echotest return echo hello to you!
alias testing $echotest

if i type /testing that will return a echo that say "hello to you!"

but how can i return an alias that arent added with "return"

or how can i make a %var of this alias?
alias tesing echo hello to you!

i want to grab the "echo hello to you!" part, is the only way to trigger the alias with /testing .. or is it another identifyer that i can use? the return arent added to the alias i want to grab.. :tongue:
----------------------- EDIT ----------------------
one guy told me to use: $isid .. but i must say i dont understand s*t of the hel file.. smirk
$isid
Returns $true if an alias was called as an identifier, otherwise $false.

and im not shure i can use that.. the thing i looking for should return an alias without trigger it..
command /what_to_happen <<-- thats what i want to see in a %var.. :tongue:

Last edited by sparta; 27/09/04 02:48 PM.

if ($me != tired) { return } | else { echo -a Get a pot of coffee now $+($me,.) }
#98792 27/09/04 03:45 PM
Joined: Dec 2002
Posts: 2,962
S
Hoopy frood
Offline
Hoopy frood
S
Joined: Dec 2002
Posts: 2,962
For single-line aliases you can use $isalias(<aliasname>).alias to return the code it will run. There's no simple method to get the code used by multi-line aliases.


Spelling mistakes, grammatical errors, and stupid comments are intentional.
#98793 27/09/04 03:54 PM
Joined: Feb 2003
Posts: 3,432
S
sparta Offline OP
Hoopy frood
OP Offline
Hoopy frood
S
Joined: Feb 2003
Posts: 3,432
thnx.. thats what i looked for smile


if ($me != tired) { return } | else { echo -a Get a pot of coffee now $+($me,.) }

Link Copied to Clipboard