tags:

views:

49

answers:

1

hi all

is there component which can allow me to communicate with mirc to connect to a specified server and then join to specified channel ?

thanks in advance

regards

+2  A: 

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');
histrio