Trouble remapping WheelUp and WheelDown in game

Ask gaming related questions (AHK v1.1 and older)
Dang Skippy
Posts: 4
Joined: 19 Sep 2017, 20:18

Trouble remapping WheelUp and WheelDown in game

19 Sep 2017, 20:28

Hello Everyone,

I am having a bit of trouble remapping the WheelUp and WheelDown actions in the game "God Eater Resurrection". I want to use the scroll wheel to scroll through the radial menus in game. Unfortunately, the game itself doesn't recognize the wheel scrolling; instead, you navigate the menus by pressing "scroll left" and "scroll right" buttons, in this case bound to "a" and "z".

My script looks like this:

Code: Select all

#MaxHotkeysPerInterval 2000
#InstallKeybdHook
#InstallMouseHook

WheelUp::a
WheelDown::z
If I run the script outside of the game and scroll up or down, each click of "up" produces one "a" and each click of "down" produces one "z". So far so good.

However, in game, as soon as I scroll up or down even one click, the game thinks that I am continuously hammering or holding "a" or "z". There is no way to stop it, either; the game thinks that the corresponding key is held or hammered and the menu scrolls (or twitches back and forth rapidly) until I quit. I've googled around for a solution and found none. Would anyone be able to shed some light on what could be going on here?
Rohwedder
Posts: 7670
Joined: 04 Jun 2014, 08:33
Location: Germany

Re: Trouble remapping WheelUp and WheelDown in game

20 Sep 2017, 02:32

Hallo,
only a try:

Code: Select all

WheelUp::SendInput, a
WheelDown::SendInput, z
User avatar
evilC
Posts: 4823
Joined: 27 Feb 2014, 12:30

Re: Trouble remapping WheelUp and WheelDown in game

20 Sep 2017, 08:00

WheelUp::a is logically equivalent to:

Code: Select all

Wheelup::Send {a down}
Wheelup up::Send {a up}
Mouse wheel does not have an up (Release) event like most keys do, so in effect, it is equivalent to Wheelup::Send {a down}, which would explain the behaviour you see.

Rohwedder's solution should work around this.
Dang Skippy
Posts: 4
Joined: 19 Sep 2017, 20:18

Re: Trouble remapping WheelUp and WheelDown in game

24 Sep 2017, 00:15

Thank you very much, SendInput did it.

Return to “Gaming Help (v1)”

Who is online

Users browsing this forum: No registered users and 59 guests