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
➜ Suggestions
➜ Accelerators activating scripts
Accelerators activating scripts
|
It is now over 60 days since the last post. This thread is closed.
Refresh page
Posted by
| Shaun Biggs
USA (644 posts) Bio
|
Date
| Mon 20 Aug 2007 09:19 PM (UTC) |
Message
| Can we get some way to activate a script directly with an accelerator instead of having to go through an alias? I've had to create several aliases recently to deal just with getting various accelerators to work for different people. Actually, having the full 13 options that aliases do would be even more convenient. |
It is much easier to fight for one's ideals than to live up to them. | Top |
|
Posted by
| Nick Gammon
Australia (23,133 posts) Bio
Forum Administrator |
Date
| Reply #1 on Tue 21 Aug 2007 11:37 AM (UTC) |
Message
| I'll have to check, it shouldn't be too hard. |
- Nick Gammon
www.gammon.com.au, www.mushclient.com | Top |
|
Posted by
| Nick Gammon
Australia (23,133 posts) Bio
Forum Administrator |
Date
| Reply #2 on Tue 10 Jun 2008 11:40 PM (UTC) |
Message
| This is implemented in version 4.27.
There is now an AcceleratorTo function that lets you specify where to send the text to, like DoAfterSpecial.
For example:
AcceleratorTo ("Ctrl+E", string.rep ('-', 60), 2) -- put 60 hyphens in the output window
AcceleratorTo ("Ctrl+D", "Sound ('ding.wav')", 12) -- play a ding sound
|
- Nick Gammon
www.gammon.com.au, www.mushclient.com | Top |
|
Posted by
| Nick Gammon
Australia (23,133 posts) Bio
Forum Administrator |
Date
| Reply #3 on Wed 11 Jun 2008 01:14 AM (UTC) |
Message
| And to make it more readable, you can now specify the sendto locations with words:
AcceleratorTo ("Ctrl+E", string.rep ('-', 60), sendto.output) -- put 60 hyphens in the output window
AcceleratorTo ("Ctrl+D", "Sound ('ding.wav')", sendto.script) -- play a ding sound
|
- 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.
13,404 views.
It is now over 60 days since the last post. This thread is closed.
Refresh page
top