Re: Internet Explorer Addresses (History)

[ DelphiLand FAQ ] [ Delphi Tutorials ]

Posted by webmaster Guido on December 07, 2001:

In Reply to: Internet Explorer Addresses (History) posted by WarrenA on November 30, 2001:

: Does anybody know how to get the Address history from internet explorer - (you know the Combo Box "address")

These can be found in the Windows Registry.

For Internet Explorer 3, 4 and 5 they are under:
HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\TypedURLs

For Netscape, you should find them under:
HKEY_CURRENT_USER\Software\Netscape\Netscape Navigator\URL History
(although I didn't test it for NS)

So, you'd have to write a function that fills a TStrings object with all the keys found. The structure is:
Name: url1 Value: ""
Name: url2 Value: ""
and so on...

The function would have to check if key url1 exists and if yes, put it in the list. Next, check for url2, url3, and so on, until no more keys are found.

Would be a nice exercise ;-) Any volunteers?
Tip: I didn't check what happens if a key is deleted, if the gaps are filled in that case so that the numbers stay sequential. If yes, then it's a piece of cake... if no, then it's a bit more complicated... Come on, let's hear from you Delphi freaks!

[ DelphiLand FAQ ] [ Delphi Tutorials ]