Autor Beitrag
Der-DeeJay
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 42



BeitragVerfasst: Fr 02.01.04 17:04 
HI Leutz

Ich will im meinem Programm einen Button habenund wenn man da raufklickt soll der angegebene ICQ User zu meiner Contac-Liste hinzugefügt werden aber wie?????

Hat irgend einer eine Idee wie Ich das machen könnte??

Wäre euch sehr dankbar wenn ihr mir helfen könntet!!

MFG
Der DeeJay


Zuletzt bearbeitet von Der-DeeJay am Sa 03.01.04 17:06, insgesamt 1-mal bearbeitet
ixtreme
Gast
Erhaltene Danke: 1



BeitragVerfasst: Fr 02.01.04 17:40 
du musst eine 1,,,0.icq datei mit folgenden daten an icq senden


ausblenden Quelltext
1:
2:
3:
4:
5:
6:
[ICQ User]
UIN=268383944
Email=
NickName=
FirstName=
LastName=


gruß

ixtreme.de

P.S. Kannst die datei auch mit shellexecute ausführen lassen.
Der-DeeJay Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 42



BeitragVerfasst: Fr 02.01.04 17:51 
HI

Das ging ja richtig schnell!!
Aber kannst du mir bitte nochmal sagen wie ich das geanu machen kann???
Ich blick da noch nicgh so ganz durch! :oops: :nixweiss:

MFG
Der DeeJay
ixtreme
Gast
Erhaltene Danke: 1



BeitragVerfasst: Fr 02.01.04 17:58 
ok,


du solltest eine stringlist erzeugen:


ausblenden Delphi-Quelltext
1:
2:
var
str : tstringlist;


dann fügst du folgende Zeilen zum stringlist hinzu:

ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
str := tstringlist.create;
str.add('[ICQ User]');
str.add('UIN='+Edit1.Text);
str.add('Email=');
str.add('NickName=');
str.add('FirstName=');
str.add('LastName= ');
str.savetofile(extractfilepath(paramstr(0))+'1,,,0.icq');


und jetzt nur noch

ausblenden Delphi-Quelltext
1:
ShellExecute(Handle, 'open', '1,,,0.icq', '', nil, SW_SHOW);					



Fertig....leider nicht getestet

Gruß

ixtreme.de

Moderiert von user profile iconPeter Lustig: Code- durch Delphi-Tags ersetzt
Der-DeeJay Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 42



BeitragVerfasst: Fr 02.01.04 18:23 
Leider geht das mit

ShellExecute(Handle, 'open', '1,,,0.icq', '', nil, SW_SHOW);

[Error] Unit1.pas(104): Undeclared identifier: 'ShellExecute'

nicht :(
und ich bin noch zu NoOb um dadrin den Fehler zuz finden!
ixtreme
Gast
Erhaltene Danke: 1



BeitragVerfasst: Fr 02.01.04 18:27 
füge mal oben bei uses

ShellAPI ein!

Gruß

ixtreme.de
Der-DeeJay Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 42



BeitragVerfasst: Fr 02.01.04 18:50 
HI

Ich danke dir für deine schnelle Antwort ixtreme!!

Aber leider passiert dabei garnichhts :(

MFg
Der deejay
ixtreme
Gast
Erhaltene Danke: 1



BeitragVerfasst: Fr 02.01.04 18:55 
Dann probier es mal mit

ausblenden Delphi-Quelltext
1:
ShellExecute(Handle, 'open', 'c:\icqpfad\icq.exe', '1,,,0.icq', nil, SW_SHOW);					


vielleicht gehts so...

du musst nur den pfad von icq haben...kannst ihn auch ermitteln, aber wie genau müsste ich auch erst nachschauen...

gruß

ixtreme.de
Der-DeeJay Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 42



BeitragVerfasst: Fr 02.01.04 22:58 
HI

Leider hat auch das nicht funktioniert! :-[
Ich hab meinen ICQ-exe pfad eingegeben und es hat sich nichts geändern :-(

MFG
Der DeeJay
mirage228
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 338

Win 7 Prof.
Delphi 2005 Prof., Delphi 2010 Prof.
BeitragVerfasst: Sa 03.01.04 14:04 
Hi,

mach doch einfach:

ausblenden Delphi-Quelltext
1:
ShellExecute(Handle, 'open', 'http://wwp.icq.com/scripts/search.dll?to=xxxxxxxxx', nil, nil, SW_SHOW);					


das xxxxxxxxx dann durch die UIN ersetzen!

mfG
mirage228

_________________
May the source be with you, stranger.
ixtreme
Gast
Erhaltene Danke: 1



BeitragVerfasst: Sa 03.01.04 14:05 
dann musst du aber online sein....


sonst hätte ich diese variante auch bevorzugt!


gruß

ixtreme.de
matze
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 4613
Erhaltene Danke: 24

XP home, prof
Delphi 2009 Prof,
BeitragVerfasst: Sa 03.01.04 14:12 
ja dazu musst du online sein und dein ICQ auch offen haben !

_________________
In the beginning was the word.
And the word was content-type: text/plain.
mirage228
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 338

Win 7 Prof.
Delphi 2005 Prof., Delphi 2010 Prof.
BeitragVerfasst: Sa 03.01.04 14:13 
Du musst auf jeden fall online sein, da deine Contact liste nicht lokal sondern eigentlich auf dem server liegt (lokal ist lediglich eine kopie). Wenn man sie einfach so zur lokalen Liste hinzufügt, kann man auch die Authorisierung umgehen (war zumindest bei älteren Versionen so). Außerdem ist die UIN nach einer Formatierung verloren, wenn sie nicht "ordentlich" geaddet wird (also über den icq-server).

mfG
mirage228

_________________
May the source be with you, stranger.
ixtreme
Gast
Erhaltene Danke: 1



BeitragVerfasst: Sa 03.01.04 14:14 
ja der abgleich geschieht aber auch wenn du lokal addest und dann irgendwann online gehst...


gruß

ixtreme.de
matze
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 4613
Erhaltene Danke: 24

XP home, prof
Delphi 2009 Prof,
BeitragVerfasst: Sa 03.01.04 15:57 
aha. cool. das wusste ich noch nicht

_________________
In the beginning was the word.
And the word was content-type: text/plain.
Der-DeeJay Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 42



BeitragVerfasst: Sa 03.01.04 16:50 
AU ja das is ziemlich genau das was ich gesucht habe ;-]]

Hab nur noch 1 Problem!
ausblenden Delphi-Quelltext
1:
ShellExecute(Handle, 'open', ('http://wwp.icq.com/scripts/search.dll?to='+UNI), nil, nil, SW_SHOW);					

UNI:=String wo ICQ NR drin steht.
[Error] Unit1.pas(141): Incompatible types: 'String' and 'PAnsiChar'

Moderiert von user profile iconPeter Lustig: Code- durch Delphi-Tags ersetzt
ixtreme
Gast
Erhaltene Danke: 1



BeitragVerfasst: Sa 03.01.04 16:56 
ausblenden Delphi-Quelltext
1:
ShellExecute(Handle, 'open', pchar('http://wwp.icq.com/scripts/search.dll?to='+UNI), nil, nil, SW_SHOW);					


gruß

ixtreme.de
Der-DeeJay Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 42



BeitragVerfasst: Sa 03.01.04 17:06 
Ich danke Euch allen für die schnelle Lösung!!!

MFG
Der DeeJay