LOCAL oWS AS Wscript.Shell DECLARE INTEGER FindWindow IN WIN32API STRING lcClass, STRING lcCaption Declare INTEGER SetForegroundWindow IN WIN32API INTEGER hwnd lcWindowCaption = [Untitled - Notepad] && Here you must set caption of the application oWSH = CREATEOBJECT([Wscript.Shell]) oWSH.Run([NotePad.Exe]) lnHwnd = 0 lnTime = DATETIME() DO WHILE lnHwnd == 0 AND DATETIME() - lnTime < 10 && Wait untill find the window or 10 seconds timeout lnHwnd = FindWindow(NULL, lcWindowCaption) DOEVENTS ENDDO IF lnHwnd > 0 && No timeout, we found the window SetForegroundWindow(lnHwnd) && Activate the application oWSH.SendKeys([This is a Test]) && Send Keys ENDIF CLEAR DLLS FindWindow, SetForegroundWindowFollow the link provided by Farhad to see what Keys you can send.