Register to post in forums, or Log in to your existing account
 

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » CMUD General Discussion
cuprohastes
Wanderer


Joined: 22 Oct 2006
Posts: 92

PostPosted: Tue May 19, 2009 11:00 am   

How do I send characters to the command bar from a button?
 
I've checked the manual but I can't seem to find a function that sends a character or text to the command line.

Here's the background:
I wan to use special characters (Like ®©°± etc.) that are supported by the muckMUCK, but that I don't have an easy shortcut on my keyboard for.

What I'd like to do is put all the characters into a multistate button and have then appended to the text in the command bar.

How do I do this?
Reply with quote
chris-74269
Magician


Joined: 23 Nov 2004
Posts: 364

PostPosted: Tue May 19, 2009 1:46 pm   
 
You could use the %clip function to set them to the clipboard then paste them.
Reply with quote
cuprohastes
Wanderer


Joined: 22 Oct 2006
Posts: 92

PostPosted: Tue May 19, 2009 2:51 pm   
 
I gave it a try it but every time I hit the button it sent the character to the MUCK
Reply with quote
Fang Xianfu
GURU


Joined: 26 Jan 2004
Posts: 5155
Location: United Kingdom

PostPosted: Tue May 19, 2009 3:39 pm   
 
At the bottom of your macros, there're three checkboxes. Uncheck "Send to MUD" and check "Append to command". Job done.
_________________
Rorso's syntax colouriser.

- Happy bunny is happy! (1/25)
Reply with quote
cuprohastes
Wanderer


Joined: 22 Oct 2006
Posts: 92

PostPosted: Tue May 19, 2009 5:08 pm   
 
I'm not using a macro.
Reply with quote
Zugg
MASTER


Joined: 25 Sep 2000
Posts: 23379
Location: Colorado, USA

PostPosted: Tue May 19, 2009 5:30 pm   
 
The #INPUT command can be used in a script to put text into the command line. However, it will replace the contents of the command line, not append a character. I'll add a way to append text to the command line to the wish-list for the future. What I'll probably do is implement a %input variable that retrieves the current contents of the command line or something like that.
Reply with quote
cuprohastes
Wanderer


Joined: 22 Oct 2006
Posts: 92

PostPosted: Tue May 19, 2009 5:34 pm   
 
Thanks. It would be very useful - I'm always having to hand links out. If I could hit a button and have the link dropped in, or a set of commonly used paths daisy chained together... or as I suggested, a character list to pick from!
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » CMUD General Discussion All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

© 2009 Zugg Software. Hosted by Wolfpaw.net