so, you want to launch a new copy of mIRC every 5 minutes if you have an internet connection?
or do you mean you want to check and see if mIRC is not connected, and a connection to the internet is available, to connect mIRC?
what site do you want to flood with your connection every 5 minutes that is being used to check and see if you are online to the internet?