Switch profiles/layers based on which mouse is connected?

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
gautelund
New User
Posts: 4
Joined: Thu Jan 02, 2025 10:37 am

Switch profiles/layers based on which mouse is connected?

Post by gautelund »

I use different mice on the office and at home. I hoped it could be possible for XMBC to switch layers or profiles based on which mouse is connected.

XMBC Version: 2.20.5
Installed or Portable version: Installed
Windows Version: Windows 11 ARM64 / AArch64
Mouse Information (brand/model): Evoluent Verticalmouse 4 and MS Ergonomic
Relevant Computer Information (CPU, RAM etc): Thinkpad T14s Gen6, CPU Snapdragon X Elite
Did the problem occur after an upgrade of XMBC? (If so, from what version?): No
Did the problem occur after a Windows update/upgrade? (If so, from what version?): No
How long have you used XMBC?: 6 months
What language and keyboard layout do you use in Windows?: Norwegian UI and KB layout

Clear description of the problem - try and include as much information as possible, including what button and mappings you are having problems with (if applicable).: I switch between mice and would like XMBC to switch automatically based on which mouse is connected.
User avatar
phil
Site Admin
Posts: 7875
Joined: Sun Apr 06, 2003 11:12 pm

Re: Switch profiles/layers based on which mouse is connected?

Post by phil »

Sorry, XMBC uses windows mouse hooks which provides no information as to the source of the messages. So this is not currently possible.
In the future it may be possible to inspect the USB BUS and see what devices are connected, in order to do something like switching profile, but that would be a significant change and amount of work which I simply don't have time for (I don't even have time for little bug fixes) so while I will add it to the feature request list, chances are it will be years away on my current time line.

You might be able to do this with some other external automation/scripting, like Autohotkey or event ghost maybe (if that's still a think) but actually switching profiles in XMBC is not easy to automate as things stand (you have to load the profile using the buttons - there is no CLI way to do it currently (that will be easier/quicker to add I suspect, but still requires me to find some spare time, and its not likely to get in before I have gotten 2.21 out of the door (that's over a year delays as it is).
--[ Phil ]--
--[ Administrator & XMBC Author ]--
Logitech G9/G604/M720/MX518, Microsoft Intellimouse, Trust 16341 BT Mouse
Windows 11 x64 24H2, AMD Ryzen 9950x3D, MSI x870E Tomahawk, 64GB DDR%,
nVidia RTX 2070s (still lol)
gautelund
New User
Posts: 4
Joined: Thu Jan 02, 2025 10:37 am

Re: Switch profiles/layers based on which mouse is connected?

Post by gautelund »

Duly noted and respected. I mainly wondered if it was possible with me not seeing it. When it requires completely new methodology I understand that it's (almost) out of scope.
Post Reply