In the course of making myself an AutoIt program, I've come across this phenomenon, and I have no idea why it happens. I'm trying to make an "options" window, with standard options window behaviour. However, when it closes, the main window immediately loses focus. The only remedy is using WinActivate($main), but sometimes there's a slight flicker, and I find it to be rather unseemly. Why does this happen, and is there any prettier way of going about this? #include <GUIConstantsEx.au3&g