Link to home
Start Free TrialLog in
Avatar of Kristao
Kristao

asked on

Internet Explorer

Is it posible to monitor wich urs are user writing in Internet Explorer?

My App will monitor all urls wich user writes and saves them all in file, the file saving part is easy i need to know how to monitor urls.

Exsample:

user write in Internet Explorer >>>> Address: https://www.experts-exchange.com/

app saves the adreses in file or arry <<< this part i know :)

thx
ASKER CERTIFIED SOLUTION
Avatar of Ivanov_G
Ivanov_G
Flag of Bulgaria image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Ferruccio Accalai
Better way should be hooking Internet Explorer for events detecting....
I suggest first to take a look here
http://www.euromind.com/iedelphi/ie5tools/bho.htm
and also this good answer by DragonSlayer here
https://www.experts-exchange.com/questions/20691007/Send-a-message-from-IE-to-my-application-3-000-points.html
BTW : how to grab the content of the IE ? Can i copy the HTML data to a memo box ?
BdLm can you explain your comment?
grabing the URL is a well known methode, i was just thinking about also reading out the HTML
content of the IE. I think about methode will not work for this add. problem ?
NOP...i've asked just to understand if you were asking something related to this question or just trying to suggest something else....
BTW the question point to how to save typed urls, not html content....

F68 ;-)


 IE_Handle := FindWindowEx(IE_Handle, 0, 'ComboBoxEx32', nil);
            if IE_Handle <> 0 then
              begin
       // WE FOUND THE IT ADDRESS EDIT
                      SendMessage(IE_Handle, WM_GETTEXT, sizeof(URL), Integer(@URL[0]));
i just was thinking, if  this modification of your code will bring the html content also


IE_Handle := FindWindowEx(IE_Handle, 0, 'ComboBoxEx32', nil);
            if IE_Handle <> 0 then
              begin
                  // WE FOUND THE html CONTENT
                      SendMessage(IE_Handle, WM_GETTEXT, sizeof(???), Integer(@????[0]));
BdLm, that's not my code, and i'll like to stay related to this Q. (you should ask a new Q. for this)...
BTW the content can't be grabbed that way....

Now, about the Kristao question, take a look also at this very good component coded by rllibby (also available on torry.net)
https://www.experts-exchange.com/questions/20850691/intercepting-internet-explorer-messages.html

It's IEEvent to catch every Internet explorer event (maybe could be useful for you to BdLm)...

F68 ;-)