Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Run application from VFP and execute keyboard buffer
Message
 
À
25/11/2005 04:06:59
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 7
OS:
Windows XP SP2
Database:
Visual FoxPro
Divers
Thread ID:
01072020
Message ID:
01072028
Vues:
17
>Maybe I was not so clear. Sorry for my english.
>For example I need to run TotalCommander, move mose pointer on position (200,50) in TotalCommander window and press left button in that position, than quit from my VFP application but TotalCommander need remain open.
>Thank's
>Andrei
LOCAL oWSH AS WScript.Shell
DECLARE INTEGER Sleep IN WIN32API INTEGER
oWSH = CreateObject([WScript.Shell])
oWSH.Run([c:\totalcmd\totalcmd.EXE])  && Run Total Commander
Sleep(1000)                           && Wait until application runned
oWSH.AppActivate("Totalcmd")          && Activate Window of Total Commander
oWSH.SendKeys([^\],100)               && Send Ctrl+\ just to make sure you are in root
About Mouse don't know (yet :o)
Against Stupidity the Gods themselves Contend in Vain - Johann Christoph Friedrich von Schiller
The only thing normal about database guys is their tables.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform