Dear all, I am new to AutoIt and I am confused why my script has such high CPU usage. The script only checks the title of the active window and then waits until that window is not active anymore. Then it checks the title of the new active window and so on and so on.... I included Debug.au3. And it tells me that the script is atm at the WinWaitNotActive($wintitle) but it has a CPU usage of average of 5%. #region options Opt("MustDeclareVars", 1) AutoItSetOption("TrayIconDebug", 1) #e