[HELP]Binding Keys to Mouse Scroll Wheel

Ask gaming related questions (AHK v1.1 and older)
Sirr4hh_End
Posts: 2
Joined: 14 Oct 2017, 07:05

[HELP]Binding Keys to Mouse Scroll Wheel

14 Oct 2017, 07:18

Hello, I am new to AHK, Today i was trying to Bind keys to Mouse Wheel using the following code

Code: Select all

WheelUp::
SendInput {E}
return

WheelDown::
SendInput {F}
return
I got the effect in Notepad, but i was unable to get it in game. Game is Battlefield 2.
Edit: Its working in the in game chat too. But it is not working in the Game control inputs like changing views,minimap,pitch,throttle,etc.
TygerByte
Posts: 96
Joined: 12 Aug 2016, 05:22

Re: [HELP]Binding Keys to Mouse Scroll Wheel

14 Oct 2017, 12:50

Sounds about right. Below I got you a link for information that you should read through especially helpful link 2 in tidbit's post. Good Luck.

For suggested reads related to gaming you should also visit https://autohotkey.com/boards/viewtopic.php?f=7&t=11952 and make sure to check all the helpful links tidbit put down.
User avatar
Reloaded
Posts: 283
Joined: 25 Aug 2017, 08:48

Re: [HELP]Binding Keys to Mouse Scroll Wheel

14 Oct 2017, 13:41

Its maybe the Game, try to run the Game not in FullScreen or run the Scipt with Admin rights or try the new code here

Code: Select all

WheelUp::
Send, E
return

WheelDown::
Send, F
return
Sirr4hh_End
Posts: 2
Joined: 14 Oct 2017, 07:05

Re: [HELP]Binding Keys to Mouse Scroll Wheel

14 Oct 2017, 23:42

Thanks TygerByte for help. The below code works well with delay now! (From RUNIE)

Code: Select all

+WheelUp::
WheelUp::
SendInput {F9 down}
sleep 45
SendInput {F9 up}
return

+WheelDown::
WheelDown::
SendInput {F11 down}
sleep 45
SendInput {F11 up}
return

Return to “Gaming Help (v1)”

Who is online

Users browsing this forum: No registered users and 71 guests