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

Gammon Software Solutions 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

[Reply to this subject]  Reply to this subject   [New subject]  Start a new subject   [Refresh] Refresh page


Posted by Worstje   Netherlands  (867 posts)  [Biography] bio
Date Mon 30 Apr 2012 07:51 PM (UTC)  quote  ]

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  (18,770 posts)  [Biography] bio   Forum Administrator
Date Reply #1 on Mon 30 Apr 2012 10:17 PM (UTC)  quote  ]
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  (867 posts)  [Biography] bio
Date Reply #2 on Mon 30 Apr 2012 10:25 PM (UTC)  quote  ]
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.


646 views.

[Reply to this subject]  Reply to this subject   [New subject]  Start a new subject   [Refresh] Refresh page

Go to topic:           Search the forum


[Go to top] top

[Home]

Written by Nick Gammon - 5K

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

[Best viewed with any browser - 2K]    [Internet Contents Rating Association (ICRA) - 2K]    [Web site powered by FutureQuest.Net]