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 

Avoiding recursion with hotkeys

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



Joined: 24 May 2006
Posts: 4511
Location: Belgrade

PostPosted: Fri Oct 06, 2006 2:13 pm    Post subject: Avoiding recursion with hotkeys Reply with quote

How can I write this:


Code:
Esc::
    if (something)
    {
          do something
          return
    }
    else Send {ESC}

return


without blue line entereing infinite loop.

That is, AHK should not get its own sends

TIA
_________________
Back to top
View user's profile Send private message
Icfu



Joined: 24 Jul 2005
Posts: 27
Location: Rheinland

PostPosted: Fri Oct 06, 2006 2:29 pm    Post subject: Reply with quote

$Esc::

Wink

Icfu
Back to top
View user's profile Send private message Send e-mail
nick



Joined: 24 Aug 2005
Posts: 549
Location: Berlin / Germany

PostPosted: Fri Oct 06, 2006 2:30 pm    Post subject: Reply with quote

Hi,

have a look on #UseHook. Should be what you want.
_________________
nick Wink
Back to top
View user's profile Send private message
majkinetor !
Guest





PostPosted: Sun Oct 08, 2006 11:28 am    Post subject: Reply with quote

Thx icfu, that was the part of the help I missed somehow!
Back to top
Display posts from previous:   
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