Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Manipulating a running window outside of FoxPro
Message
 
To
17/01/2002 15:46:00
Fabian Valencia
Calamos Asset Managment Inc.
Naperville, Illinois, United States
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Miscellaneous
Thread ID:
00606273
Message ID:
00606646
Views:
24
>If you could post some demo code that would be great
>
>Thanks!

This is from the October, 2000 issue of the VFUG newsletter series of articles that Ed Rauh and I wrote.
* 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.
George

Ubi caritas et amor, deus ibi est
Previous
Reply
Map
View

Click here to load this message in the networking platform