Solved

Find windows 'Internet Explorer'

Posted on 2000-05-14
4
186 Views
Last Modified: 2010-04-04
How find all windows is name 'Internet Explorer' and get class name?
0
Comment
Question by:powersul
  • 2
4 Comments
 
LVL 3

Expert Comment

by:Mathias
ID: 2809697
Use the Toolhelp32 functions like Process32First and Process32Next. The returned data consists of many helpful things (Path, PID, and so on...).
0
 
LVL 2

Expert Comment

by:PeterLarsen
ID: 2809699
Hi P,

I'm not sure what you mean. Is is something like this :
var
 h : HWND;
begin
 h:=FindWindow(nil, 'Internet Explorer');

/PL
0
 

Accepted Solution

by:
doncov earned 30 total points
ID: 2809815
var
  wnd:HWND;
  caption:string;
begin
wnd:=GetTopWindow;
repeat
  SetLength(caption,GetWindowtextLength(wnd));
  GetWindowText(wnd,@caption[1],length(caption));

  if pos("Internet Explorer ",caption)>0 then ...

  wnd:=GetNextWindow(wnd,GW_HWNDNEXT);
until wnd=0;

end;
0
 
LVL 3

Expert Comment

by:Mathias
ID: 2810339
>> doncov

The code is right if the caption is Internet Explorer, but you can edit this caption in the registry. You will have to find the IE's window names and compare them.

But the question is answered and it ís simple and good...
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
How to disable drag and drop of columns in a TVirtualStringTree 3 72
ddeman not working in activex 3 93
Delphi XE2 application frozen on Windows 10 10 270
Delphi 2 47
Have you ever had your Delphi form/application just hanging while waiting for data to load? This is the article to read if you want to learn some things about adding threads for data loading in the background. First, I'll setup a general applica…
Introduction I have seen many questions in this Delphi topic area where queries in threads are needed or suggested. I know bumped into a similar need. This article will address some of the concepts when dealing with a multithreaded delphi database…
Windows 10 is mostly good. However the one thing that annoys me is how many clicks you have to do to dial a VPN connection. You have to go to settings from the start menu, (2 clicks), Network and Internet (1 click), Click VPN (another click) then fi…
Internet Business Fax to Email Made Easy - With  eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, f…

911 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now