Register forum user name Search FAQ

Gammon Forum

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 ➜ Auto-say

Auto-say

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


Posted by Carrie   USA  (10 posts)  Bio
Date Sun 22 Aug 2004 02:21 AM (UTC)
Message
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?
Top

Posted by Assassin   (73 posts)  Bio
Date Reply #1 on Sun 22 Aug 2004 08:59 AM (UTC)
Message
Theirs an option in your world properties setup from file menu to enable/disable autosay.

Top

Posted by Flannel   USA  (1,230 posts)  Bio
Date Reply #2 on Sun 22 Aug 2004 09:09 AM (UTC)
Message
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.

~Flannel

Messiah of Rose
Eternity's Trials.

Clones are people two.
Top

Posted by Exodus   (14 posts)  Bio
Date Reply #3 on Sun 08 Jun 2014 05:23 PM (UTC)
Message
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!
Top

Posted by Nick Gammon   Australia  (23,133 posts)  Bio   Forum Administrator
Date Reply #4 on Sun 08 Jun 2014 09:57 PM (UTC)
Message
Open the Immediate scripting window (Ctrl+I) and copy and paste this into it:


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>


Template:pasting 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.

- Nick Gammon

www.gammon.com.au, www.mushclient.com
Top

Posted by Exodus   (14 posts)  Bio
Date Reply #5 on Mon 09 Jun 2014 04:10 AM (UTC)

Amended on Mon 09 Jun 2014 04:11 AM (UTC) by Exodus

Message
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):
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>
Top

Posted by Nick Gammon   Australia  (23,133 posts)  Bio   Forum Administrator
Date Reply #6 on Mon 09 Jun 2014 05:35 AM (UTC)

Amended on Mon 09 Jun 2014 07:52 PM (UTC) by Nick Gammon

Message
Quote:

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.

- 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.


26,102 views.

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

Go to topic:           Search the forum


[Go to top] top

Information and images on this site are licensed under the Creative Commons Attribution 3.0 Australia License unless stated otherwise.