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
Ashur
Novice


Joined: 25 Jul 2011
Posts: 39

PostPosted: Thu Oct 13, 2011 9:22 pm   

Assistance Required
 
So I'm trying to make a macro that will allow me to quickly type text into the MUD ... I'll pause for any shock that may have caused. Rolling Eyes

The basic idea is to be able to compose a letter within the Macro script text, hit a button and print that all into a message.

Code:
   _____________________________________________________________________ 
  /_\                                                                   \
 //_\|                                                                   |
 |\_/___-_______-______/|________--___|\___-____-__|\_____/\_____-__|\__/
  \                                                                     \
   |                                                                     |
   |                                                                     |
   |                                                                     |
   |                                                                     |
  /___ ____  ______ _______ ____________________  __________ ___________/
 |/\  -    |/      -      |/                    |/          -           \
 \_|                                                                    |
  \/____________________________________________________________________/ 


It's an ascii art scroll! Obviously the idea is to have text within it. At the end of each line, there needs to be a carriage return/line feed and that is where I'm struggling.

Tips? Suggestions?
Reply with quote
hogarius
Adept


Joined: 29 Jan 2003
Posts: 221
Location: islands.genesismuds.org

PostPosted: Thu Oct 13, 2011 10:18 pm   
 
Ashur, can you provide some information on the relevant MUD commands that you would use?
Reply with quote
MattLofton
GURU


Joined: 23 Dec 2000
Posts: 4834
Location: USA

PostPosted: Thu Oct 13, 2011 10:50 pm   
 
If your text is never going to change, just copy and paste the above to the macro, edit in your text, add in the #SENDRAW commands to commit to the game buffer, and save. Then every time you press that macro the text gets sent. To add in carriage returns, use %cr at the appropriate places.

I suspect you want something for variable text, however, such as when you want to write something in an in-game note system or even an IMM ability to do custom global emotes. For that, I suggest building a Editor window with a command line and various buttons that relies on a command-input trigger (this lets you type in each line naturally from the command line, while also allowing you to implement a way to edit lines).
_________________
EDIT: I didn't like my old signature
Reply with quote
Ashur
Novice


Joined: 25 Jul 2011
Posts: 39

PostPosted: Fri Oct 14, 2011 12:50 am   
 
Actually, I guess I was too vague in what I was trying to, sorry.

Currently, I compose my messages in Notepad++ then copy and paste them line by line into my command line. The whole process is very irritating.

I'm trying to avoid having to copy/paste a bunch on lines one by one. So, if I can compose the message in the Macro's "script text" box, and then just press one button to have it sent, that would be MUCH easier.

It sounds like the %cr thing will do exactly what I want. I'll give it a test and post if it doesn't work. Thank you, and apologies for not being quite as specific as I needed to be.
Reply with quote
charneus
Wizard


Joined: 19 Jun 2005
Posts: 1876
Location: California

PostPosted: Fri Oct 14, 2011 5:10 am   
 
Why not create them in built-in editor, then press 'Send'? I do that with my notes all the time.
Reply with quote
Ashur
Novice


Joined: 25 Jul 2011
Posts: 39

PostPosted: Fri Oct 14, 2011 2:16 pm   
 
The built-in editor is amazing, why have I not know about this until now! That does exactly what I need, thanks!
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