Solved

Find windows 'Internet Explorer'

Posted on 2000-05-14
4
185 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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

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…
In my programming career I have only very rarely run into situations where operator overloading would be of any use in my work.  Normally those situations involved math with either overly large numbers (hundreds of thousands of digits or accuracy re…
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

746 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

11 Experts available now in Live!

Get 1:1 Help Now