Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Obtain an object reference to 3rd party dialog box.
Message
From
27/07/2000 07:47:04
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Title:
Obtain an object reference to 3rd party dialog box.
Miscellaneous
Thread ID:
00397494
Message ID:
00397494
Views:
36
Hi everyone

I have a reference to an IE object.

The IE object creates a `save as` dialog box.

I would like to set the filename and click OK automatically.

I have done this with the Windows Scripting Host and the sendkeys method ( see bottom), but its horrible and worse still unreliable.

Is there anyway for me to get a reference to this dialog box and do this properly using the methods and properties of the dialog box?

Thanks

Mace


loWSH = CREATEOBJECT('WScript.Shell')

*-- send in the path and filename
loWSH.AppActivate( "Save As")
loWSH.SendKeys( lcString)

*-- send OK keypress
loWSH.AppActivate( "Save As")
loWSH.SendKeys( CHR(13))

loWSH = NULL
Next
Reply
Map
View

Click here to load this message in the networking platform