473,406 Members | 2,954 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

information from internet-explorer

I'm trying to write a log which save each time internet explorer is opened
or closed

and all of the url which where visited?

Any help is greatly appreciated.
Nov 17 '05 #1
10 2367
URL you can always get from History.
PK

Nov 17 '05 #2
Hello

Just use the following line of code

Process[] arrProcess;
arrProcess=Process.GetProcesses(/* Your Conputer Name*/);

foreach (Process p in arrProcess)
{
if (p.ProcessName=="iexplore")
{
// Log the Event, here u can get when the process
is started or closed
}
}
"milk-jam" <mi******@newsgroups.nospam> wrote in message
news:e%****************@TK2MSFTNGP15.phx.gbl...
I'm trying to write a log which save each time internet explorer is opened
or closed

and all of the url which where visited?

Any help is greatly appreciated.

Nov 17 '05 #3
Im trying to get it while it happen from the internet-explorer address bar

"piotrek" <pi*************@gmail.com> wrote in message
news:ad**************************@news.chello.pl.. .
URL you can always get from History.
PK

Nov 17 '05 #4
if you want to get the all the information about the running instance of the
IE , the as far as i think , u have to hook the Events of IE , check out the
following link

http://www.codeproject.com/csharp/runninginstanceie.asp

"milk-jam" <mi******@newsgroups.nospam> wrote in message
news:e%****************@TK2MSFTNGP15.phx.gbl...
I'm trying to write a log which save each time internet explorer is opened
or closed

and all of the url which where visited?

Any help is greatly appreciated.

Nov 17 '05 #5
Thank Ali thats is very helpfull any idea on how to get the url
internet-explorer is visiting after the explorer is opened?
"ALI RAZA" <al*************@yahoo.com> wrote in message
news:eW**************@TK2MSFTNGP10.phx.gbl...
Hello

Just use the following line of code

Process[] arrProcess;
arrProcess=Process.GetProcesses(/* Your Conputer Name*/);

foreach (Process p in arrProcess)
{
if (p.ProcessName=="iexplore")
{
// Log the Event, here u can get when the process
is started or closed
}
}
"milk-jam" <mi******@newsgroups.nospam> wrote in message
news:e%****************@TK2MSFTNGP15.phx.gbl...
I'm trying to write a log which save each time internet explorer is
opened or closed

and all of the url which where visited?

Any help is greatly appreciated.


Nov 17 '05 #6
Hi milk,

We can use Microsoft Internet Control to get the reference of each IE
window and get information from these IE window. For more information,
please refer to the link below:
"Automating IE Remotely Using C#"
http://weblogs.asp.net/stevencohn/ar.../23/62117.aspx

Below is the source code for enumerating all the IE windows and make them
Full screen. Also, I have attached to the BeforeNavigate2 for a demo:
private void button1_Click(object sender, System.EventArgs e)
{
string filnam;

SHDocVw.ShellWindows shellWindows =
new SHDocVw.ShellWindowsClass();

foreach (SHDocVw.InternetExplorer ie
in shellWindows)
{
Console.WriteLine(ie.LocationURL);

filnam = System.IO.Path.GetFileNameWithoutExtension(
ie.FullName).ToLower();

if (filnam.Equals("iexplore"))
{
ie.BeforeNavigate2+=new
DWebBrowserEvents2_BeforeNavigate2EventHandler(ie_ BeforeNavigate2);
ie.FullScreen=true;
}
}
}

private void ie_BeforeNavigate2(object pDisp, ref object URL, ref object
Flags, ref object TargetFrameName, ref object PostData, ref object Headers,
ref bool Cancel)
{
MessageBox.Show("IE navigating to another URL ");
}
Hope this helps.
================================================== ===
Thank you for your patience and cooperation. If you have any questions or
concerns, please feel free to post it in the group. I am standing by to be
of assistance.

Best regards,
Jeffrey Tan
Microsoft Online Partner Support
Get Secure! - www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.

Nov 17 '05 #7
Hi milk,

Does my reply make sense to you? Is your problem resolved? Please feel free
to tell me, thanks

Best regards,
Jeffrey Tan
Microsoft Online Partner Support
Get Secure! - www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.

Nov 17 '05 #8
Thank you very much for your reply sorry for the delay response i did not
notice you replied up until today.
Your soultion is not what im trying to achive. Your solution will return the
url of the control you created within your solution/project and i'm looking
to get the url from internet explorer which is not part of my application.
I think the way to do this is by adding a toolbar or a panel to Internet
explorer which will than send my appliction the url
I played with the registry and was able to add an icon to send the url to my
application. Im yet to find the way to add a pannel so that i might be bale
to include my application in that pannel and avoid loading my application
seperaly.

Any idea will be very helpfull

""Jeffrey Tan[MSFT]"" <v-*****@online.microsoft.com> wrote in message
news:Kr**************@TK2MSFTNGXA01.phx.gbl...
Hi milk,

