DLL files are probably the best way to get mIRC to interact outside of its own environment.