Page 1 of 1

How do I use CTRL to modify Mouse wheel functions?

Posted: 04 Feb 2022, 22:18
by AtotehZ
Hello,

I'm trying to turn Control into a hotkey for modifying WheelUp and WheelDown on the mouse.
When Control is not held, the mouse wheel should function as normal.
When Control is held, 'WheelDown' should send 'Numpad8' and 'WheelDown' should send 'Numpad2'

I don't know where to start with this. I tried the search, but I didn't find any examples that could help me.

I'd appreciate any help.

Re: How do I use CTRL to modify Mouse wheel functions?  Topic is solved

Posted: 05 Feb 2022, 02:44
by Xtra
Give this a try:

Code: Select all

^WheelDown::Send, {Numpad8}
^WheelUp::Send, {Numpad2}

Re: How do I use CTRL to modify Mouse wheel functions?

Posted: 05 Feb 2022, 03:19
by VISHALVODRO
This is what I did for one of my scrip...

Code: Select all

;SOUND Control
!WheelDown::SoundSet, -5 ; Alt+Wheel Down to Decrease Volume
!WheelUp::SoundSet, +5   ; Alt+Wheel Up to Increase Volume
F1::SoundSet, +1, , mute  ; Toggle the master mute (set it to the opposite state)
[Mod edit: [code][/code] tags added.]

Re: How do I use CTRL to modify Mouse wheel functions?

Posted: 05 Feb 2022, 07:54
by AtotehZ
Now I feel sorry about even asking. Of course it's that simple.

I hadn't slept for 40 hours due to illness and thought this was way more complicated than it was.

Honestly, both of your answers are good.

Re: How do I use CTRL to modify Mouse wheel functions?

Posted: 05 Feb 2022, 08:51
by VISHALVODRO
I am too beginner in this automation. But love to share if I knew something. Happy to help...

Re: How do I use CTRL to modify Mouse wheel functions?

Posted: 05 Feb 2022, 10:17
by AtotehZ
Thanks again :)

Re: How do I use CTRL to modify Mouse wheel functions?

Posted: 05 Feb 2022, 10:36
by amateur+
AtotehZ wrote:
04 Feb 2022, 22:18
I don't know where to start with this.
After you'll awake from a long good sleep, you can start with this article in the documentation :arrow:: Hotkeys.
This experience will lead you to a fairly big amount of interesting and useful discoveries.

Re: How do I use CTRL to modify Mouse wheel functions?

Posted: 05 Feb 2022, 11:28
by AtotehZ
Thanks. The problem wasn't that I didn't know it though. It was that I was too tired to put it into practice. I was way too tired and overcomplicated things.

Re: How do I use CTRL to modify Mouse wheel functions?

Posted: 05 Feb 2022, 11:59
by amateur+
Sure, have a good sleep as soon as possible.
Nontheless maybe it would be useful for you to brush up on some concepts reading that article. For example this one:
Spoiler