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


Register forum user name Search FAQ

Gammon Forum

[Folder]  Entire forum
-> [Folder]  MUSHclient
. -> [Folder]  General
. . -> [Subject]  get variable

get variable

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


Posted by Lw   (6 posts)  [Biography] bio
Date Thu 17 Feb 2005 07:38 AM (UTC)
Message
in zmud it is @variable, how can i do it in mushclient?
[Go to top] top

Posted by Flannel   USA  (1,230 posts)  [Biography] bio
Date Reply #1 on Thu 17 Feb 2005 07:49 AM (UTC)
Message
It depends. If you're doing it in an alias or trigger, you can use @variable when you check the "expand variables" box. If youre doing it in a script, you'll have to use getvariable.

~Flannel

Messiah of Rose
Eternity's Trials.

Clones are people two.
[Go to top] top

Posted by Lw   (6 posts)  [Biography] bio
Date Reply #2 on Thu 17 Feb 2005 08:10 AM (UTC)
Message
can i do it in timer?
[Go to top] top

Posted by Flannel   USA  (1,230 posts)  [Biography] bio
Date Reply #3 on Thu 17 Feb 2005 09:01 AM (UTC)
Message
Oh, yeah, timers too. I knew there was something I forgot.

~Flannel

Messiah of Rose
Eternity's Trials.

Clones are people two.
[Go to top] top

Posted by Lw   (6 posts)  [Biography] bio
Date Reply #4 on Thu 17 Feb 2005 09:56 AM (UTC)
Message
i am sorry for my poor english.
i can not find "expand variables" box in timers,
[Go to top] top

Posted by Flannel   USA  (1,230 posts)  [Biography] bio
Date Reply #5 on Thu 17 Feb 2005 11:03 PM (UTC)
Message
You're right. You cant.

Instead, you'll have to use a little bit of scripting like this:
Change the dropdown menu 'send to' to "script"
then put this in the send box:

Send "Some text" & getvariable("variable") & "some more text"

you'll need to enable scripting, and set it to VBScript (for that example) (this can be done in the scripting config screen).

~Flannel

Messiah of Rose
Eternity's Trials.

Clones are people two.
[Go to top] top

Posted by Lw   (6 posts)  [Biography] bio
Date Reply #6 on Fri 18 Feb 2005 12:17 AM (UTC)
Message
its work, thanks alot!
[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.


13,109 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]