[Home] [Downloads] [Search] [Help/forum]


Register forum user name Search FAQ

Gammon Forum

[Folder]  Entire forum
-> [Folder]  MUSHclient
. -> [Folder]  Suggestions
. . -> [Subject]  Accelerators activating scripts

Accelerators activating scripts

It is now over 60 days since the last post. This thread is closed.     [Refresh] Refresh page


Posted by Shaun Biggs   USA  (644 posts)  [Biography] 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.
[Go to top] top

Posted by Nick Gammon   Australia  (22,973 posts)  [Biography] 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
[Go to top] top

Posted by Nick Gammon   Australia  (22,973 posts)  [Biography] 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
[Go to top] top

Posted by Nick Gammon   Australia  (22,973 posts)  [Biography] 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
[Go to top] 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] Refresh page

Go to topic:           Search the forum


[Go to top] 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.

[Home]


Written by Nick Gammon - 5K   profile for Nick Gammon on Stack Exchange, a network of free, community-driven Q&A sites   Marriage equality

Comments to: Gammon Software support
[RH click to get RSS URL] Forum RSS feed ( https://gammon.com.au/rss/forum.xml )

[Best viewed with any browser - 2K]    [Hosted at HostDash]