win-10-virtual-desktop-enhancer icon indicating copy to clipboard operation
win-10-virtual-desktop-enhancer copied to clipboard

Add Winkey+MouseWheel to change workspaces

Open alexjp opened this issue 7 years ago • 4 comments

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 !

alexjp avatar Dec 02 '17 21:12 alexjp

added these hotkey also:

+#$WheelUp::
	OnMoveAndShiftLeftPress()
return

+#$WheelDown::
	OnMoveAndShiftRightPress()
return

alexjp avatar Dec 02 '17 21:12 alexjp

alexjp , How can i make this work on my script ?

arielvieira avatar Dec 05 '17 04:12 arielvieira

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))
}

alexjp avatar Dec 05 '17 08:12 alexjp

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: super cute panda

Have a great day!

povilaspanavas avatar Dec 05 '17 10:12 povilaspanavas