Sounds just like me.
Awesome! And yes, this was way before multi-tapping was added - I didn't even know Peter added that feature.
There's comments throughout the macro that may help.
The concepts involved in this macro are difficult to understand, so if you don't "get it", don't feel bad - they're advanced programming concepts. But here's the gist:
-
One macro can actually be running multiple instances at the same time. In other words, if a macro is launched by a hot key, and it doesn't finish running before the hot key is pressed again, then a second instance of the macro starts running simultaneously.
This is a tricky thing to wrap your head around, so you may have to think on it for a while. I suspect some people may never be able to understand this - like I said, it's an advanced-level programming concept.
-
But if you do understand #1, here's the really mind-blowing part: If one instance of the macro makes changes to a global variable, that change affects the other instance.
This can cause some really strange things to happen. For example, if you were using a global variable to count the number of times you were going through a loop, and another instance starts running, the counter could get severely confused.
That's actually why Peter implemented Local and Instance variables. If a second instance of the macro sets a Local or Instance variable, it only affects that instance.
This is all really confusing, I know, and you don't really need to understand it to use the template. If, however, you do manage to wrap your mind around this, then you may have other questions, so feel free to ask.