| View previous topic :: View next topic |
| Author |
Message |
majkinetor
Joined: 24 May 2006 Posts: 3589 Location: Belgrade
|
Posted: Fri Oct 06, 2006 3:13 pm Post subject: Avoiding recursion with hotkeys |
|
|
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 |
|
 |
Icfu
Joined: 24 Jul 2005 Posts: 27 Location: Rheinland
|
Posted: Fri Oct 06, 2006 3:29 pm Post subject: |
|
|
$Esc::
Icfu |
|
| Back to top |
|
 |
nick
Joined: 24 Aug 2005 Posts: 342 Location: Berlin / Germany
|
Posted: Fri Oct 06, 2006 3:30 pm Post subject: |
|
|
Hi,
have a look on #UseHook. Should be what you want. _________________ nick
denick @ http://de.autohotkey.com/forum/ |
|
| Back to top |
|
 |
majkinetor ! Guest
|
Posted: Sun Oct 08, 2006 12:28 pm Post subject: |
|
|
| Thx icfu, that was the part of the help I missed somehow! |
|
| Back to top |
|
 |
|