win-10-virtual-desktop-enhancer
win-10-virtual-desktop-enhancer copied to clipboard
Add Winkey+MouseWheel to change workspaces
Hi,
Thanks for the wonderfull script. I had a very simple hotkey and mouse based script to change workspaces, but yours is much much better.
I would just ask, could you add WinKey + Mouse Wheel up and down to switch workspaces ? I am kinda used to this workflow.
Currently I added:
#$WheelUp::
OnShiftLeftPress()
return
#$WheelDown::
OnShiftRightPress()
return
to your script and its working as intended.
Thanks !
added these hotkey also:
+#$WheelUp::
OnMoveAndShiftLeftPress()
return
+#$WheelDown::
OnMoveAndShiftRightPress()
return
alexjp , How can i make this work on my script ?
alexjp , How can i make this work on my script ?
put on the ahk script, I inserted it after the Event Handlers comment.
; ======================================================================
; Event Handlers
; ======================================================================
#$WheelUp::
OnShiftLeftPress()
return
#$WheelDown::
OnShiftRightPress()
return
+#$WheelUp::
OnMoveAndShiftLeftPress()
return
+#$WheelDown::
OnMoveAndShiftRightPress()
return
OnShiftNumberedPress() {
SwitchToDesktop(substr(A_ThisHotkey, 0, 1))
}
That's awesome, @alexjp ! The only thing I've changed was that your mouse actions are inverted, so I switched "Left" with "Right" and they are correct now (wheel up, goes to a higher number, down - to lower number).
Thank you for this awesome addition.
Here is your reward for making the world a better place:
Have a great day!