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
➜ Repeat command
It is now over 60 days since the last post. This thread is closed.
Refresh page
Posted by
| Zendu
(66 posts) Bio
|
Date
| Mon 03 May 2004 10:23 PM (UTC) |
Message
| Is there a way to repeat the 2nd to last command?
I send: Squint North
The game sends: You cant see that far at night
I send: Nightsight
Hopefully send: Squint North [oboisuly the direction changes, thus the need to repeat the 2nd to last direction] |
God im helpless
Currently using MushClient 3.46 on Win Xp pro on [url=www.aetolia.com]Aetolia[/url] | Top |
|
Posted by
| Nick Gammon
Australia (23,131 posts) Bio
Forum Administrator |
Date
| Reply #1 on Tue 04 May 2004 09:40 PM (UTC) |
Message
| This alias will do it:
<aliases>
<alias
match="2nd"
enabled="y"
omit_from_command_history="y"
send_to="12"
sequence="100"
>
<send>cmds = GetCommandList (2)
If Not IsEmpty (cmds) Then
If UBound (cmds) >= 1 Then
Send cmds (1)
End If ' more than one command
End If ' not empty </send>
</alias>
</aliases>
|
- Nick Gammon
www.gammon.com.au, www.mushclient.com | Top |
|
Posted by
| Zendu
(66 posts) Bio
|
Date
| Reply #2 on Thu 06 May 2004 07:58 AM (UTC) |
Message
| Thanks! |
God im helpless
Currently using MushClient 3.46 on Win Xp pro on [url=www.aetolia.com]Aetolia[/url] | Top |
|
Posted by
| Zendu
(66 posts) Bio
|
Date
| Reply #3 on Thu 06 May 2004 10:56 PM (UTC) |
Message
| As it turns out, since triggers dont display in the command list, how do you repeat the last command. sorry!!
*kneels* |
God im helpless
Currently using MushClient 3.46 on Win Xp pro on [url=www.aetolia.com]Aetolia[/url] | Top |
|
Posted by
| Zeno
USA (2,871 posts) Bio
|
Date
| Reply #4 on Fri 07 May 2004 01:30 AM (UTC) |
Message
| With a keypad macro? Ctrl + R |
Zeno McDohl,
Owner of Bleached InuYasha Galaxy
http://www.biyg.org | Top |
|
Posted by
| Zendu
(66 posts) Bio
|
Date
| Reply #5 on Fri 07 May 2004 01:35 AM (UTC) |
Message
| What if i want a trigger to do cntrl r for me? |
God im helpless
Currently using MushClient 3.46 on Win Xp pro on [url=www.aetolia.com]Aetolia[/url] | Top |
|
Posted by
| Zeno
USA (2,871 posts) Bio
|
Date
| Reply #6 on Fri 07 May 2004 01:43 AM (UTC) |
Message
| I believe it would be something like that alias...
cmds = GetCommandList (2)
If Not IsEmpty (cmds) Then
If UBound (cmds) >= 1 Then
Send cmds (1)
End If
End If
I tried it out a few ways, but got errors. Give me a few more minutes to see if I can get it to work. |
Zeno McDohl,
Owner of Bleached InuYasha Galaxy
http://www.biyg.org | Top |
|
Posted by
| Nick Gammon
Australia (23,131 posts) Bio
Forum Administrator |
Date
| Reply #7 on Fri 07 May 2004 06:20 AM (UTC) |
Message
| In my post change:
Send cmds (1)
to
Send cmds (0) |
- Nick Gammon
www.gammon.com.au, www.mushclient.com | Top |
|
Posted by
| Zendu
(66 posts) Bio
|
Date
| Reply #8 on Sat 08 May 2004 12:10 AM (UTC) |
Message
| Ah i tried it as 2, thanks! |
God im helpless
Currently using MushClient 3.46 on Win Xp pro on [url=www.aetolia.com]Aetolia[/url] | 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.
20,758 views.
It is now over 60 days since the last post. This thread is closed.
Refresh page
top