From 80109204863aea43532d50afc8c537e3f651c469 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?John=20Ankarstr=C3=B6m?= Date: Mon, 19 Apr 2021 23:43:45 +0200 Subject: windowselect: Block input during mouse action This prevents the user from accidentally moving taskbar buttons around, or clicking on the wrong button. --- tt.windowselect.ahk | 2 ++ 1 file changed, 2 insertions(+) (limited to 'tt.windowselect.ahk') diff --git a/tt.windowselect.ahk b/tt.windowselect.ahk index 0f975b9..20c10b1 100644 --- a/tt.windowselect.ahk +++ b/tt.windowselect.ahk @@ -29,7 +29,9 @@ Taskbar(n) tmp := A_CoordModeMouse CoordMode, Mouse, Screen MouseGetPos, ox, oy + BlockInput, On MouseClick, Left, %x%, %A_ScreenHeight%, 1, 0 MouseMove, %ox%, %oy%, 0 + BlockInput, Off CoordMode, Mouse, %tmp% } -- cgit v1.2.3