I think you need a DLL for that, might be available on mIRCscripts.org.