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 ➜ SetCommand() - extra parameter to allow replacing current command text

SetCommand() - extra parameter to allow replacing current command text

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


Posted by Worstje   Netherlands  (899 posts)  Bio
Date Mon 30 Apr 2012 07:51 PM (UTC)

Amended on Mon 30 Apr 2012 08:32 PM (UTC) by Worstje

Message
The subject says it all. Until a minute ago, I wasn't aware SetCommand() did not let me replace the output in the command window.. which sucks. :-(

I've got a preview window with squiggles and tons of that fancy spelling stuff. Right-clicking a misspelled word pops up a list of suggestions you can replace said word with. Except when I tried that just now, I found out about error 30020: eCommandNotEmpty.

Screenshot for reference purposes: http://qs.merseine.nu/images/previewer7.png

As such, I'd like to request a second boolean parameter ReplaceExisting that does not mind me replacing the contents.

(P.S.: I already save the cursor/selection location and adjust that accordingly, so assuming my math is right, there won't be any usability issues there that would hinder adding this feature.)

((P.S. #2: The Help file does not mention a second Lua-only parameter. I quatriple-checked this time!))
Top

Posted by Nick Gammon   Australia  (23,158 posts)  Bio   Forum Administrator
Date Reply #1 on Mon 30 Apr 2012 10:17 PM (UTC)
Message
Template:function=PasteCommand PasteCommand

The documentation for the PasteCommand script function is available online. It is also in the MUSHclient help file.



... in conjunction with:

Template:function=SetCommandSelection SetCommandSelection

The documentation for the SetCommandSelection script function is available online. It is also in the MUSHclient help file.


- Nick Gammon

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

Posted by Worstje   Netherlands  (899 posts)  Bio
Date Reply #2 on Mon 30 Apr 2012 10:25 PM (UTC)
Message
It is you. It is not me, it is you.
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.


14,935 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.