Autor Beitrag
maxk
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 1696
Erhaltene Danke: 1

Win XP, Debian Lenny
Delphi 6 Personal
BeitragVerfasst: Di 25.02.03 12:58 
Wenn man im IE ... eingibt, startet er das eigene Programm zum anzeigen. Wenn ich aber sig2dat://... eingebe, dann startet er Sig2Dat mit dem Paramter sig2dat://.... Wie registriere ich 1234://, damit mein Programm gestartet wird?

maxk

PS: Ich poste hier, da der IE mit Netwerk zu tun hat!

EDIT: Ein paar sehr peinliche Rechtschreibfehler entfernt :roll:

_________________
Ein Computer wird das tun, was Du programmierst - nicht das, was Du willst.


Zuletzt bearbeitet von maxk am Di 25.02.03 16:55, insgesamt 1-mal bearbeitet
maxk Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 1696
Erhaltene Danke: 1

Win XP, Debian Lenny
Delphi 6 Personal
BeitragVerfasst: Di 25.02.03 16:53 
Ich hab's herausgefunden: Moderiert von user profile iconNarses: Zugehöriger MSDN-Link: msdn.microsoft.com/e...aa767914(VS.85).aspx
Folgendes muss in die Registry eingetragen werden:
ausblenden Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
[HKEY_CLASSES_ROOT\test]
@="URL:Testurl"
"URL Protocol"=""

[HKEY_CLASSES_ROOT\test\shell]

[HKEY_CLASSES_ROOT\test\shell\open]

[HKEY_CLASSES_ROOT\test\shell\open\command]
@="command /K echo %1"

Dann geht's!

maxk

_________________
Ein Computer wird das tun, was Du programmierst - nicht das, was Du willst.
Moritz M.
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 1672



BeitragVerfasst: Di 25.02.03 18:31 
Hää...wie macht man dass?
Kannst du das etwas detaillierter schreiben?
Alibi
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 458

Win2K SP3
Delphi 6 Ent
BeitragVerfasst: Di 25.02.03 18:45 
An welchem Punkt kommst du denn nicht weiter? Einfach die beschriebenen Regeinträge machen.
Moritz M.
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 1672



BeitragVerfasst: Di 25.02.03 18:47 
Ich kenn mich einfach in dem Beispiel nicht aus. Das ist mein problem. Ne textanleitung wäre schön.
Alibi
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 458

Win2K SP3
Delphi 6 Ent
BeitragVerfasst: Di 25.02.03 19:07 
Also weißt du nicht, wie man Regeinträge mit Delphi macht?
Moritz M.
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 1672



BeitragVerfasst: Di 25.02.03 20:07 
Doch! Klar! Ich weiß wie man mit der Registry umgeht(auch in Delphi). Nur versteh ich nicht, was ich machen soll!
maxk Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 1696
Erhaltene Danke: 1

Win XP, Debian Lenny
Delphi 6 Personal
BeitragVerfasst: Di 25.02.03 20:25 
Hast du verstanden, was ich meine? Wenn der IE nicht "weiter weiß", dann nimmt er ein anderes Programm. Das wird ausgeführt, um die Infos zu verarbeiten.

_________________
Ein Computer wird das tun, was Du programmierst - nicht das, was Du willst.
Moritz M.
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 1672



BeitragVerfasst: Di 25.02.03 20:26 
Ich hab verstanden was du meinst nur die ANleitung, wie du das machts, eben nicht.
maxk Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 1696
Erhaltene Danke: 1

Win XP, Debian Lenny
Delphi 6 Personal
BeitragVerfasst: Di 25.02.03 21:07 
Ach so :P :P ,
ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
with TRegistry.Create do try
 RootKey:=HKEY_CLASSES_ROOT;
 if not OpenKey('\123',True) then exit; // Fehler beim Zugriff
 WriteString('URL Protocol','');
 if not OpenKey('\123\shell\open\command',True) then exit; // Fehler
 WriteString('','"'+Application.ExeName+'" %1');
finally
 CloseKey;
 Free;
end;


Moderiert von user profile iconNarses: Code- durch Delphi-Tags ersetzt

_________________
Ein Computer wird das tun, was Du programmierst - nicht das, was Du willst.