Const WshFailed = 2 Const WshFinished = 1 Const WshRunning = 0 Set WshShell = WScript.CreateObject("WScript.Shell") Set oWshExec = WshShell.Exec("C:\SOFTWARE\dpixed\DPixed.exe") If oWshExec.Status = WshRunning Then Do Until WshShell.AppActivate(oWshExec.ProcessID) WScript.Sleep 100 Loop WshShell.SendKeys ... End If