U must make ActiveX or COM-object to run with mIRC i think.