>Hello,
>
>How can I put text in a textbox of another active window ?
>I mean if my email client is running on the task bar and I would like to send text into the messagepart of the new email window.
>Is there any way to do this?
>
>Thanx in advance
Ron,
Easiest is probably to use the Windows Script Host's WScript.Shell object's Sendkeys() method. Ed Rauh and I documented this in the second of our five part series on the WSH. It appeared in the October 2000 issue of the VFUG newsletter and is available on-line at
www.vfug.org. Here's a sample of using the method
LOCAL oShell AS "WScript.Shell"
oShell = CREATEOBJECT("WScript.Shell")
oShell.Run("Notepad.exe")
oShell.AppActivate("Notepad")
DECLARE INTEGER Sleep IN Win32API;
INTEGER nMilliseconds
= Sleep(200)
oShell.SendKeys("Sent from VFP 7.0~")
George
Ubi caritas et amor, deus ibi est