Solved

Find windows 'Internet Explorer'

Posted on 2000-05-14
4
191 Views
Last Modified: 2010-04-04
How find all windows is name 'Internet Explorer' and get class name?
0
Comment
Question by:powersul
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

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

Introduction The parallel port is a very commonly known port, it was widely used to connect a printer to the PC, if you look at the back of your computer, for those who don't have newer computers, there will be a port with 25 pins and a small print…
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 this video, viewers will be given step by step instructions on adjusting mouse, pointer and cursor visibility in Microsoft Windows 10. The video seeks to educate those who are struggling with the new Windows 10 Graphical User Interface. Change Cu…
Do you want to know how to make a graph with Microsoft Access? First, create a query with the data for the chart. Then make a blank form and add a chart control. This video also shows how to change what data is displayed on the graph as well as form…

691 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