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.
How do I use CTRL to modify Mouse wheel functions? Topic is solved
Re: How do I use CTRL to modify Mouse wheel functions? Topic is solved
Give this a try:
Code: Select all
^WheelDown::Send, {Numpad8}
^WheelUp::Send, {Numpad2}
-
- Posts: 26
- Joined: 02 Apr 2016, 05:53
Re: How do I use CTRL to modify Mouse wheel functions?
This is what I did for one of my scrip...
[Mod edit: [code][/code] tags added.]
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)
Re: How do I use CTRL to modify Mouse wheel functions?
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.
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.
-
- Posts: 26
- Joined: 02 Apr 2016, 05:53
Re: How do I use CTRL to modify Mouse wheel functions?
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?
After you'll awake from a long good sleep, you can start with this article in the documentation : Hotkeys.
This experience will lead you to a fairly big amount of interesting and useful discoveries.
Have found any drawback in my code or approach? Please, point it out. /The moderator ordered to remove the rest of the signature, I had obeyed.
And I really apologize for our russian president. Being a citizen of an aggressor country is very shameful. Personally I tried to avoid this trying to defend elections from fraud being a member of the election commission of one of the precincts but only was subjected to a hooligan attack and right before the vote count was illegally escorted from the polling station and spent the night behind bars (in jail) in a result of illegal actions of corrupt policemen.
And I really apologize for our russian president. Being a citizen of an aggressor country is very shameful. Personally I tried to avoid this trying to defend elections from fraud being a member of the election commission of one of the precincts but only was subjected to a hooligan attack and right before the vote count was illegally escorted from the polling station and spent the night behind bars (in jail) in a result of illegal actions of corrupt policemen.
Re: How do I use CTRL to modify Mouse wheel functions?
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?
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:
Nontheless maybe it would be useful for you to brush up on some concepts reading that article. For example this one:
Spoiler
Have found any drawback in my code or approach? Please, point it out. /The moderator ordered to remove the rest of the signature, I had obeyed.
And I really apologize for our russian president. Being a citizen of an aggressor country is very shameful. Personally I tried to avoid this trying to defend elections from fraud being a member of the election commission of one of the precincts but only was subjected to a hooligan attack and right before the vote count was illegally escorted from the polling station and spent the night behind bars (in jail) in a result of illegal actions of corrupt policemen.
And I really apologize for our russian president. Being a citizen of an aggressor country is very shameful. Personally I tried to avoid this trying to defend elections from fraud being a member of the election commission of one of the precincts but only was subjected to a hooligan attack and right before the vote count was illegally escorted from the polling station and spent the night behind bars (in jail) in a result of illegal actions of corrupt policemen.