How to get URL in IE

How do i get the URL in IE
in the Delphi App?
Use Win32 API? Or DDE?
Who can help me ?
sunxiaomeiAsked:
Who is Participating?

[Webinar] Streamline your web hosting managementRegister Today

x
 
intheConnect With a Mentor Commented:
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
 
intheCommented:
did you test ?
it works quite nice ..
0
 
intheCommented:
HELLO !
0
Receive 1:1 tech help

Solve your biggest tech problems alongside global tech experts with 1:1 help.

 
intheCommented:
HELLO !
0
 
sunxiaomeiAuthor Commented:
Answer accepted
0
 
sunxiaomeiAuthor Commented:
very good!
0
All Courses

From novice to tech pro — start learning today.