Responsive of mouse wheel mapping

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
osuki9x
Posts: 5
Joined: 24 May 2018, 03:39

Responsive of mouse wheel mapping

24 May 2018, 04:20

This is my script

Code: Select all

#IfWinActive ahk_exe Adobe Audition CC.exe     ; If Adobe Audition is active
!WheelUp::Send ^{WheelUp}                      ; when Alt + wheel scroll
!WheelDown::Send ^{WheelDown}                  ; will be map to Ctrl + wheel scroll
^WheelUp::Send !{WheelUp}                      ; and Ctrl + wheel scroll
^WheelDown::Send !{WheelDown}                  ; wheel be map to Alt + wheel

The script is working, however when the mouse wheel scroll a bit fast the key will not map and back to original function. For example, when the wheel scroll fast, sometime the Alt + WheelUp does not map to Ctrl + WheelUp but send original key (which is Alt + WheelUp)


I wonder is it the script issue or the hardware limitation. Anyway to optimize the script for increasing the responsive of this script.

Thanks in advance.
osuki9x
Posts: 5
Joined: 24 May 2018, 03:39

Re: Responsive of mouse wheel mapping

24 May 2018, 10:46

This is part of my log when the issue occur

Code: Select all

011: Send,^{WheelUp}
011: Return (0.05)
011: Send,^{WheelUp} (0.03)
011: Return (0.06)
011: Send,^{WheelUp}
011: Return (0.27)
011: Send,^{WheelUp}
011: Return (0.02)
015: Send,!{WheelUp}
015: Return (0.03)
011: Send,^{WheelUp} (0.03)
011: Return (0.03)
011: Send,^{WheelUp}
011: Return (0.28)
wolf_II
Posts: 2688
Joined: 08 Feb 2015, 20:55

Re: Responsive of mouse wheel mapping

24 May 2018, 10:51

I did not test myself, but try SendInput to see if it helps.

Or, try with remapping, might also be better.
osuki9x
Posts: 5
Joined: 24 May 2018, 03:39

Re: Responsive of mouse wheel mapping

24 May 2018, 14:30

I did test with SendInput but it seems less responsive than before that. As I research the mouse scroll should be SendEvent but I am not sure
wolf_II
Posts: 2688
Joined: 08 Feb 2015, 20:55

Re: Responsive of mouse wheel mapping

27 May 2018, 11:26

Help attempt number 2:

Try also with remapping.
osuki9x
Posts: 5
Joined: 24 May 2018, 03:39

Re: Responsive of mouse wheel mapping

27 May 2018, 15:48

wolf_II wrote:Help attempt number 2:

Try also with remapping.
ThAnks @wolf_II
I did a test when remapping only Alt::Ctrl
It worked but I don't know how to combine that with scroll wheel for specifically when alt+wheel up is pressed

Return to “Ask for Help (v1)”

Who is online

Users browsing this forum: No registered users and 213 guests