Nice! Thanks for both the idea and the implementation, which is better than what i came up with. (I tried to generate the needle with a loop, and relied on the RegExMatch to do the loop. That might be a bit more efficient, but the return value confused me; i didn't get just one call per callout, as your code does.) Plus, despite my concern about efficiency, it is very fast:
ΔA_TickCount was always 0, so that it should work fast enough in the real-life situation.
BTW, i had also spent some time on getting a reply to boiler's statement of 8:40 am about the usefulness. The little i found on the web about that (the only use case was
here) seems to indicate that few people use it. I had a hunch that AHK acts differently from Perl here, but haven't completed that investigation, and see no reason to continue with that now.