*--App has already been launched using CREATEPROCESS and now it is in *--a loop using GETEXITCODEPROCESS() waiting for it to close but the *--password box pops up first and a password must be entered without *--the user's input at all behind the scenes so the app will run. *--So far this has always worked the first time IF lnclosepass < 3 .and. PassWin('Password') = Sleep (3000) lnclosepass = lnclosepass + 1 ENDIF FUNCTION PassWin LPARAMETER tcTitle DECLARE INTEGER FindWindow IN Win32API AS FindWindow STRING, STRING lnwindow = FindWindow(0,tcTitle) IF lnwindow > 0 DECLARE INTEGER SetActiveWindow IN Win32API; INTEGER hWnd = SetActiveWindow(lnwindow) oShell = Createobject("wscript.shell") oShell.Sendkeys("~Pawwword~") oShell = NULL RELEASE oshell RETURN .T. ELSE RETURN .F. ENDIFBTW, I assume you meant "Password".< bg >