Still confused about SendLevel, #InputLevel, threading and interruptions?

Helpful script writing tricks and HowTo's
SAbboushi
Posts: 53
Joined: 08 Dec 2014, 22:13

Still confused about SendLevel, #InputLevel, threading and interruptions?

17 May 2018, 16:41

The posts I found on SendLevel & #InputLevel led me to believe that there isn't a lot of knowledge about how they work.

I spent a few days trying to get a better handle on these topics and learnt a lot by using SciTe4AutoHotkey's debugger (single stepping through the code and examining Call Stack and KeyHistory and ListHotkeys). It took awhile to figure out where to start, so I'm posting this as a starting point for others who find themselves as confused as I was. At least my notes in the script may be helpful whereas the script may confuse you more!

Code: [Select all] [Expand] [Download] (Untitled.ahk)GeSHi © Codebox Plus

SAbboushi
Posts: 53
Joined: 08 Dec 2014, 22:13

Re: Still confused about SendLevel, #InputLevel, threading and interruptions?

17 May 2018, 18:45

ARGHHH!!!! Another lesson learned: I expected using SendLevel/#InputLevel would overcome the "last script launched wins" behavior when multiple scripts are running, but I find that is NOT the case...

Return to “Tutorials”

Who is online

Users browsing this forum: No registered users and 4 guests