Hello,I am using Autoit to generate a script for installing a game.After the instalation is complete the next window is "finish" ( or other windows depending on the game,like installing DirectX,etc).Well,this one last window seems not to be active no matter what I do. this is what I wrote ............. WinWaitActive("Setup") Send("!i") ;at this point the game is installed but the script continues with another window WinWait("Contents") If Not WinActive("Contents") Then WinActive("Contents") WinWaitActive("Contents") Send("!n") P.S. does anyone know how to close a window,something similar to Alt-F4 Thank you.