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


Register forum user name Search FAQ

Gammon Forum

[Folder]  Entire forum
-> [Folder]  MUSHclient
. -> [Folder]  General
. . -> [Subject]  Variables in macros

Variables in macros

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


Posted by Togras   (5 posts)  [Biography] bio
Date Sat 30 Nov 2002 03:26 PM (UTC)
Message
Is it possible? =D

If so, how can I use em?

Basically, all I want really is to be able to expand variables in macros without using aliases. It's just a lot of wasted space IMHO.
[Go to top] top

Posted by Guest1   USA  (256 posts)
Date Reply #1 on Sat 30 Nov 2002 05:02 PM (UTC)
Message
I don't think so yet, just direct commands to the world. Wish it could tho.. *hint*
[Go to top] top

Posted by Magnum   Canada  (580 posts)  [Biography] bio
Date Reply #2 on Thu 05 Dec 2002 02:46 PM (UTC)
Message
The text you declare sent via a macro key is passed to the alias engine before being sent to the mud. If the text matches an alias, that alias is called. So, for example, your could:

Make a Macro for the F9 key.
Have the Macro send "OnKeypress_F9"
Make an alias called "OnKeypress_F9"

In that alias, you can expand variables.

Get my plugins here: http://www.magnumsworld.com/muds/

Constantly proving I don't know what I am doing...
Magnum.
[Go to top] top

Posted by Magnum   Canada  (580 posts)  [Biography] bio
Date Reply #3 on Thu 05 Dec 2002 02:47 PM (UTC)
Message
Quote:

... without using aliases.

Oops, I should read more carefully.

Get my plugins here: http://www.magnumsworld.com/muds/

Constantly proving I don't know what I am doing...
Magnum.
[Go to top] top

Posted by Nick Gammon   Australia  (22,987 posts)  [Biography] bio   Forum Administrator
Date Reply #4 on Sat 07 Dec 2002 08:18 PM (UTC)
Message
At present macros do not support variables, however you can do them indirectly by making a macro that generates a word that then is matched by an alias, as Magnum says.

I am planning future enhancements so that macros, aliases etc. work in a more consistent way.

- Nick Gammon

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

Posted by Guest1   USA  (256 posts)
Date Reply #5 on Sat 07 Dec 2002 11:48 PM (UTC)
Message
Great :) Can't wait for the aliases to write (send) direct to variables; a good percentage of the scripting I wrote is subroutines to do just that.
[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.


17,932 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]