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

Gammon Forum

See www.mushclient.com/spam for dealing with forum spam. Please read the MUSHclient FAQ!

[Folder]  Entire forum
-> [Folder]  MUSHclient
. -> [Folder]  Suggestions
. . -> [Subject]  SetCommand() - extra parameter to allow replacing current command text
Home  |  Users  |  Search  |  FAQ
Username:
Register forum user name
Password:
Forgotten password?

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

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


Posted by Worstje   Netherlands  (899 posts)  [Biography] 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!))
[Go to top] top

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

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


3,024 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 FutureQuest]