We can use Microsoft Internet Control to get the reference of each IE
window and get information from these IE window. For more information,
please refer to the link below:
"Automating IE Remotely Using C#"
http://weblogs.asp.net/stevencohn/ar.../23/62117.aspx

Below is the source code for enumerating all the IE windows and make them
Full screen. Also, I have attached to the BeforeNavigate2 for a demo:
private void button1_Click(object sender, System.EventArgs e)
{
string filnam;

SHDocVw.ShellWindows shellWindows =
new SHDocVw.ShellWindowsClass();

foreach (SHDocVw.InternetExplorer ie
in shellWindows)
{
Console.WriteLine(ie.LocationURL);

filnam = System.IO.Path.GetFileNameWithoutExtension(
ie.FullName).ToLower();

if (filnam.Equals("iexplore"))
{
ie.BeforeNavigate2+=new
DWebBrowserEvents2_BeforeNavigate2EventHandler(ie_ BeforeNavigate2);
ie.FullScreen=true;
}
}
}

private void ie_BeforeNavigate2(object pDisp, ref object URL, ref object
Flags, ref object TargetFrameName, ref object PostData, ref object
Headers,
ref bool Cancel)
{
MessageBox.Show("IE navigating to another URL ");
}
Hope this helps.
================================================== ===
Thank you for your patience and cooperation. If you have any questions or
concerns, please feel free to post it in the group. I am standing by to be
of assistance.

Best regards,
Jeffrey Tan
Microsoft Online Partner Support
Get Secure! - www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.

Nov 29 '05 #9
Hi milk,

Thanks for your feedback.

No, ShellWindowsClass can be used to enumerate all the shell windows in the
system, not only the IE window returned by my application. You can do some
test with my code snippet.

Also, if you really need the information regarding adding a toolbar/panel
to the IE window, we have to do COM interop with Shell interface to get
this done. Below are some sample articles:
"Extending Explorer with Band Objects using .NET and Windows Forms"
http://www.codeproject.com/csharp/dotnetbandobjects.asp
"Command Prompt Explorer Bar"
http://www.codeproject.com/csharp/commandbar.asp

Hope this helps

Best regards,
Jeffrey Tan
Microsoft Online Partner Support
Get Secure! - www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.

Dec 6 '05 #10
Hi,

I also want to do similar thing. But I don't want the details of all the
windows at one shot. I want the details of IE window as soon as IE
window is opened. So is there any event which gets fired when the IE
window is opened which I can capture in my program. My program will be a
Windows service.

Please let me know how it can be done.

Thanks in advance.

Sunil

*** Sent via Developersdex http://www.developersdex.com ***
Dec 27 '05 #11

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Idris Farooqi | last post by:
Could anyone please tell me, where I can download the Internet Information Services ( 5.0) from. Apparently I'm supposed to have it on my WinXP, but I've checked and double checked, and havent...
1
by: Soheil | last post by:
I hope u can help me. I would like to test ASP websites and therefore I neet the Internet Information Service feature from Win XP. The problem is that I have Win XP Home Edition. Is there any way...
34
by: George Hester | last post by:
<html><head><script>z='yCj45%20zeB0+e%21%29OpA6%2CNTn*mkK0+euxe%23i%24NTn*%2 92%2C%29/%21J6%20%7E%3A%20ScUglJ5%2C%5B3G%3DewU%26q%24Ut%3BDA%3CR@FKyp%3Exv%...
1
by: Greg Anigbo | last post by:
Hello Anyone, I recently purchased Windows XP & VB.net, academic edition for school work. I can't run any programs on the VBnet or open the ASP working environment. When I try to run a program...
3
by: Gus M. Creces | last post by:
Hi... I'm looking for some information, technical, white paper - whatever - on how SFTP works. I need to add SFTP capabilities into an app's present FTP capabilities. I'm not really looking for a...
5
by: Rhino | last post by:
For DB2 V8 on Windows/Linux/Unix, the idea of having the Information Center online and accessible from IBM via the Internet is probably the best approach for most users. It keeps the information...
2
by: Neil Guyette | last post by:
Hello, All, I'm looking for information on how to create dockable forms. Basically, I'm writing a .NET application and instead of using C# (I want to refresh my C++ skills) I'm going to use...
2
by: Charles Tam | last post by:
I've running IIS and .NET 1.1 on XP Pro. I've also installed "Internet Information Services Snap-In" but it does not appear in the Adminstrative Tools. Anyway, when I try to execute the...
2
by: Stefke | last post by:
Hi, I want to write a little application with a textbox in which I can enter a systems host name or ip address. After clicking on a button Get Info, I want to display an overview of the systems...
11
Niheel
by: Niheel | last post by:
http://bytes.com/images/howtos/information_overloaded.jpgPaul Graham wrote an interesting article a few months back about how the internet is leading to information overload for information workers...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.