Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Integration into IE

Status
Not open for further replies.

TrystUK

Programmer
Oct 21, 2002
10
0
0
GB
I want to capture the last 2 or 3 URL's from Internet Explorer URL history and also paste a URL into IE's address bar with a return to make it go to that page.

Can anyone point me in the direction of a piece of code I can modify/rip/use to do this?

Thanks
My Idea of an OS is one that operates the system not a self contained package of every piece of software ever invented.
 
Try these API functions to capture Internet cache....

Private Declare Function FindFirstUrlCacheEntry Lib "wininet.dll" Alias "FindFirstUrlCacheEntryA" _
(ByVal lpszUrlSearchPattern As String, _
ByVal lpFirstCacheEntryInfo As Long, _
ByRef lpdwFirstCacheEntryInfoBufferSize As Long) _
As Long

Private Declare Function FindNextUrlCacheEntry Lib "wininet.dll" Alias "FindNextUrlCacheEntryA" _
(ByVal hEnumHandle As Long, _
ByVal lpNextCacheEntryInfo As Long, _
ByRef lpdwNextCacheEntryInfoBufferSize As Long) _
As Long

Private Declare Sub FindCloseUrlCache Lib "wininet.dll" (ByVal hEnumHandle As Long)


You can calll ShellExecute API function to Open a desired url in IE...

Private Declare Function ShellExecute Lib "shell32.dll" Alias "ShellExecuteA" _
(ByVal hwnd As Long, _
ByVal lpOperation As String, _
ByVal lpFile As String, _
ByVal lpParameters As String, _
ByVal lpDirectory As String, _
ByVal nShowCmd As Long) As Long

Download API Guide from for mode details
Good luck....
 
Enumerating the cache is not quite the same as accessing the history.
 
That's what I needed Thanks tiraditya Now I can get on with my little applet.

My Idea of an OS is one that operates the system not a self contained package of every piece of software ever invented.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top