Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Translating WSH sample
Message
 
À
27/07/2001 08:59:30
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00536302
Message ID:
00536329
Vues:
8
This message has been marked as a message which has helped to the initial question of the thread.
>Your code fails on the very first line: Object WScript not found. Issuing CreateObject() alone, without an object reference, works:

Sorry, my next attempt (it works):
Declare Sleep IN WIN32API INTEGER 
WshShell = CreateObject("WScript.Shell")
WshShell.Run("calc")
=Sleep(100)
WshShell.AppActivate("Calculator")
=Sleep(100)
WshShell.SendKeys("1{+}")
=Sleep(500)
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform