Page 1 of 1

Keyboard and mouse key combinations

Posted: Fri Jan 14, 2022 4:25 pm
by diwizard
Hello!

Sorry for may be stupid question but - is it any way to use alt/win/ctrl/... key combination with mouse buttons? I.e., for example, I wish to map Ctrl+Mouse3 to WinKey+Tab. Is it possible?

Thank you!

XMBC Version: 2.19.2
Windows Version: Windows 10 21H2
Mouse Information (brand/model): Logitech

Re: Keyboard and mouse key combinations

Posted: Fri Jan 14, 2022 5:38 pm
by phil
Well, that's a tricky one, because if you are holding CTRL, then you will actually be sending
CTRL + WIN + TAB

You can do this in XMBC (using layers and layer modifier keys) but you will probably find it wont have the desired effect what with CTRL being held down too!

Re: Keyboard and mouse key combinations

Posted: Fri Jan 14, 2022 10:35 pm
by diwizard
But, in any case, how can I create an event not for "Mouse Button 4" but "Mouse Button 4 + LCtrl"?
At the moment, my events fired always when I simply press "Mouse Button 4".

Re: Keyboard and mouse key combinations

Posted: Sat Jan 15, 2022 1:05 am
by phil
As I said, make use of layers and layer modifier keys.
Set mouse button 4 on LAYER 2 to the action you want to send with CTRL+MB4
Enable layer modifier keys and set CTRL as the modifier key for layer 2.

When you press CTRL, layer 2 will activate and thus CTRL+MB4 will execute the action assigned on layer 2.

You just need to be aware, that because CTRL is held, any keys/actions you send will also have CTRL pressed (which is why you will probably find that the original query wont work because chances are CTRL+WIN+TAB wont do the same as WIN+TAB!).