Yes this really is a programming question.
Can any of the developers of AutoHotkey tell me how the WinActive function works internally?
Also what optimizations are in place to maximize performance of such polling, if any.
I have long been and continue to be a big AutoHotkey user, however I've since moved onto C++/C#/Python/Shell development.
One of my current projects needs to monitor a set of windows and I'm deliberating which approach to take.
Looking back I've always been very happy with the performance of AutoHotkey's IfWinActive function,
so I'm looking to use the same approach internally in my current project.
Any detailed and technical insights would be greatly appreciated.