fixed WinWaitActivate and attempt to have custom file name