From 6cfa439bcbd9512388d11ed4aa04d5ac5f5f2216 Mon Sep 17 00:00:00 2001 From: Clive Galway Date: Thu, 14 Nov 2019 21:30:42 +0000 Subject: [PATCH] Fix mouse buttons --- NewMonitor.ahk | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/NewMonitor.ahk b/NewMonitor.ahk index 20f2007..905ae6c 100644 --- a/NewMonitor.ahk +++ b/NewMonitor.ahk @@ -148,7 +148,6 @@ UpdateWidth(hwnd, reset := 0){ CheckboxChanged(id, hwnd){ global AHI GuiControlGet, state, , % hwnd - ;~ ret := Monitor.SetDeviceFilterState(id, state) if (state){ if (id < 11){ AHI.SubscribeKeyboard(id, false, Func("KeyboardEvent").Bind(id)) @@ -211,11 +210,9 @@ KeyboardEvent(id, code, state){ } MouseButtonEvent(id, code, state){ - global hLvMouse, filterMouseMove - if (filterMouseMove && (x != 0 || y != 0)) - return + global hLvMouse Gui, ListView, % hLvMouse - row := LV_Add(, id, code, state, x, y, "Button") + row := LV_Add(, id, code, state, "", "", "Button") LV_Modify(row, "Vis") }