From 2241f725a33547b0744ec6aa310e203cbbbdf995 Mon Sep 17 00:00:00 2001 From: Klesh Wong Date: Thu, 23 Jul 2020 10:32:27 +0800 Subject: [PATCH] [feature] move cursor when using win key --- win/win.ahk | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/win/win.ahk b/win/win.ahk index 5b2e7c6..7a1f272 100644 --- a/win/win.ahk +++ b/win/win.ahk @@ -105,4 +105,18 @@ MoveCursorMon(toRight) { } #u:: MoveCursorMon(False) -#i:: MoveCursorMon(True) \ No newline at end of file +#i:: MoveCursorMon(True) + +~#1 Up:: +~#2 Up:: +~#3 Up:: +~#4 Up:: +~#5 Up:: +~#6 Up:: +~#7 Up:: +~#8 Up:: +~#9 Up:: + Sleep 0.5 + WinGetPos, x, y, w, h, A + DllCall("SetCursorPos", "int", x + w / 2, "int", y + h / 2) + return \ No newline at end of file