Solved

Detect browser Urls and close them if appropriate

Posted on 2002-04-11
7
240 Views
Last Modified: 2010-04-04
Hi,

This is probably a tough one, that's why I'm offering 300 points for it.

Here's the deal.  I have a list of urls which may not be opened.  I have to check if a browser with any of the urls on the list is running, if it is, then shut it down.

This has to work with IE, Netscape and preferably Opera.

I know this is possible somehow, I've seen components that can retrieve the URLs of all open browsers, but they are never for free.

Regards,
Hagur
0
Comment
Question by:hagur
[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
7 Comments
 
LVL 9

Expert Comment

by:ginsonic
ID: 6936002
uses DDEMan;

procedure TForm1.Button1Click(Sender: TObject);
var
  DDE:TDDEClientConv;
begin
  DDE:=TDDEClientConv.Create(self);
  if DDE.SetLink('IExplore','WWW_GetWindowInfo') then
  Memo1.Lines.Add(DDE.RequestData('0xFFFFFFFF,sURL,sTitle'));
  DDE.Free;
end;
0
 
LVL 17

Expert Comment

by:inthe
ID: 6936329
nick,
nice idea but netscape doent support dde anymore.(netscape 6 i mean)

may have to use findwindow()to get to the text edit.
0
 
LVL 3

Author Comment

by:hagur
ID: 6938275
Thanks for your comments guys,  I knew about the DDE method to retrieve the url from IE.  But what about
Netscape or Opera?

Can anyone please show me how I could do this?
0
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 5

Expert Comment

by:Gwena
ID: 6938834
listening :-)
0
 
LVL 3

Author Comment

by:hagur
ID: 6949245
Anyone?
0
 
LVL 1

Accepted Solution

by:
quantum2 earned 300 total points
ID: 7011848
Yeah...
http://www.atarimax.com/delphi/tgraburl/

Works like a charm !

Q2
0
 
LVL 1

Expert Comment

by:pnh73
ID: 9003165
No comment has been added lately, so it's time to clean up this TA.
I will leave a recommendation in the Cleanup topic area that this question is:

Accept Answer from quantum2

Please leave any comments here within the next seven days.
 
PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER!
 
Paul (pnh73)
EE Cleanup Volunteer
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying 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

Suggested Solutions

Title # Comments Views Activity
Delphi - replicating a form 8 112
Delphi Firemonkey send email on Android 1 81
how can i delete one control based on its tagstring ? 6 58
Posting a string with PostMessage 23 48
In this tutorial I will show you how to use the Windows Speech API in Delphi. I will only cover basic functions such as text to speech and controlling the speed of the speech. SAPI Installation First you need to install the SAPI type library, th…
Creating an auto free TStringList The TStringList is a basic and frequently used object in Delphi. On many occasions, you may want to create a temporary list, process some items in the list and be done with the list. In such cases, you have to…
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…
This video shows how to use Hyena, from SystemTools Software, to update 100 user accounts from an external text file. View in 1080p for best video quality.

739 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