Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Manipulating a running window outside of FoxPro
Message
 
À
17/01/2002 15:46:00
Fabian Valencia
Calamos Asset Managment Inc.
Naperville, Illinois, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Divers
Thread ID:
00606273
Message ID:
00606646
Vues:
23
>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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform