| View previous topic :: View next topic |
| Author |
Message |
iamnu
Joined: 31 May 2007 Posts: 23
|
Posted: Thu Sep 13, 2007 2:18 pm Post subject: Hotstrings Auto-Replace Options |
|
|
::you::
Send you `
SoundPlay *-1
Return
I am currently using the above code, but I don't fully understand what's going on.
I want to treat different occurrences of "you" in different ways.
For example, if I enter "You" I don't want this to be recognized as a Hotstring (this currently gets changed to lower case "you").
If I enter "you're", I don't want this to be recognized as a Hotstring either (this gets executed when I enter the asterisk, or a quote mark as I type the string..."you").
Only when the value of the Hotstring is "you" (followed by a space) do I want the Hotstring to be recognized (executed).
Can someone explain?
Thanks... |
|
| Back to top |
|
 |
Mustang
Joined: 17 May 2007 Posts: 421 Location: England
|
Posted: Fri Sep 14, 2007 12:12 am Post subject: |
|
|
| Code: | #SingleInstance, Force
#Persistent
#NoEnv
#Hotstring EndChars ` ; Sets only allowable end character to space
:c:you:: ; Makes "you" case sensitive
{
Send you `
SoundPlay *-1
}
Return |
|
|
| Back to top |
|
 |
iamnu
Joined: 31 May 2007 Posts: 23
|
Posted: Sun Sep 16, 2007 12:22 am Post subject: |
|
|
| Thank you, Mustang! I appreciate your help... |
|
| Back to top |
|
 |
|