How can I fix sending MouseWheelUp occasionally using modifiers?

Get help with using AutoHotkey and its commands and hotkeys
AHKPenguin
Posts: 2
Joined: 22 Feb 2018, 16:54

How can I fix sending MouseWheelUp occasionally using modifiers?

22 Feb 2018, 18:43

I'm trying to add some behavior that I have bound to shift+MouseWheelUp but occasionally the shift modifier is being applied to what I am sending, here is a simpler repro case with output:

Code: Select all

#NoEnv  ; Recommended for performance and compatibility with future AutoHotkey releases.
; #Warn  ; Enable warnings to assist with detecting common errors.
SendMode Input  ; Recommended for new scripts due to its superior speed and reliability.
SetWorkingDir %A_ScriptDir%  ; Ensures a consistent starting directory.

#InstallKeybdHook
#UseHook On
#MaxHotkeysPerInterval 200


+WheelUp::
    send {a}
return
This will output:
aaaaaaaaaaaaaaaaaAaaaaaaaaaaaaaaaaaaaaAaaaaaaaaaaaaaaAaaaaaaaaaaaaa
The script I am writing is supposed to let me use ctrl+mousewheel to mimic standard mousewheel behavior, but sometimes it will still send ctrl+mousewheel causing things to zoom in and out.

UseHook is something I found suggested for similar problems but has no impact.

Thank you

Return to “Ask For Help”

Who is online

Users browsing this forum: Bing [Bot], colt, ineuw, swagfag, WellHelloThere and 87 guests