I am running Windows 7 64bit and the machine is connected via a KVM, so I have to use PS2 mouse connector (the machine is about 20' behind me in the office somewhere) as the KVM doesn't switch USB.
Using a number of different mice (different makes, Logitech, Microsoft, no-name cheapo brand) when using the scroll wheel it causes Internet Explorer to act as if the "back" button has been pressed, and causes Visual Studio to act as if the "pop-context" has been pressed. This is, being mild, annoying.
Further investigation reveals that when I scroll it looks like the BUTTON4 & BUTTON5 buttons are being pressed (I found this using MouseInfo in Microsoft's Intellipoint suite).
Now, plainly BUTTON4 or BUTTON5 are mapped to "back" or "forwards". Given that my mouse doesn't have button4 or 5 - what can I do to disable this "feature" - or even remap them to something else?
I tried installing Intellipoint 8.x from MS, but that won't work as it doesn't support PS2 mice (gah!). And a previous version of Intellipoint 64bit won't run as it is blocked on the compatibility list.
I tried writing a .NET low level mouse hook - but not sure what the codes are for button 4 & 5 (it looked like it was mouseinfo == 0x780000) - but when I filtered that out, it still happened - so either my filtering failed (I just returned a pointer to null rather than next mouse hook) or I was looking at the wrong number.
Can I remap what BUTTON4 & 5 to do nothing at all?
Failing that, I am happy to write some software that will pickup on that event and bin it - but I need to do so before IE / Visual Studio IDE get hold of the event - but could someone point me in the right direction?