Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Translating WSH sample
Message
 
To
27/07/2001 08:59:30
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00536302
Message ID:
00536329
Views:
7
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)
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform