Gammon Forum
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 (22,973 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 (22,973 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 (22,973 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.
11,986 views.
It is now over 60 days since the last post. This thread is closed.
  Refresh page
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.