AutoHotkey Community

It is currently May 26th, 2012, 4:49 pm

All times are UTC [ DST ]




Post new topic Reply to topic  [ 4 posts ] 
Author Message
PostPosted: June 29th, 2005, 3:28 pm 
Offline

Joined: February 17th, 2005, 10:06 am
Posts: 280
Location: Hungary, Budapest
Consider this example:
Code:
::nciht::nicht

$Space::
   Send {Space}
   Return
When $Space is not defined as a hotkey, the ::nciht:: hotstring fires on Space, when $Space is defined, the hotstring fires only on the other ending characters like Enter, or Tab.

_________________
Is there another word for synonym?


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: June 29th, 2005, 3:41 pm 
Offline

Joined: March 2nd, 2004, 3:36 pm
Posts: 10720
This is by design. Hotstrings cannot be fired by simulated keystrokes from an AutoHotkey script because that would create a danger of an infinite loop of keystrokes (which might completely lock up a system).

I understand that in this case there is no danger of that. So perhaps there should be some way for the Send command to flag its events as eligible for hotstrings.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: June 29th, 2005, 4:37 pm 
Offline

Joined: February 17th, 2005, 10:06 am
Posts: 280
Location: Hungary, Budapest
Chris wrote:
This is by design. Hotstrings cannot be fired by simulated keystrokes from an AutoHotkey script because that would create a danger of an infinite loop of keystrokes (which might completely lock up a system).
Oh, I see. This is completely understandable, security is important. Is this in the help somewhere? I couldnt find it, sorry if i overlooked it.
So the only way at the moment is to change my hotkey, or ask the author of the application i want to modify the keys in, to make it able to change shortcut keys :-)
Chris wrote:
I understand that in this case there is no danger of that. So perhaps there should be some way for the Send command to flag its events as eligible for hotstrings.
Is there a chance to implement it in the near future? I dont think it has a high priority on your todo list ;-)

_________________
Is there another word for synonym?


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: June 30th, 2005, 1:35 am 
Offline

Joined: March 2nd, 2004, 3:36 pm
Posts: 10720
SanskritFritz wrote:
Is this in the help somewhere?
Yes, it's buried in the remarks of the hotstrings page:
Quote:
Hotstrings can never be triggered by keystrokes produced by any AutoHotkey script. This avoids the possibility of an infinite loop where hotstrings trigger each other over and over.


Quote:
Is there a chance to implement it in the near future? I dont think it has a high priority on your todo list ;-)
I'll give it some thought, but because the solution will probably involve adding a new command or directive, it probably won't happen right away. This is because new commands are always given careful scrutiny before adding them to reduce the chance that they will rapidly become obsolete in light of other features, or otherwise seem like a bad idea in hindsight.

Thanks for your suggestion. When it gets done, I think it will be helpful to others too.


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

All times are UTC [ DST ]


Who is online

Users browsing this forum: No registered users and 2 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