AutoHotkey Community

It is currently May 25th, 2012, 3:44 pm

All times are UTC [ DST ]




Post new topic Reply to topic  [ 3 posts ] 
Author Message
PostPosted: September 13th, 2007, 3:18 pm 
Offline

Joined: May 31st, 2007, 5:26 am
Posts: 23
::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...


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: September 14th, 2007, 1:12 am 
Offline

Joined: May 17th, 2007, 9:06 pm
Posts: 421
Location: England
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


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: September 16th, 2007, 1:22 am 
Offline

Joined: May 31st, 2007, 5:26 am
Posts: 23
Thank you, Mustang! I appreciate your help...


Report this post
Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: BrandonHotkey, engunneer, Pulover, vsub and 19 guests


You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Group