How can I fix sending MouseWheelUp occasionally using modifiers?

Get help with using AutoHotkey (v1.1 and older) 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 (v1)”

Who is online

Users browsing this forum: doodles333, vysmaty and 245 guests