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
➜ Hopeless
It is now over 60 days since the last post. This thread is closed.
Refresh page
Posted by
| Nick Gammon
Australia (23,158 posts) Bio
Forum Administrator |
Date
| Fri 02 Jan 2004 05:28 AM (UTC) |
Message
| OK, this is simple enough. The trick is to make the keypad configuration send words (like 'keypad-0' which are then picked up by an alias.
First enter keypad configuration and assign a different word to each key, like this ...

Now add aliases for each of those words. To expand out a variable check 'expand variables', like this ...

To assign the target name you can just use the variables configuration screen, or make an alias like this ...
<aliases>
<alias
match="keypad-0"
enabled="y"
send_to="12"
sequence="100"
>
<send>target = InputBox ("Enter new target name", "Target")
if target <> "" then
SetVariable "target", target
end if</send>
</alias>
</aliases>
(Copy between the lines and click on the 'Paste' button in the Alias configuration list).
Now pressing keypad '0' will bring up a dialog box asking for the new target name. Enter it and it will be assigned to the variable 'target' which is used in the earlier alias.
|
- Nick Gammon
www.gammon.com.au, www.mushclient.com | Top |
|
Posted by
| Nick Gammon
Australia (23,158 posts) Bio
Forum Administrator |
Date
| Reply #1 on Fri 02 Jan 2004 08:10 PM (UTC) |
Message
| What is it doing? Is it sending "keypad-0" to the MUD? Is there an error message?
As this alias uses "send to script" then scripting must be enabled for it to work.
You can make a simpler alias, eg.
Match: target *
Send: %1
Send to: Variable
Variable name: target
Then just type "target fred" to set the target to fred. |
- Nick Gammon
www.gammon.com.au, www.mushclient.com | Top |
|
Posted by
| Nick Gammon
Australia (23,158 posts) Bio
Forum Administrator |
Date
| Reply #2 on Sat 03 Jan 2004 04:30 AM (UTC) |
Message
| In this version they are reserved, so you cannot use them. |
- Nick Gammon
www.gammon.com.au, www.mushclient.com | Top |
|
Posted by
| Nick Gammon
Australia (23,158 posts) Bio
Forum Administrator |
Date
| Reply #3 on Wed 14 Jan 2004 03:31 AM (UTC) |
Message
| Keypad 9 is an alias?
Just press Ctrl+Enter in the "send" box to send it as two separate lines. |
- 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.
8,925 views.
It is now over 60 days since the last post. This thread is closed.
Refresh page
top