Wheel UP/Down remapping

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
fellipeao
Posts: 2
Joined: 29 Sep 2022, 20:11

Wheel UP/Down remapping

Post by fellipeao » 29 Sep 2022, 20:22

Hello!

I'm new with ahk and I created a simple script to remapping wheel up and wheel down.
For wheel up I remapped to press F4, and to wheel down to press F5.

But when I push ctrl or shift the wheel up dont respond like shift+f5 or ctrl+f5, just turn back the function to wheel up or wheel down.
So, how can I write a script that ll works when I push ctrl or shift?

---------------------------
My simples scripts:

Code: Select all

IfWinActive
WheelDown::
{
send {F5}
}
return

Code: Select all

#IfWinActive
WheelUp::
{
send {F4}
}
return

User avatar
mikeyww
Posts: 26848
Joined: 09 Sep 2014, 18:38

Re: Wheel UP/Down remapping

Post by mikeyww » 29 Sep 2022, 21:20

Welcome to this AutoHotkey forum!

Code: Select all

*WheelDown::Send {Blind}{F5}

fellipeao
Posts: 2
Joined: 29 Sep 2022, 20:11

Re: Wheel UP/Down remapping

Post by fellipeao » 01 Oct 2022, 09:41

mikeyww wrote:
29 Sep 2022, 21:20
Welcome to this AutoHotkey forum!

Code: Select all

*WheelDown::Send {Blind}{F5}
Thank you, works perfect. :clap:

Post Reply

Return to “Ask for Help (v1)”