Activate the Magnifier scrolling on the MouseWheel with the "shift" key

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 or images until they have at least 4 posts.
Post Reply
Philiduj
New User
Posts: 3
Joined: Wed Jun 10, 2020 8:14 am

Activate the Magnifier scrolling on the MouseWheel with the "shift" key

Post by Philiduj »

XMBC Version: 2.19.2
Windows Version: Windows 7 64 bit ultimate edition
Mouse Information (brand/model): Basic 3 button Mouse : right click - left click -  Wheel up/down
Relevant Computer Information (CPU, RAM etc): Dell Optiplex 790 - 4GO memory
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?: 1 day
What language and keyboard layout do you use in Windows?: French - Azerty keyboard

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).:

Hello everyone

What I'd like to achieve
Using Magnifier in/out by scrolling the wheel up/down after pressing the "shift" key.

I have successfully configured "Layer 1" to have this behaviour.  
The only modifications done to the original settings :
- I set the "Wheel  up" to "Magnifier zoom in"
- ans the "Wheel down" to "Magnifier zoom out".
This works perfectly...

So I copied this exact settings to "Layer 2" and left "Layer 1" to original factory settings.
To allow the shift keyboard condition, I use Settings -> Modified Keys and position "Activate Layer 2" on "shift".
Everything works fine : when I pressed shift on the keyboard and scroll  the wheel up, the Magnifier Zoom in operates.
but when I do the same thing by scrolling down the wheel, nothing happens : the cursor stay .inactive

To summarise everything works fine except that I cannot magnify zoom out.

Can you help me with this?

What I tried
Change mouse -> Same problem
Chane computer -> Same problem
Re-intall x-Mouse -> Same problem

Thank you very much in advance for your time and attzntion.

User avatar
phil
Site Admin
Posts: 6465
Joined: Sun Apr 06, 2003 11:12 pm

Re: Activate the Magnifier scrolling on the MouseWheel with the "shift" key

Post by phil »

OK I think I can see the problem here...
Magnifier zoom in/out send WIN+(+) and WIN+(-) keyboard shortcuts (effectively using simulated keystrokes internally)...
The problem is when you introduce shift, its ok for zoom in (shift+win+(+)) is fine but (shift+win+(-)) does not work. (Does that make sense).

I don't know if there is a solution to this, if there is, it will be internally in the code (no simple fix other than to use a different key, not shift as the layer modifier key). I'll add it to my list of things to look at but I'm not sure I will be able to do much about it.
--[ Phil ]--
--[ Administrator & XMBC Author ]--
Logitech G9, Logitech MX518, Microsoft Intellimouse, Trust 16341 BT Mouse
Windows 10 x64, Intel i5-9600k, Asus Z390-ROG, 16GB DDR4,
nVidia GeForce GTX 970, Evo 970 500Gb NVME, 2x2TB WD Black (RAID1)

Philiduj
New User
Posts: 3
Joined: Wed Jun 10, 2020 8:14 am

Re: Activate the Magnifier scrolling on the MouseWheel with the "shift" key

Post by Philiduj »

cool. thank you for your answer.
your explanation does make sense.
for information, I also tried with CTRL and the same things happen. But your explanation might still remains.
I will investigate other keys with your explanation in mine.
I will let you know.
thanks again

User avatar
phil
Site Admin
Posts: 6465
Joined: Sun Apr 06, 2003 11:12 pm

Re: Activate the Magnifier scrolling on the MouseWheel with the "shift" key

Post by phil »

Let me know how you get on, I do wonder if there is any other way I can invoke the zoom in/out of windows magnifier without using the keyboard shortcuts - I'll have a look around and see if I can find any API interfaces to it when I get a spare moment or two. A quick google reveals it may be possible with a bit more work (at least on Windows 8 and up - not sure about Win 7 and def not before that).
--[ Phil ]--
--[ Administrator & XMBC Author ]--
Logitech G9, Logitech MX518, Microsoft Intellimouse, Trust 16341 BT Mouse
Windows 10 x64, Intel i5-9600k, Asus Z390-ROG, 16GB DDR4,
nVidia GeForce GTX 970, Evo 970 500Gb NVME, 2x2TB WD Black (RAID1)

Philiduj
New User
Posts: 3
Joined: Wed Jun 10, 2020 8:14 am

Re: Activate the Magnifier scrolling on the MouseWheel with the "shift" key

Post by Philiduj »

Hello Phil
Following your first hint, I went a little deeper in my investigation.
I believe I found the solution... sorry, it is quite ... dirty.

I configure x-mouse exactly as described before.

The changes that have made :
Only for the behaviour Mousse-wheel-down - i.e. Magnifier-zoom-out triggers when I press shift and
Mousse-wheel-down.

1- I created a shortcut with a utility called "keyboard+". The shortcuts "{SHIFT}you may ask why I choose the shortcutactivates "{Win}-" . In another words, every time I press "SHIFT+²"on the keyboard, Magnifier-zoom-out triggers.
2- In X-Mouth "Layer2" I modified the action on "Whell down" by the "Modified Key" "{SHIFT}²".
Validate everything and it works perfect.

You may ask why I choose the shortcut "²" (suqare).... it is the only keys on my keyboard that behave the same way whether I pressed shift or not I believe that could have an impact. True or not.
I hope that will give you enough hints to help find a proper solution...
once again thanks for your help

Post Reply