Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Running IE with VFP
Message
From
24/01/2000 19:29:49
 
 
To
24/01/2000 19:15:05
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00321928
Message ID:
00321944
Views:
21
>>Hi all
>>
>>I'd like to run IE from a menu in one of my applications that calls IE and then navigates to a specific web address. In my last message (which heaps of people responded to) I got some really good feedback - but unfortunately I didn't understand much of it! I've tried to use the ShellExecute() command without much success...
>>
>>Does anyone have some sample code that I could perhaps "borrow" that calls IE and navigates the user to a web address????
>>
>>Thanks & thanks everyone who responded last time as well!
>>
>>
>>Chris Kable
>>FuelTrac
>
>oIE = CREATEOJECT("InternetExplorer.Application")
>oIE.Navigate("www.levelextreme.com")
>

If you want to directly manipulate a single instance of IE, probably the best of the available alternatives, since oIE is the object handle to the launched IE instance.

>or
>
>oShell = CREATEOBJECT("Shell.Application")
>oShell.Open("http://www.levelextreme.com")
>

Gee, this looks awfully familiar. Strange what pops off the top of your head at odd hours! This is what I tend to do, since the Windows collection of oShell lets you hook to all running IE instances, and I've almost always got an instance of Shell.Application wallowing in the muck somewhere, since it does lots of other useful stuff.

>or
>
>DECLARE Long ShellExecute IN Shell32.dll Long, String, String, String, String, Long
>
>Shellexecute(0,"Open","c:\MyFile.doc","","",0)
>

For those on whom NetScrape is inflicted...but no easy object hook (unless you launch IE, in which case, either of the first two is preferable!)

What, no RUN command example????? < g >
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform