I’m not saying it’s impossible, but I’ve never heard of any programs causing problems like that. The failing mouse button is kind of common though, and I’ve definitely heard other people say the same thing.
Now, I would tell you to verify that it’s the mouse by trying a different one, but it’s also quite likely that other mice might also have the same problem. For example, I once starting noticing some random flying off in space during a gaming session, and decided to use my old gaming mouse (which I had plugged into a media center PC) until I soldered on a new switch. Unfortunately, my old mouse ended up being even worse.
Anyway, I can’t say for certain that it’s the switch, but this is a common problem, and I consider it the most likely cause with a fair degree of certainty. Now, I normally tell people to rule out software before suggesting they drop cash on new hardware, but this would certainly be the first thing I checked if it happened to me again. Of course, I don’t buy new mice when this happens.
I don’t know, I suppose you can try a couple of different mice to see what happens. Just don’t assume that you can rule out the mouse because one old ass mouse also does the same thing.
Anyway, if you have at least a little bit of soldering skill, you can try replacing the mouse button. You can find the button type printed on the side of the switch. If you order them from Ebay, they’re so cheap they might as well be free. The downside is that you might have to wait for shipping from overseas. Of course, I bought a 10 pack like 8 years ago, and am still using them. Alternatively, you might be able to find your switch on Amazon. You’ll pay a little more, but will get it a lot quicker.