Solved

How to get URL in IE

Posted on 2000-04-29
6
432 Views
Last Modified: 2012-06-21
How do i get the URL in IE
in the Delphi App?
Use Win32 API? Or DDE?
Who can help me ?
0
Comment
Question by:sunxiaomei
  • 4
  • 2
6 Comments
 
LVL 17

Accepted Solution

by:
inthe earned 50 total points
ID: 2762982
hi,
you can use dde hees an example someone made for anoter question:

add ddeman to uses section then:

                  function Get_URL(Servicio: string): String;
                  var
                    Cliente_DDE: TDDEClientConv;
                  begin
                    Result := '';
                    Cliente_DDE:= TDDEClientConv.Create( nil );
                    with Cliente_DDE do
                      begin
                        SetLink( Servicio,'WWW_GetWindowInfo');
                        Result := StrPas(RequestData('0xFFFFFFFF'));
                        CloseLink;
                      end;
                    Cliente_DDE.Free;
                  end;

procedure TForm1.Button1Click(Sender);
begin
 showmessage(Get_URL('Netscape'));
    or
 showmessage(Get_URL('IExplore'));
end;


Regards Barry
0
 
LVL 17

Expert Comment

by:inthe
ID: 2770875
did you test ?
it works quite nice ..
0
 
LVL 17

Expert Comment

by:inthe
ID: 2884379
HELLO !
0
Active Directory Webinar

We all know we need to protect and secure our privileges, but where to start? Join Experts Exchange and ManageEngine on Tuesday, April 11, 2017 10:00 AM PDT to learn how to track and secure privileged users in Active Directory.

 
LVL 17

Expert Comment

by:inthe
ID: 2884380
HELLO !
0
 

Author Comment

by:sunxiaomei
ID: 2895997
Answer accepted
0
 

Author Comment

by:sunxiaomei
ID: 2895998
very good!
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

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

The uses clause is one of those things that just tends to grow and grow. Most of the time this is in the main form, as it's from this form that all others are called. If you have a big application (including many forms), the uses clause in the in…
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…
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…

821 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