Middle button not settable (Razer Copperhead)

x64 Replacement/Alternative to Microsoft's IntelliMouse application.
Forum rules
Please read the forum rules before posting for the first time.
The more information you can provide, the quicker and more accurately someone can help.
NOTE: To reduce spam, new users can not post links, files or images until they have at least 4 posts.
Post Reply
HeDiBo
New User
Posts: 4
Joined: Fri Mar 06, 2009 7:58 pm

Middle button not settable (Razer Copperhead)

Post by HeDiBo »

My mouse is a Razer Copperhead. I have uninstalled its drivers, because I have no use for those special things. But with X-Mouse I cannot simulate a double click by clicking the mouse wheel button.
I enabled the X-Mouse debug mode. Then I Alt-Tabbed to Acrobat Reader and clicked the mousewheel on a word (the whole sentence highlighted) and Alt-Tabbed back immediately. This is what the debug log says:

06-02-2009 20:09:30> Detected active application change from 'xmousebuttoncontrol.exe' to 'acrord32.exe'.
06-02-2009 20:09:30> Replaying Left Button Message Down Action 40
06-02-2009 20:09:30> Replaying Middle Button Message Down Action 10
06-02-2009 20:09:30> Ignoring mouse message injected by us!
06-02-2009 20:09:30> Ignoring mouse message injected by us!
06-02-2009 20:09:30> Ignoring mouse message injected by us!
06-02-2009 20:09:30> Ignoring mouse message injected by us!
06-02-2009 20:09:30> Replaying Left Button Message Up Action 40
06-02-2009 20:09:30> Replaying Middle Button Message Up Action 10
06-02-2009 20:09:33> Detected active application change from 'acrord32.exe' to 'xmousebuttoncontrol.exe'.

So, it sees the middle button, but seems to ignore some mouse messages after that, causing the complete Down and Up action to become unseen (or at least that's my interpretation of the debug messages). Also for some reasons it sees a left mouse button.

Any ideas someone?

Regards ;-}
User avatar
phil
Site Admin
Posts: 7670
Joined: Sun Apr 06, 2003 11:12 pm

Re: Middle button not settable (Razer Copperhead)

Post by phil »

Hummm... Interesting.

The "Ignoring mouse message injected by us!" is a result of the simulated double left click.
There are 4, for <left> DOWN,UP,DOWN,UP (double click).

But I'm not sure why it then sees another left UP. Maybe that is the problem, because all the other messages point to success rather than failure.

What version of XMBC are you using? I have not tried this in acrobat but in everything I have tried, the simulated double click works - There was a problem in version prior to 1.42 but I thought I had fixed it after testing with several applications :S

Its odd that the sentence highlighted - I would expect just the word.. but maybe its an acrobat specific issue. Please can you see if it works in other apps (like notepad, firefox/IE - I've had success with these). In the mean time, I'll see if I can try Acrobat sometime this weekend (but no promises as I'm a bit busy).

Thanks,
Phil
--[ Phil ]--
--[ Administrator & XMBC Author ]--
Logitech G9/G604/M720/MX518, Microsoft Intellimouse, Trust 16341 BT Mouse
Windows 10 x64, AMD Ryzen 5900x, MSI x570 Tomahawk, 32GB DDR4,
nVidia RTX 2070s, Evo 970 1Tb NVME, 2x2TB WD Black (RAID1)
HeDiBo
New User
Posts: 4
Joined: Fri Mar 06, 2009 7:58 pm

Re: Middle button not settable (Razer Copperhead)

Post by HeDiBo »

The problem is in all applications.
I use the latest XMBC (1.44.0)
I never had this problem with other mouses: just with the Razer Copperhead mouse.
I'm sure you could solve it, provided you would know exactly what this mouse produces on a mouse wheel click. But I don't know how to trace that.
Any ideas?

(I'm a programmer, so I could write a program to find out, if I knew how to trace these events).

Remember that I never clicked the left mouse button, although the trace seems to think so.

Thanks for your reply ;-}
User avatar
phil
Site Admin
Posts: 7670
Joined: Sun Apr 06, 2003 11:12 pm

Re: Middle button not settable (Razer Copperhead)

Post by phil »

The trace thinks the left was clicked because a you are tying to simulate a "double click"... and to do that XMBC has to inject Left click massages (two of them). That is why it sees a left click (it shouldn't because it should be "ignored").

I will see if I can reproduce it - I cant really wee why one mouse would be any different from another in this respect because when you press the middle button, it should just send a middle click (which XMBC can intercept and change). I presume other actions work OK on the middle button and its just a problem with the double click simulation - maybe its a bug in the latest version.

Thanks,
Phil
--[ Phil ]--
--[ Administrator & XMBC Author ]--
Logitech G9/G604/M720/MX518, Microsoft Intellimouse, Trust 16341 BT Mouse
Windows 10 x64, AMD Ryzen 5900x, MSI x570 Tomahawk, 32GB DDR4,
nVidia RTX 2070s, Evo 970 1Tb NVME, 2x2TB WD Black (RAID1)
User avatar
phil
Site Admin
Posts: 7670
Joined: Sun Apr 06, 2003 11:12 pm

Re: Middle button not settable (Razer Copperhead)

Post by phil »

OK, I've just tested it here and I don't see any left click messages (and it all works fine).
So maybe your right and it is a Razor mouse issue (sorry but I have to ask... Are you sure you not hitting the left button by mistake when pressing the middle button?)

FWIW, here is my log:

Code: Select all

08-02-2009 12:57:00> Detected active application change from 'xmousebuttoncontrol.exe' to 'acrord32.exe'.
08-02-2009 12:57:00> Replaying Middle Button Message Up Action 10
08-02-2009 12:57:01> Replaying Middle Button Message Down Action 10
08-02-2009 12:57:01> Ignoring mouse message injected by us!
08-02-2009 12:57:01> Ignoring mouse message injected by us!
08-02-2009 12:57:01> Ignoring mouse message injected by us!
08-02-2009 12:57:01> Ignoring mouse message injected by us!
08-02-2009 12:57:01> Replaying Middle Button Message Up Action 10
08-02-2009 12:57:02> Replaying Middle Button Message Down Action 10
08-02-2009 12:57:02> Ignoring mouse message injected by us!
08-02-2009 12:57:02> Ignoring mouse message injected by us!
08-02-2009 12:57:02> Ignoring mouse message injected by us!
08-02-2009 12:57:02> Ignoring mouse message injected by us!
08-02-2009 12:57:02> Replaying Middle Button Message Up Action 10
08-02-2009 12:57:03> Replaying Left Button Message Down Action 40
So we need to figure out why you get a left button down and up when you press the middle button.

Can you try removing all settings in XMBC and have all buttons set to "Nothing (Don't intercept)" then turn on debug logging again, switch to another app (acrobat reader will be fine) and press the middle button a few times and send me that log...

I would expect

Code: Select all

08-02-2009 13:00:35> Replaying Middle Button Message Down Action 40
08-02-2009 13:00:35> Replaying Middle Button Message Up Action 40
08-02-2009 13:00:36> Replaying Middle Button Message Down Action 40
08-02-2009 13:00:36> Replaying Middle Button Message Up Action 40
08-02-2009 13:00:36> Replaying Middle Button Message Down Action 40


but it will be interesting to see what your log says - if there is an extra left button message in there.

As for writing your own code to trace the events, in theory the logging in XMBC should be enough to tell me everything but in this case maybe not. I will make a special version for you that includes more debug info to see if we can find out whats going on. If you want to write your own code, XMBC uses SetWindowsHookEx to set a mouse message hook. Then windows will call your function before the mouse message is sent to any application and you can trace the values in the mouse messages there.


Thanks,
Phil
--[ Phil ]--
--[ Administrator & XMBC Author ]--
Logitech G9/G604/M720/MX518, Microsoft Intellimouse, Trust 16341 BT Mouse
Windows 10 x64, AMD Ryzen 5900x, MSI x570 Tomahawk, 32GB DDR4,
nVidia RTX 2070s, Evo 970 1Tb NVME, 2x2TB WD Black (RAID1)
HeDiBo
New User
Posts: 4
Joined: Fri Mar 06, 2009 7:58 pm

Re: Middle button not settable (Razer Copperhead)

Post by HeDiBo »

That was an interesting test:

08-02-2009 14:09:32> Detected active application change from 'xmousebuttoncontrol.exe' to 'firefox.exe'.
08-02-2009 14:09:32> Replaying Left Button Message Down Action 40
08-02-2009 14:09:32> Replaying Middle Button Message Down Action 40
08-02-2009 14:09:32> Replaying Left Button Message Up Action 40
08-02-2009 14:09:32> Replaying Middle Button Message Up Action 40
08-02-2009 14:09:36> Detected active application change from 'firefox.exe' to 'xmousebuttoncontrol.exe'.

That is a very good indication of the problem: middle buttons interspersed with left buttons (of course I only pressed the middle one). If I press the middle button more than once, the same sequence as above repeats.

Regards ;-}
User avatar
phil
Site Admin
Posts: 7670
Joined: Sun Apr 06, 2003 11:12 pm

Re: Middle button not settable (Razer Copperhead)

Post by phil »

If its OK with you, can I give you a new version with some extra debugigng.
We can run it in portable mode so as not to mess with the installed version.

It will give a bit more info on the messages that may be of use.
I will PM you a copy.

Thanks,
Phil
--[ Phil ]--
--[ Administrator & XMBC Author ]--
Logitech G9/G604/M720/MX518, Microsoft Intellimouse, Trust 16341 BT Mouse
Windows 10 x64, AMD Ryzen 5900x, MSI x570 Tomahawk, 32GB DDR4,
nVidia RTX 2070s, Evo 970 1Tb NVME, 2x2TB WD Black (RAID1)
HeDiBo
New User
Posts: 4
Joined: Fri Mar 06, 2009 7:58 pm

Re: Middle button not settable (Razer Copperhead)

Post by HeDiBo »

That's fine with me.

Regards ;-}
Post Reply