From de1a130495c5175141f392f888f65eb14282e8f8 Mon Sep 17 00:00:00 2001 From: Klesh Wong Date: Sat, 23 Jan 2021 20:51:24 +0800 Subject: [PATCH] =?UTF-8?q?[feature]=20alt+tab=20=E5=88=87=E6=8D=A2?= =?UTF-8?q?=E7=AA=97=E5=8F=A3=E5=90=8E=E5=B0=86=E9=BC=A0=E6=A0=87=E7=A7=BB?= =?UTF-8?q?=E5=8A=A8=E8=87=B3=E7=AA=97=E5=8F=A3=E4=B8=AD=E5=BF=83?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- win/win.ahk | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/win/win.ahk b/win/win.ahk index d65b952..3c8c9f5 100644 --- a/win/win.ahk +++ b/win/win.ahk @@ -138,7 +138,15 @@ MoveCursorWin(toRight) { ~#7 Up:: ~#8 Up:: ~#9 Up:: - Sleep 0.5 + Sleep 100 WinGetPos, x, y, w, h, A DllCall("SetCursorPos", "int", x + w / 2, "int", y + h / 2) - return \ No newline at end of file + return +~!Tab Up:: + while (GetKeyState("Alt") != 0 or GetKeyState("Tab") != 0) { + Sleep 50 + } + Sleep 100 + WinGetPos, x, y, w, h, A + DllCall("SetCursorPos", "int", x + w / 2, "int", y + h / 2) + return