开发者

communicating with mirc client using delphi

开发者 https://www.devze.com 2023-01-05 22:34 出处:网络
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 ?

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

精彩评论

暂无评论...
验证码 换一张
取 消