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

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » zMUD General Discussion
Lasivian
Wanderer


Joined: 25 Jan 2002
Posts: 76
Location: USA

PostPosted: Thu Aug 18, 2011 3:03 am   

Want to catch semicolons and change them to apostrophes
 
Ok, I have this HORRIBLE typo problem, I hit ; when I mean to hit ' all the time, for years and years.

I'm wondering if there is a way to have the script do something like this:

Alias: Chat, replace ; with '

IE. "This is a chat message, do NOT use the semicolon, replace with with a apostrophe."


Yes, I know I can change the seperator character in "Special Characters", but that breaks hundreds of aliases and triggers, and the mud still uses semicolons as return codes.

Any useful suggestions would be VERY appreciated, thank you.
Reply with quote
Scirkhan
Apprentice


Joined: 14 Sep 2007
Posts: 167
Location: aztx

PostPosted: Thu Aug 18, 2011 3:09 am   
 
This might work, try it?
#ONINPUT {;} {'}
Reply with quote
Daern
Sorcerer


Joined: 15 Apr 2011
Posts: 809

PostPosted: Thu Aug 18, 2011 5:06 am   
 
We went over this two weeks ago, the consensus was that it's not possible. No need to start a second thread for it...
Reply with quote
Lasivian
Wanderer


Joined: 25 Jan 2002
Posts: 76
Location: USA

PostPosted: Thu Aug 18, 2011 8:23 am   
 
Daern wrote:
We went over this two weeks ago, the consensus was that it's not possible. No need to start a second thread for it...


Nobody actually said it wasn't. If it's not that's fine. *shrug*
Reply with quote
Scirkhan
Apprentice


Joined: 14 Sep 2007
Posts: 167
Location: aztx

PostPosted: Thu Aug 18, 2011 8:01 pm   
 
Okay, I'm assuming you use the apostrophe to 'say' or something like that
So you would type something like this: 'greetings
in that case, this should work, unless there's something I missed:

#ONINPUT {;(*)} {'%1} "OMGITWORKS"
Reply with quote
Lasivian
Wanderer


Joined: 25 Jan 2002
Posts: 76
Location: USA

PostPosted: Thu Aug 18, 2011 9:20 pm   
 
Scirkhan wrote:
Okay, I'm assuming you use the apostrophe to 'say' or something like that
So you would type something like this: 'greetings
in that case, this should work, unless there's something I missed:

#ONINPUT {;(*)} {'%1} "OMGITWORKS"


this is the problem:

Chat I don;t know if I agree with that

comes out as:

Chat I don
<return>
t know if I agree with that
Reply with quote
Scirkhan
Apprentice


Joined: 14 Sep 2007
Posts: 167
Location: aztx

PostPosted: Thu Aug 18, 2011 9:44 pm   
 
Try this.
It does not affect copy/paste but when you press ; (semicolon) an ' (apostrophe) will show up.
You can also turn it off, if you need to etc.

#KEY ; {'} "OMGITWORKS" {append|nosend}

Let me know if it works for you!
Reply with quote
charneus
Wizard


Joined: 19 Jun 2005
Posts: 1876
Location: California

PostPosted: Fri Aug 19, 2011 12:11 am   
 
Wow, that actually does work. Good job on that, Scirkhan.

However, now it poses a problem since he won't be able to command stack on the command line anymore... Hmmm.
Reply with quote
Scirkhan
Apprentice


Joined: 14 Sep 2007
Posts: 167
Location: aztx

PostPosted: Fri Aug 19, 2011 1:54 am   
 
Thanks.
Yeah, I was thinking that maybe s/he can use aliases for command stacking, or switch the apostrophe and semicolon.
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » zMUD 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