communicating with mirc client using delphi
is there component which can allow me to communicat开发者_C百科e with mirc to connect to a specified server and then join to specified channel ?
thanks in advance
regards
You can use idIRC
INDY component for Delphi
idIRC - client component, providing a fully functional IRC
OR
uses
DdeMan;
procedure mIRCDDE(Service, Topic, Cmd: string);
var
DDE: TDDEClientConv;
begin
try
DDE := TDDEClientConv.Create(nil);
DDE.SetLink(Service, Topic);
DDE.OpenLink;
DDE.PokeData(Topic, PChar(Cmd));
finally
DDE.Free;
end;
end;
example
mIRCDDE('mIRC', 'COMMAND', '/dde mirc connect "" stork.doc.ic.ac.uk,6667,#mIRC,1');
mIRCDDE('mIRC', 'COMMAND', '/say Hallo');
精彩评论