how to view "browser history" for google chrome, firefox/mozzila, I.E and orprea stored on PC using delphi?

boycoder
boycoder used Ask the Experts™
on
as title says, to read and show all browser history on delphi message.
button showing show my history >>  then shows all history from all browsers with text scroll.

option to also delete history on all browsers if required.
delphi..  snippet would be great 10.12pm and real tired :)
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Emmanuel PASQUIERFreelance Project Manager
Top Expert 2010

Commented:
for IE, if I remember correctly you can do it accessing the WebBrowser component using COM interface.
But since this is a not too easy task, I recommend you look at this
http://bsalsa.com/DP/download.php?file=0

which is an enhanced version of Embedded WebBrowser, and provides tons of delphi functions to help your applications interact with IE. I suppose there is something about History in there
Emmanuel PASQUIERFreelance Project Manager
Top Expert 2010

Commented:
or better yet, by the same author :
http://www.bsalsa.com/history_url.html
Emmanuel PASQUIERFreelance Project Manager
Top Expert 2010

Commented:
while I'm still looking for other browsers, I found this. Not what you asked (bookmarks, not history), but hey that could be useful too, or give ideas (like it says FireFox uses sqllite to store bookmarks, it might be interesting to investigate what it might store in sqllite DB as well)

http://stackoverflow.com/questions/1174490/how-to-get-firefox-bookmarks-from-a-delphi-application
Microsoft Azure 2017

Azure has a changed a lot since it was originally introduce by adding new services and features. Do you know everything you need to about Azure? This course will teach you about the Azure App Service, monitoring and application insights, DevOps, and Team Services.

Emmanuel PASQUIERFreelance Project Manager
Top Expert 2010

Commented:
ok, a little deeper for FireFox :
http://stackoverflow.com/questions/54036/programmatically-access-browser-history
which links somewhere to this :
http://www.forensicsblog.net/?p=5

that covers it nicely, you know what to dig for : a SQLite component set for Delphi
http://stackoverflow.com/questions/850435/delphi-components-to-use-with-sqlite
and then start playing

Author

Commented:
super will check this out
Commented:
To get the browser history, monitor first the urls.  please try.
unit Unit1;

interface

uses
  Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
  Dialogs, ExtCtrls, StdCtrls;

type
  TForm1 = class(TForm)
    Timer1: TTimer;
    ListBox1: TListBox;
    procedure Timer1Timer(Sender: TObject);
  private
    { Private declarations }
  public
    { Public declarations }
  end;

var
  Form1: TForm1;

implementation

{$R *.dfm}

uses
  ddeman;
  
function Get_URL(Servicio: string): String;
var
   Cliente_DDE: TDDEClientConv;
   temp:PChar;
begin
    Result := '';
    Cliente_DDE:= TDDEClientConv.Create( nil );
     with Cliente_DDE do
        begin
           SetLink( Servicio,'WWW_GetWindowInfo');
           temp := RequestData('0xFFFFFFFF');
           Result := StrPas(temp);
           StrDispose(temp);
           CloseLink;
        end;
      Cliente_DDE.Free;
end;

procedure TForm1.Timer1Timer(Sender: TObject);
var i:integer;
begin
if Get_URL('IEXPLORE')<>'' then listbox1.Items.Add(Get_URL('IEXPLORE'));
if Get_URL('firefox')<>'' then listbox1.Items.Add(Get_URL('firefox'));
if Get_URL('opera')<>'' then listbox1.Items.Add(Get_URL('opera'));
for i:= listbox1.items.count-1 downto 0 do if listbox1.Items.IndexOf(listbox1.Items[i])<i then listbox1.Items.Delete(i);
end;


end.

Open in new window

Emmanuel PASQUIERFreelance Project Manager
Top Expert 2010

Commented:
ok, I would have thought this question being much more complex than those few lines. And the multitude of coders who have lost their hairs with that problem too..

Can anyone tell me what reference documentation backup that code ?
I get it that it does not retrieve the History (which was the question) but must run constantly to monitor the URLs used ? how it works ? Are you sure that it works the same on all 3 browsers ?
Since it's based on a timer, that does not looks like a consistent solution....

Commented:
epasquier,
probably thats what he meant,

thanks
Emmanuel PASQUIERFreelance Project Manager
Top Expert 2010

Commented:
probably thats what he meant

Open in new window

That is not the real issue, there are often such validated answers which are not answering really the question asked, either because the question was not well described in the first place, or because at one point the asker changed direction. I don't care really.

What I'd like to know, is an explanation of that solution, because I don't see how it works, by the look of it it has been written by an italian or spanish, and if you cannot explain how it works, you should at least have linked to where you found that code.

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial