razer middle button

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
gsapient
Member
Posts: 22
Joined: Sat Aug 21, 2010 9:52 pm

razer middle button

Post by gsapient »

I have a razer mouse (diamondback 3g) and any key I assign to the middle button gets pressed twice. For example if I set it to close, two windows are closed for every click. If I set it to flip 3d, the flip 3d interface is shown and goes away immediately. The only action that seems to work properly is assigning it to ALT-TAB: the task switcher is shown and stays on screen. The default behavior of the button (when set to not intercept) is to enable universal scroll while it is pressed only. I do not thing it is a hardware defect, as this default behavior works just fine. It is probably just a hardware design issue. Can something be done to avoid the double repeat?
User avatar
phil
Site Admin
Posts: 7670
Joined: Sun Apr 06, 2003 11:12 pm

Re: razer middle button

Post by phil »

Can you enable debug logging (in the general settings tab) and apply it all, then press the middle button a few times, go back, disable debug and then have a look at the log (right click the task bar icon and select open log file).

Post a snippet here.

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)
gsapient
Member
Posts: 22
Joined: Sat Aug 21, 2010 9:52 pm

Re: razer middle button

Post by gsapient »

I had set the middle button to close for the test. I hope I got what you need. As far as I can tell, the button sends fast repeats for as long as it is pressed (many repeats even for a normal duration click), and most of them after the first couple get ignored by xmousebuttoncontrol.

Code: Select all

08-07-2011 01:57:51> CMyMessageWnd::OnSetup   -   Clear hotkeys...
08-07-2011 01:57:51> CMyMessageWnd::OnSetup   -   Opening setup dialog.
08-07-2011 01:58:41> Applying changes to X-Mouse Button Control settings...
08-07-2011 01:58:41> Enabling extra debug logging.
08-07-2011 01:58:41.0394> HookDLL: Load Settings took 0ms
08-07-2011 01:58:46.0058> MouseHookData: Message=0x0201 (WM_LBUTTONDOWN), X=1318, Y=846, mouseData=0x00000000, flags=0x00000000, time=6062058, dwExtraInfo=0x0
08-07-2011 01:58:46.0074> Detected active application/window changed....
08-07-2011 01:58:46.0089> Translating Left Button Down: Action 40 (** No Change (Don't intercept) **)
08-07-2011 01:58:46.0152> MouseHookData: Message=0x0202 (WM_LBUTTONUP), X=1318, Y=846, mouseData=0x00000000, flags=0x00000000, time=6062152, dwExtraInfo=0x0
08-07-2011 01:58:46.0152> Detected active application/window changed....
08-07-2011 01:58:46.0167> Translating Left Button Up: Action 40 (** No Change (Don't intercept) **)
08-07-2011 01:58:46> CMyMessageWnd::OnSetup   -   Setup dialog closed.
08-07-2011 01:58:46.0245> HookDLL: Load Settings took 15ms
08-07-2011 01:58:47.0649> MouseHookData: Message=0x0207 (WM_MBUTTONDOWN), X=1318, Y=847, mouseData=0x00000000, flags=0x00000000, time=6063649, dwExtraInfo=0x0
08-07-2011 01:58:47.0665> Detected active application/window changed....
08-07-2011 01:58:47.0680> Translating Middle Button Down: Action 7 (Close (Alt+F4))
08-07-2011 01:58:47.0680> SendKeyState: VKCode=0x73 Scancode=0x3e Flags=0x4 Release=0:
08-07-2011 01:58:47.0696> Ignoring key injected by XMBC!
08-07-2011 01:58:47.0696> MouseHookData: Message=0x0207 (WM_MBUTTONDOWN), X=1318, Y=847, mouseData=0x00000000, flags=0xFFFFFFFF, time=6063649, dwExtraInfo=0x0
08-07-2011 01:58:47.0712> Translating Middle Button Down: Action 7 (Close (Alt+F4))
08-07-2011 01:58:47.0712> SendKeyState: VKCode=0x73 Scancode=0x3e Flags=0x4 Release=0:
08-07-2011 01:58:48.0727> Ignoring key injected by XMBC!
08-07-2011 01:58:48.0743> SendKeyState: VKCode=0x73 Scancode=0x3e Flags=0x4 Release=1:
08-07-2011 01:58:48.0790> Ignoring key injected by XMBC!
08-07-2011 01:58:48.0852> Ignoring key injected by XMBC!
08-07-2011 01:58:48.0899> Ignoring key injected by XMBC!
08-07-2011 01:58:48.0914> MouseHookData: Message=0x0208 (WM_MBUTTONUP), X=1318, Y=847, mouseData=0x00000000, flags=0x00000000, time=6063790, dwExtraInfo=0x0
08-07-2011 01:58:48.0930> Detected active application/window changed....
08-07-2011 01:58:48.0930> Translating Middle Button Up: Action 7 (Close (Alt+F4))
08-07-2011 01:58:48.0961> SendKeyState: VKCode=0x73 Scancode=0x3e Flags=0x4 Release=1:
08-07-2011 01:58:48.0977> Ignoring key injected by XMBC!
08-07-2011 01:58:48.0008> MouseHookData: Message=0x0208 (WM_MBUTTONUP), X=1318, Y=847, mouseData=0x00000000, flags=0xFFFFFFFF, time=6063946, dwExtraInfo=0x0
08-07-2011 01:58:48.0008> Detected active application/window changed....
08-07-2011 01:58:48.0024> Translating Middle Button Up: Action 7 (Close (Alt+F4))
08-07-2011 01:58:48.0039> ProcessButton: Button is down but we didnt see it. Allowing button up to keep Windows in sync!
08-07-2011 01:58:48.0086> Ignoring key injected by XMBC!
08-07-2011 01:58:52.0033> MouseHookData: Message=0x0207 (WM_MBUTTONDOWN), X=1629, Y=827, mouseData=0x00000000, flags=0x00000000, time=6068033, dwExtraInfo=0x0
08-07-2011 01:58:52.0064> Detected active application/window changed....
08-07-2011 01:58:52.0064> Translating Middle Button Down: Action 7 (Close (Alt+F4))
08-07-2011 01:58:52.0080> SendKeyState: VKCode=0x73 Scancode=0x3e Flags=0x4 Release=0:
08-07-2011 01:58:52.0095> Ignoring key injected by XMBC!
08-07-2011 01:58:52.0095> MouseHookData: Message=0x0207 (WM_MBUTTONDOWN), X=1629, Y=827, mouseData=0x00000000, flags=0xFFFFFFFF, time=6068033, dwExtraInfo=0x0
08-07-2011 01:58:52.0111> Translating Middle Button Down: Action 7 (Close (Alt+F4))
08-07-2011 01:58:52.0111> SendKeyState: VKCode=0x73 Scancode=0x3e Flags=0x4 Release=0:
08-07-2011 01:58:52.0126> Ignoring key injected by XMBC!
08-07-2011 01:58:52.0142> SendKeyState: VKCode=0x73 Scancode=0x3e Flags=0x4 Release=1:
08-07-2011 01:58:52.0173> Ignoring key injected by XMBC!
08-07-2011 01:58:52.0189> Ignoring key injected by XMBC!
08-07-2011 01:58:52.0220> Ignoring key injected by XMBC!
08-07-2011 01:58:52.0251> MouseHookData: Message=0x0208 (WM_MBUTTONUP), X=1630, Y=827, mouseData=0x00000000, flags=0x00000000, time=6068173, dwExtraInfo=0x0
08-07-2011 01:58:52.0251> Translating Middle Button Up: Action 7 (Close (Alt+F4))
08-07-2011 01:58:52.0282> SendKeyState: VKCode=0x73 Scancode=0x3e Flags=0x4 Release=1:
08-07-2011 01:58:52.0298> Ignoring key injected by XMBC!
08-07-2011 01:58:52.0298> MouseHookData: Message=0x0208 (WM_MBUTTONUP), X=1630, Y=827, mouseData=0x00000000, flags=0xFFFFFFFF, time=6068267, dwExtraInfo=0x0
08-07-2011 01:58:52.0314> Translating Middle Button Up: Action 7 (Close (Alt+F4))
08-07-2011 01:58:52.0329> Ignoring key injected by XMBC!
08-07-2011 01:58:54.0874> MouseHookData: Message=0x0207 (WM_MBUTTONDOWN), X=1535, Y=818, mouseData=0x00000000, flags=0x00000000, time=6069874, dwExtraInfo=0x0
08-07-2011 01:58:54.0889> Translating Middle Button Down: Action 7 (Close (Alt+F4))
08-07-2011 01:58:54.0889> SendKeyState: VKCode=0x73 Scancode=0x3e Flags=0x4 Release=0:
08-07-2011 01:58:54.0905> Ignoring key injected by XMBC!
08-07-2011 01:58:54.0905> MouseHookData: Message=0x0207 (WM_MBUTTONDOWN), X=1535, Y=818, mouseData=0x00000000, flags=0xFFFFFFFF, time=6069874, dwExtraInfo=0x0
08-07-2011 01:58:54.0920> Translating Middle Button Down: Action 7 (Close (Alt+F4))
08-07-2011 01:58:54.0936> SendKeyState: VKCode=0x73 Scancode=0x3e Flags=0x4 Release=0:
08-07-2011 01:58:54.0936> Ignoring key injected by XMBC!
08-07-2011 01:58:54.0967> SendKeyState: VKCode=0x73 Scancode=0x3e Flags=0x4 Release=1:
08-07-2011 01:58:54.0983> Ignoring key injected by XMBC!
08-07-2011 01:58:54.0998> Ignoring key injected by XMBC!
08-07-2011 01:58:54.0045> Ignoring key injected by XMBC!
08-07-2011 01:58:54.0061> MouseHookData: Message=0x0208 (WM_MBUTTONUP), X=1535, Y=818, mouseData=0x00000000, flags=0x00000000, time=6070014, dwExtraInfo=0x0
08-07-2011 01:58:54.0061> Translating Middle Button Up: Action 7 (Close (Alt+F4))
08-07-2011 01:58:54.0092> SendKeyState: VKCode=0x73 Scancode=0x3e Flags=0x4 Release=1:
08-07-2011 01:58:54.0108> Ignoring key injected by XMBC!
08-07-2011 01:58:54.0123> MouseHookData: Message=0x0208 (WM_MBUTTONUP), X=1535, Y=818, mouseData=0x00000000, flags=0xFFFFFFFF, time=6070076, dwExtraInfo=0x0
08-07-2011 01:58:54.0123> Detected active application/window changed....
08-07-2011 01:58:54.0139> Translating Middle Button Up: Action 7 (Close (Alt+F4))
08-07-2011 01:58:54.0139> ProcessButton: Button is down but we didnt see it. Allowing button up to keep Windows in sync!
08-07-2011 01:58:54.0170> Ignoring key injected by XMBC!
08-07-2011 01:58:55.0981> MouseHookData: Message=0x0207 (WM_MBUTTONDOWN), X=1534, Y=817, mouseData=0x00000000, flags=0x00000000, time=6070981, dwExtraInfo=0x0
08-07-2011 01:58:55.0981> Detected active application/window changed....
08-07-2011 01:58:55.0997> Translating Middle Button Down: Action 7 (Close (Alt+F4))
08-07-2011 01:58:55.0997> SendKeyState: VKCode=0x73 Scancode=0x3e Flags=0x4 Release=0:
08-07-2011 01:58:55.0012> Ignoring key injected by XMBC!
Last edited by gsapient on Thu Jul 07, 2011 11:08 pm, edited 1 time in total.
User avatar
phil
Site Admin
Posts: 7670
Joined: Sun Apr 06, 2003 11:12 pm

Re: razer middle button

Post by phil »

Well it certainly proves that the mouse (or its driver) is sending double messages - I am a little surprised by that - do you have any other mouse or keyboard software (inc. from razor if they have any) that might be interfering?

I've never seen this from another device s I don't really know what to say. It might be possible to filter it out as it seems to send down down up up, I might be able to ignore the second down but there are dangers associated with that which can lead to the button stop working as expected so I'm not sure its the best idea in user mode (where xmbc sits, rather than kernel mode where drivers sit).

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)
gsapient
Member
Posts: 22
Joined: Sat Aug 21, 2010 9:52 pm

Re: razer middle button

Post by gsapient »

I have the razer driver installed which is necessary to take advantage of the extra buttons.
Please note I added some comments on my previous message, though you can interpret the results better than me.

edit: the razer driver has the middle button assigned as "universal scroll" which is the default. It also has a checkbox for turning universal scroll on or off. If universal scroll is off and the middle button is at the default (assigned as universal scroll), then the button is disabled (it doesn't do anything).
Post Reply