Advanced Mouse Configuration

I do a lot of programming with thousands of lines of code. I have a 3 button (left,right & scroll click) mouse and scroll wheel. I love the center click paste function in linux, but here is my problem: When I am scrolling through lines and lines of code, I accidentally paste a random segment of code in the file using the center click. As opposed to turning the center click paste function off, I would like to hear a tone every time I center click, no matter what program I am using at the time.

please do not double post. If you have mistakenly posted in the wrong section,contact a moderator/admin to get it moved to the correct location. other will now be closed

Andy