 |
EZE Beginner
Joined: 04 Sep 2002 Posts: 21 Location: USA
|
Posted: Mon Jan 06, 2003 11:51 pm
reducing typos |
I have been using Zmud and all of its facets for a couple years now. I get to typing when I am mudding, and going so fast sometimes I hit the character when I am hitting enter. I would like to know how to take out sending the character and send the rest of the line without the typo.
ie
sa jack Hello
to actually send
sa jack Hello
Thanx for the help guys, always a good source of info.
E |
|
|
 |
EZE Beginner
Joined: 04 Sep 2002 Posts: 21 Location: USA
|
Posted: Tue Jan 07, 2003 12:31 am |
The character does some strange things in these forums. I just want to know how it could be stripped from the end of a line before it is sent to the mud.
E |
|
|
 |
Emit Magician
Joined: 24 Feb 2001 Posts: 342 Location: USA
|
Posted: Tue Jan 07, 2003 1:18 am |
good question, this is a tricky one.
so far as i know there are only two ways to do this.
1) create an alias through which all commands are parsed
2) use #oninput to intercept text sent through the mud
1 is awkward because you'll need to type the alias name before every command
2 is a good option, but you'll need to put some thought as to what you want the pattern to be
#oninput {} {#sub ""}
will strip this character from ever being sent
#oninput {$} {#sub ""}
will stop it only if its the last character on a line, which is what i think your going for |
|
|
 |
EZE Beginner
Joined: 04 Sep 2002 Posts: 21 Location: USA
|
Posted: Tue Jan 07, 2003 1:52 am |
Works like a charm, thanks.
E |
|
|
 |
|
|