Sleep(3000) If WinExists("[CLASS:ShockwaveFlash]") Then WinActivate("[CLASS:ShockwaveFlash]") Else Run("D:\DBSA2.exe") EndIf