Thanks for sharing that. Your code clearly shows the app scripting power of AHK, which I had not seen elsewhere. Didn't see anything like that on the AHK web site.
Your code reminds me a lot of JavaScript for Automation (JXA), which is a sister to AppleScript and also based on Apple Events, but uses the core JavaScript engine.
No doubt that compiled code is faster, but I have to say that when I can search 18,000 for dups in only 0.3 sec using ASObjC, that is fast enough for me.
But even native AppleScript can be very fast. For example, we developed a script that searches 10 windows and 200 tabs of Chrome (or Safari) to find and open the window/tab of a given URL, in only 0.14 sec.
Good point, and I certainly have no recent experience in Windows. I think what caught my attention is that you moved from Mac to Windows because of automation. I had not see anyone previously making a platform choice for that reason.
Thanks for sharing your experience.
You're right. I'll split our discussion to a new topic now.