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.
Entire forum
➜ MUSHclient
➜ General
➜ Variables in macros
It is now over 60 days since the last post. This thread is closed.
Refresh page
Posted by
| Togras
(5 posts) 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. | 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* | Top |
|
Posted by
| Magnum
Canada (580 posts) 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. | Top |
|
Posted by
| Magnum
Canada (580 posts) 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. | Top |
|
Posted by
| Nick Gammon
Australia (23,120 posts) 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 | 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. | 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.
19,740 views.
It is now over 60 days since the last post. This thread is closed.
Refresh page
top