Autor Beitrag
Grolle
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 95

Win XP, Win 7
Delphi 2010 Pro
BeitragVerfasst: So 12.02.06 14:03 
Hallo!
Ich möchte die Telefonbuchsuche im Internet nutzen z. B. www.dasoertliche.de. Der Anwender
soll in meinem Programm die Daten in EditFelder füllen und die Suche soll dann automatisch
mit dem Standardbrowser starten (also mit ShellExecute). Wie bekomme ich den entsprechenden
Link für die Suche heraus. Habs schon mit manuellem rauskopieren getestet. Das hat aber nicht
geklappt.

Viele Grüße vom Grolle
Lannes
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 2352
Erhaltene Danke: 4

Win XP, 95, 3.11, IE6
D3 Prof, D4 Standard, D2005 PE, TurboDelphi, Lazarus, D2010
BeitragVerfasst: So 12.02.06 15:10 
Hallo,

wenn man sich mal die URL nach einer Suche anschaut und interpretiert,
kommt man zu folgendem Ergebnis das auch funktioniert:
ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
var s : String;
begin
  s := 'http://www.dasoertliche.de/oetb_1.htm?'
       +'kw=Göppert'             //Suchwort
       +'&fn='                   //Vorname
       +'&st='                   //Straße
       +'&hnr='                  //Nr
       +'&pc2='                  //PLZ
       +'&ci=Waltrop'            //Ort oder Vorwahl
       +'&Suchen.x=64&Suchen.y=8';
  shellexecute(Form1.Handle,nil,PChar(s),nil,nil,SW_SHOWNORMAL);
end;

_________________
MfG Lannes
(Nichts ist nicht Nichts) and ('' <> nil ) and (Pointer('') = nil ) and (@('') <> nil )
Grolle Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 95

Win XP, Win 7
Delphi 2010 Pro
BeitragVerfasst: Mo 13.02.06 12:29 
Besten Dank. Das klappt einwandfrei!