[Home] [Downloads] [Search] [Help/forum]


Register forum user name Search FAQ

Gammon Forum

[Folder]  Entire forum
-> [Folder]  MUSHclient
. -> [Folder]  VBscript
. . -> [Subject]  Trying to send to all worlds

Trying to send to all worlds

It is now over 60 days since the last post. This thread is closed.     [Refresh] Refresh page


Posted by Forestsofbliss   (6 posts)  [Biography] bio
Date Mon 19 Jul 2004 06:45 PM (UTC)
Message
Ok, I've given my main char the following script, and I have an alias:
alias name: :*
send window: %1
script: sendtoallworlds

script:

Sub sendtoallworlds(name, command, wild)
dim otherworld

for each name in world.GetWorldList
set otherworld = world.getworld (name)
otherworld.send command
next

end Sub

What I want is to type :blah blah, and have blah blah
sent to every world that I have open. What it does is send
:blah blah, and does not drop the : for all worlds, and on top of that it sends just blah blah to my main world. I figure that the alias itself is sending the blah blah to the main world, which I know I can stop, but how do I get it to drop the :, cuz i keep avatar chatting all of my commands? Thanks for any help.
[Go to top] top

Posted by Nick Gammon   Australia  (22,975 posts)  [Biography] bio   Forum Administrator
Date Reply #1 on Mon 19 Jul 2004 09:17 PM (UTC)
Message
The field "command" in your script is the entire command you type, hence the : in it. However the wildcard (the asterisk) is returned in wild (1), so what you want is this:


otherworld.send wild (1)

- Nick Gammon

www.gammon.com.au, www.mushclient.com
[Go to top] top

Posted by Forestsofbliss   (6 posts)  [Biography] bio
Date Reply #2 on Tue 20 Jul 2004 08:30 PM (UTC)
Message
Thanks lots.
[Go to top] 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.


9,784 views.

It is now over 60 days since the last post. This thread is closed.     [Refresh] Refresh page

Go to topic:           Search the forum


[Go to top] top

Quick links: MUSHclient. MUSHclient help. Forum shortcuts. Posting templates. Lua modules. Lua documentation.

Information and images on this site are licensed under the Creative Commons Attribution 3.0 Australia License unless stated otherwise.

[Home]


Written by Nick Gammon - 5K   profile for Nick Gammon on Stack Exchange, a network of free, community-driven Q&A sites   Marriage equality

Comments to: Gammon Software support
[RH click to get RSS URL] Forum RSS feed ( https://gammon.com.au/rss/forum.xml )

[Best viewed with any browser - 2K]    [Hosted at HostDash]