If you set the Script Editor as a desktop window you won't have to close it, just give the mIRC window focus.