Thanx for the advice. Now I will use the WM_MCOMMAND interfacing to communicate with mIRC (using the mapped file).
I didn't know about it, it's incredible how much we can use a program without yet knowing it in all of its parts!

I think this will solve my problem, because messages cannot be mis-interpretated through a mapped file, they are not simulation of key presses but a real request of data broadcast.

Again, thanks a lot. If I should help you in the future, I would be pleased to do.