Autor Beitrag
arcardia
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 48



BeitragVerfasst: Mi 30.04.03 18:01 
Hallo

Ich versuche derzeit Netscape 7.0 per DDE schnittstelle zu steuern.
Beim Aufruf mit untenstehenden Code öffnen sich aber 2 Netscape Browser - warum ?

ausblenden Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
procedure GotoURL( sURL : string );
var
  dde : TDDEClientConv;
begin
  dde   := TDDEClientConv.Create( nil );
  with dde do
  begin
    { specify the location of netscape.exe }
    ServiceApplication := 'd:\programme\netscape7\netscp.exe';

    { activate the Netscape Navigator }
    SetLink( 'Netscape6', 'WWW_Activate' );
    RequestData('0xFFFFFFFF');

    { go to the specified URL }
    SetLink( 'Netscape6', 'WWW_OpenURL' );

    RequestData(sURL+',,0xFFFFFFFF,0x3,,,' );
    CloseLink;
  end;
  dde.Free;
end;


desweiteren müsste ich einen Referrer Url an den Webserver übergeben , aber wie ?

Moderiert von user profile iconKlabautermann: Code-Tags hinzugefügt.
Moritz M.
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 1672



BeitragVerfasst: Mo 05.05.03 13:49 
Lass das hier mal weg und versuchs dann:
ausblenden Quelltext
1:
2:
3:
{ activate the Netscape Navigator } 
SetLink( 'Netscape6', 'WWW_Activate' ); 
RequestData('0xFFFFFFFF');
arcardia Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 48



BeitragVerfasst: Di 20.05.03 09:28 
Dann wird 1 Fenster geöffnet - Nur leider nicht mit der angegebenen Url

btw: ICH HASSE NETSCAPE :wink: