>>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 >