Page 1 of 1

Trouble remapping WheelUp and WheelDown in game

Posted: 19 Sep 2017, 20:28
by Dang Skippy
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?

Re: Trouble remapping WheelUp and WheelDown in game

Posted: 20 Sep 2017, 02:32
by Rohwedder
Hallo,
only a try:

Code: Select all

WheelUp::SendInput, a
WheelDown::SendInput, z

Re: Trouble remapping WheelUp and WheelDown in game

Posted: 20 Sep 2017, 08:00
by evilC
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.

Re: Trouble remapping WheelUp and WheelDown in game

Posted: 24 Sep 2017, 00:15
by Dang Skippy
Thank you very much, SendInput did it.