Hi Pavel
I suppose, depending on the specific requirements, you could clear pending mouse clicks by reading them all out of the buffer. Something like this:
DO WHILE INKEY(M") <> 0
ENDDO
This will loop until the Inkey returns zero which means no more mouse clicks. Just a suggestion as I have never needed to clear mouse clicks myself.
In the End, we will remember not the words of our enemies, but the silence of our friends - Martin Luther King, Jr.