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
➜ General
➜ Send command to specific window
|
Send command to specific window
|
It is now over 60 days since the last post. This thread is closed.
Refresh page
| Posted by
| Wraithian
USA (16 posts) Bio
|
| Date
| Fri 06 Feb 2004 10:43 PM (UTC) |
| Message
| Hi.
How do I send a command from one world window to another?
Example: I have two world windows open: mud1 and mud2. I want to send, from mud1, to mud2 the command "heal chicken"... Furthermore, I want to make an alias that will let me do this.
Any help? Please. | | Top |
|
| Posted by
| Nick Gammon
Australia (23,173 posts) Bio
Forum Administrator |
| Date
| Reply #1 on Sat 07 Feb 2004 07:54 PM (UTC) |
| Message
| Yes, you can do that. See this page:
http://www.gammon.com.au/scripts/doc.php?function=GetWorld
Here is what you could do in an alias:
set otherworld = world.getworld ("mud2")
if not (otherworld is nothing) then
otherworld.send "heal chicken"
set otherworld = nothing
end if
Put all that in the "send" box and set the alias to "send to script". |
- 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.
13,516 views.
It is now over 60 days since the last post. This thread is closed.
Refresh page
top