What kind of mouse is it? I had a similar problem with one of the original Razer Naga mice and the fix was to open it up and drop a few drops of contact solution on the button sensor. Fixed the problem. I eventually bought a new mouse, but that was years later.