$proc dont you mean %proc??
Well im not too sure how well it would work in mIRC single threaded ways, but there is a dll by dragonzap that might be of help too you, I forget the name but just put dragonzap's dlls in a search engine and you should find his website.
Edit: His website is
here and its called 'Standard Input/Output/Error Interface'