|
Lasivian Wanderer
Joined: 25 Jan 2002 Posts: 76 Location: USA
|
Posted: 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. |
|
|
|
Scirkhan Apprentice
Joined: 14 Sep 2007 Posts: 167 Location: aztx
|
Posted: Thu Aug 18, 2011 3:09 am |
This might work, try it?
#ONINPUT {;} {'} |
|
|
|
Daern Sorcerer
Joined: 15 Apr 2011 Posts: 809
|
Posted: 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...
|
|
|
|
Lasivian Wanderer
Joined: 25 Jan 2002 Posts: 76 Location: USA
|
Posted: 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* |
|
|
|
Scirkhan Apprentice
Joined: 14 Sep 2007 Posts: 167 Location: aztx
|
Posted: 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" |
|
|
|
Lasivian Wanderer
Joined: 25 Jan 2002 Posts: 76 Location: USA
|
Posted: 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 |
|
|
|
Scirkhan Apprentice
Joined: 14 Sep 2007 Posts: 167 Location: aztx
|
Posted: 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! |
|
|
|
charneus Wizard
Joined: 19 Jun 2005 Posts: 1876 Location: California
|
Posted: 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. |
|
|
|
Scirkhan Apprentice
Joined: 14 Sep 2007 Posts: 167 Location: aztx
|
Posted: 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. |
|
|
|
|
|