I seem to have the absolute worst problem with MUSHclient claiming I've turned Autosay on, when I'd swear I haven't... I don't know if I'm bumping a wrong key or what. Would it be possible to add option to completely disable it, in the global preferences? Or at least disable keyboard shortcuts?
Auto-say
Posted by Carrie on Sun 22 Aug 2004 02:21 AM — 7 posts, 34,569 views.
Theirs an option in your world properties setup from file menu to enable/disable autosay.
No, Carrie means completely.
Apparently (s)he has a problem with either clicking the autosay button, or ctrl-shift-a. (S)He wants to be able to completely and totally disable autosay.
I used to think there was something. Oh wait.
Carrie, Delete your "auto say" text. That will disable it.
Apparently (s)he has a problem with either clicking the autosay button, or ctrl-shift-a. (S)He wants to be able to completely and totally disable autosay.
I used to think there was something. Oh wait.
Carrie, Delete your "auto say" text. That will disable it.
Is it possible to unbind the auto say shortkey, ctrl-shift-a?
I keep switching it on accidentally.
I've tried to disable Auto Say (Input > Auto Say > uncheck 'enable Auto Say', but the shortkey still works.
Also tried to find the shortkey to delete it (Input > Macros), but it's not listed there.
Any ideas? Thanks!
I keep switching it on accidentally.
I've tried to disable Auto Say (Input > Auto Say > uncheck 'enable Auto Say', but the shortkey still works.
Also tried to find the shortkey to delete it (Input > Macros), but it's not listed there.
Any ideas? Thanks!
Open the Immediate scripting window (Ctrl+I) and copy and paste this into it:
That will redefine Shift+Ctrl+A as a script command that has a comment in it (ie. it will do nothing). That will only persist for this session. You could make an alias to do it and type it at the start of a session:
Then type "Disable AutoSay" at the start of a session.
You can do that automatically, if you go to the Scripting configuration tab, and then in the World Events -> Connect box enter:
That will send "Disable AutoSay" (which will call your alias) whenever you connect.
AcceleratorTo ("Shift+Ctrl+A", "--" , sendto.script)
That will redefine Shift+Ctrl+A as a script command that has a comment in it (ie. it will do nothing). That will only persist for this session. You could make an alias to do it and type it at the start of a session:
<aliases>
<alias
match="Disable AutoSay"
enabled="y"
send_to="12"
sequence="100"
>
<send>
AcceleratorTo ("Shift+Ctrl+A", "--" , sendto.script)
ColourNote ("white", "blue", "Auto-say accelerator disabled.")
</send>
</alias>
</aliases>
For advice on how to copy the above, and paste it into MUSHclient, please see Pasting XML.
Then type "Disable AutoSay" at the start of a session.
You can do that automatically, if you go to the Scripting configuration tab, and then in the World Events -> Connect box enter:
!Disable AutoSay
That will send "Disable AutoSay" (which will call your alias) whenever you connect.
I think AcceleratorTo (http://www.mushclient.com/scripts/function.php?name=AcceleratorTo) might not work with Python, which is what i'm using.
For example, i tried this in the Immediate scripting window (Ctrl+I):
and got NameError: name 'AcceleratorTo' is not defined
But if i were to switch the world scripting language to Lua, it works:
Managed to find a workaround by converting your alias into a plugin and calling the alias automatically in the World Events -> Connect box.
Shift+ctrl+A is now unbound!
Thanks Nick!
Plugin:
For example, i tried this in the Immediate scripting window (Ctrl+I):
AcceleratorTo ("Shift+Ctrl+A", "--")and got NameError: name 'AcceleratorTo' is not defined
But if i were to switch the world scripting language to Lua, it works:
AcceleratorTo ("Shift+Ctrl+A", "--" , sendto.script)Managed to find a workaround by converting your alias into a plugin and calling the alias automatically in the World Events -> Connect box.
Shift+ctrl+A is now unbound!
Thanks Nick!
Plugin:
<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE muclient>
<!-- Saved on Sunday, June 08, 2014 -->
<!-- MuClient version 4.84 -->
<!-- Plugin "Disable_Autosay" generated by Plugin Wizard -->
<muclient>
<plugin
name="Disable_Autosay"
author="Nick Gammon"
id="272186c5e2abbfd3359febcf"
language="Lua"
purpose="Disable autosay keybinding"
save_state="y"
date_written="2014-06-08"
requires="4.84"
version="1.0"
>
</plugin>
<!-- Get our standard constants -->
<include name="constants.lua"/>
<!-- Aliases -->
<aliases>
<alias
match="Disable AutoSay"
enabled="y"
send_to="12"
sequence="100"
>
<send>AcceleratorTo ("Shift+Ctrl+A", "--" , sendto.script)
ColourNote ("white", "blue", "Auto-say accelerator disabled.")</send>
</alias>
</aliases>
</muclient>
Quote:
AcceleratorTo ("Shift+Ctrl+A", "--")
AcceleratorTo ("Shift+Ctrl+A", "--")
AcceleratorTo takes 3 arguments which is probably part of the problem, and "--" is probably not a Python comment. (I am not a Python expert, but it looks like "#" is the Python form of a comment).
Still, glad you got it working.