Autor Beitrag
Christian V.
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 311

Win Xp Prof
Turbo Delphi 2005
BeitragVerfasst: So 06.02.05 20:44 
Hallo, ich bin gerade einen irc client am proggen und möchte alle user aufliste. Hat jemand einen idee wie ich alle user in eine listbox bekomme? ich mach das ganze mit der Indy irc-komponente.
WeBsPaCe
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 2322
Erhaltene Danke: 1

FireFox 3, Internet Explorer 6 SP1
D1, D3Prof, D6Pers, D7Pers+Indy, VisualStudio Express
BeitragVerfasst: So 06.02.05 22:26 
Bin irgendwie immer ich, was?? :D :lol: :D

Also, so funktioniert's:
ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
7:
procedure TForm1.Button1Click(Sender: TObject);
var
i: Integer;
begin
ListBox1.Clear;
for i := 0 to IdIRC1.Users.Count-1 do ListBox1.Items.Add(IdIRC1.Users.Items[i].Nick);
end;

Da bekomm ich glaub' ich auch nen IRC-Client hin, wenn ich deine Frage beantworte. Ist bis jetzt alles in einem Projekt drin. Alle deine Fragen. ;)

Hast du dir das mit dem parsen schon überlegt??

_________________
Steht der Bauer im Gemüse, hat er später grüne Füße.
Christian V. Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 311

Win Xp Prof
Turbo Delphi 2005
BeitragVerfasst: Mo 07.02.05 16:38 
WeBsPaCe hat folgendes geschrieben:
Bin irgendwie immer ich, was?? :D :lol: :D


Da bekomm ich glaub' ich auch nen IRC-Client hin, wenn ich deine Frage beantworte. Ist bis jetzt alles in einem Projekt drin. Alle deine Fragen. ;)

Hast du dir das mit dem parsen schon überlegt??

Warum tust du's denn nicht?
Hier ist mein prog: www.vonrueti.ch/chat.exe
Nur das mit den Kommandos schnall ich nicht. ich filtere mit if memo2.text[1]=/ then ...
und schreibe dann nicht mit say sondern mit write, doch ds funktioniert nicht, warum denn das?
WeBsPaCe
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 2322
Erhaltene Danke: 1

FireFox 3, Internet Explorer 6 SP1
D1, D3Prof, D6Pers, D7Pers+Indy, VisualStudio Express
BeitragVerfasst: Mo 07.02.05 16:54 
invulnerabilis hat folgendes geschrieben:
... und schreibe dann nicht mit say sondern mit write, doch ds funktioniert nicht, warum denn das?

Write ist halt irgendwas anderes. Die Funktion oder Procedure zum senden von Nachrichten heißt .Say.

invulnerabilis hat folgendes geschrieben:
Warum tust du's denn nicht?

Was soll ich denn machen? :gruebel:

_________________
Steht der Bauer im Gemüse, hat er später grüne Füße.