Notice: Any messages purporting to come from this site telling you that your password has expired, or that you need to verify your details, confirm your email, resolve issues, making threats, or asking for money, are
spam. We do not email users with any such messages. If you have lost your password you can obtain a new one by using the
password reset link.
Due to spam on this forum, all posts now need moderator approval.
Entire forum
➜ MUSHclient
➜ VBscript
➜ Can you call an alias from a script ?
Can you call an alias from a script ?
|
It is now over 60 days since the last post. This thread is closed.
Refresh page
Posted by
| Fjodor
Sweden (13 posts) Bio
|
Date
| Fri 30 Nov 2001 04:59 AM (UTC) |
Message
| Is it possible to execute an alias from a script ?
| Top |
|
Posted by
| Elric
USA (51 posts) Bio
|
Date
| Reply #1 on Fri 30 Nov 2001 05:01 AM (UTC) |
Message
| I don't see why not. The alias must exist beforehand. Then you can have the script call the alias. And once MUSHClient sees the commands typed in for the script. It should call the alias itself.
Erm.. For a shorter answer.. Test it and see! |
"By the pricking of my thumbs, something wicked this way comes. Open locks, whoever knocks!" MacBeth, Shakespeare | Top |
|
Posted by
| Fjodor
Sweden (13 posts) Bio
|
Date
| Reply #2 on Fri 30 Nov 2001 05:05 AM (UTC) Amended on Fri 30 Nov 2001 05:15 AM (UTC) by Fjodor
|
Message
| So basicly if you 'world.send "alias"'
that would execute the alias named alias ??
I tried this and it didn't work :( | Top |
|
Posted by
| Dubthach
(47 posts) Bio
|
Date
| Reply #3 on Fri 30 Nov 2001 09:25 PM (UTC) |
Message
| I think this has come up before. Basically you should rewrite your alias so that it calls a function that actually does the work. Then if you want to call it in a script, you refer to the function, not the alias. | Top |
|
Posted by
| Nick Gammon
Australia (23,158 posts) Bio
Forum Administrator |
Date
| Reply #4 on Sat 01 Dec 2001 02:47 AM (UTC) |
Message
| I agree with Dubthach. Aliases cannot be called from scripts (or other aliases). However if you want to centralise the way things are done you can make a script to do the work of the alias, and call the same script from more than one alias.
|
- Nick Gammon
www.gammon.com.au, www.mushclient.com | Top |
|
The dates and times for posts above are shown in Universal Co-ordinated Time (UTC).
To show them in your local time you can join the forum, and then set the 'time correction' field in your profile to the number of hours difference between your location and UTC time.
18,008 views.
It is now over 60 days since the last post. This thread is closed.
Refresh page
top