* Create the Shell reference oShell = CREATEOBJECT("WScript.Shell") DECLARE Sleep IN Win32API; INTEGER dwMilliseconds oShell.Run("Notepad") oShell.AppActivate("Untitled – Notepad") = Sleep(100) && Pause VFP for a 1/10 of a second oShell.SendKeys("This sends a sentence to Notepad from VFP.~")For further details, see the article, which is available on-line at www.vfug.org.