Page 1 of 1

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

Posted: Wed Jun 10, 2020 10:42 am
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.

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

Posted: Wed Jun 10, 2020 3:59 pm
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.

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

Posted: Wed Jun 10, 2020 8:02 pm
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

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

Posted: Wed Jun 10, 2020 8:44 pm
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).

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

Posted: Thu Jun 11, 2020 5:15 pm
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