|
Ashur Novice
Joined: 25 Jul 2011 Posts: 39
|
Posted: 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.
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? |
|
|
|
hogarius Adept
Joined: 29 Jan 2003 Posts: 221 Location: islands.genesismuds.org
|
Posted: Thu Oct 13, 2011 10:18 pm |
Ashur, can you provide some information on the relevant MUD commands that you would use?
|
|
|
|
MattLofton GURU
Joined: 23 Dec 2000 Posts: 4834 Location: USA
|
Posted: 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 |
|
|
|
Ashur Novice
Joined: 25 Jul 2011 Posts: 39
|
Posted: 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. |
|
|
|
charneus Wizard
Joined: 19 Jun 2005 Posts: 1876 Location: California
|
Posted: 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.
|
|
|
|
Ashur Novice
Joined: 25 Jul 2011 Posts: 39
|
Posted: 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!
|
|
|
|
|
|