Tuesday, June 9, 2020

AHK for fix mouse roll

#InstallMouseHook
Gui,+AlwaysOnTop
Gui, Add, Edit, w50 r2 ReadOnly vmyEdit
Gui, Show ,x1800 y120
sendwheel()
{
GuiControl,,myEdit, %A_TimeSincePriorHotkey%
x:=A_PriorHotKey
if(A_TimeSincePriorHotkey>400)
x:=A_ThisHotKey
if (x=A_ThisHotKey)
send {%A_ThisHotKey%}
if (x<>A_ThisHotKey and A_TimeSincePriorHotkey<50 p=""> send {%x%}
}
wheelup::sendwheel()
wheeldown::sendwheel()