AutoHotkey Homepage AutoHotkey Community
Let's help each other out
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Condition to limit expansion of hotstring

 
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Ask for Help
View previous topic :: View next topic  
Author Message
Lovewinniethepooh



Joined: 15 Jul 2008
Posts: 5
Location: Southern NJ

PostPosted: Tue Jul 15, 2008 4:17 am    Post subject: Condition to limit expansion of hotstring Reply with quote

Hi, I have tried to figure this out and can't - I would like to have my hotstrings only expand when there is a blank space (whitespace?) before them, i.e. when I have ly as a hotstring expand to layer and I type bilateral, forget to add the ly, backspace to the end of bilateral and add the ly, I get bilaterallayer. I want to have the program realize there is a typed character previous to the cursor's position and temporarily "suspend", for lack of a better word, the hotstring. I have a problem also that may be similar or related to this when I am in my work program (medical transcription) and in a certain comment box area I go to and try to enter a hotstring but I have to space away from the left margin a character for the hotstring to expand itself, does anyone know why? Thanks in advance. Very Happy
Back to top
View user's profile Send private message AIM Address Yahoo Messenger MSN Messenger
tonne



Joined: 06 Jun 2006
Posts: 1159
Location: Denmark

PostPosted: Tue Jul 15, 2008 7:00 am    Post subject: Reply with quote

The first issue is probably as:
Code:
; a question mark makes the hotstring trigger even inside other words
; can even be specifed with the #hotstring directive
; :?:ly::layer
; this requires the preceeding char to be non-alphanumeric
::ly::layer


Better show the offending script.
_________________
there's a dog barking close within the range of my ear
sounds like he wants to escape the chain
he would probably bite me to death if he could
but the chain lets me spit in his face

- Kashmir
Back to top
View user's profile Send private message
Lovewinniethepooh



Joined: 15 Jul 2008
Posts: 5
Location: Southern NJ

PostPosted: Tue Jul 15, 2008 10:43 pm    Post subject: Reply with quote

Hello, I will post the one I think I had it in but just to clarify, I was not using the question mark option with the hotstring, just a regular ::ly::layer hotstring. I am pretty sure using that causes the hotstring to expand regardless of where it is in a word and I didn't want that to happen. Thanks for your reply. Very Happy
Back to top
View user's profile Send private message AIM Address Yahoo Messenger MSN Messenger
Display posts from previous:   
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Ask for Help All times are GMT
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum


Powered by phpBB © 2001, 2005 phpBB Group