Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Translating WSH sample
Message
From
27/07/2001 09:42:07
 
 
To
27/07/2001 09:37:59
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00536302
Message ID:
00536358
Views:
6
>>The code example is using two different instances of the Shell object, doing the waits with one, and the SendKeys with the other. If you want to follow this example to the T, you need to create an other instance of the shell object, and call it 'WScript'. But I don't think you need to- you should be able to just make all the calls on the same object...
>
>Thanks for your input. However, I am sorry, but I don't understand how to do this. I tried to replace WScript with WshShell, but Visual FoxPro was not too happy.
>
>Hilmar.

Just add:

WScript = CREATEOBJECT("WScript.Shell")

to the top of your code to use two objects.

Do you mean that you tried to make all the calls on one object and VFP gave an error? What error?
Erik Moore
Clientelligence
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform