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

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



Joined: 24 May 2006
Posts: 3589
Location: Belgrade

PostPosted: Fri Oct 06, 2006 3: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 MSN Messenger
Icfu



Joined: 24 Jul 2005
Posts: 27
Location: Rheinland

PostPosted: Fri Oct 06, 2006 3: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: 342
Location: Berlin / Germany

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

Hi,

have a look on #UseHook. Should be what you want.
_________________
nick

denick @ http://de.autohotkey.com/forum/
Back to top
View user's profile Send private message
majkinetor !
Guest





PostPosted: Sun Oct 08, 2006 12:28 pm    Post subject: Reply with quote

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