Last active
October 15, 2022 18:19
-
-
Save noih/4e4e6f3b79ee3bf5a17f54962720d5a1 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#SingleInstance, Force | |
#NoEnv | |
SetBatchLines -1 | |
ListLines Off | |
SendMode Input | |
SetDefaultMouseSpeed, 2 | |
SetWorkingDir, %A_ScriptDir% | |
Delete::ExitApp | |
^6:: | |
^7:: | |
^8:: | |
^9:: | |
^t:: | |
^y:: | |
^u:: | |
^i:: | |
idx := SubStr(A_ThisHotkey, 2, 1) | |
key := "Numpad" . key2num(idx) | |
KeyWait, Ctrl, U | |
Send {LCtrl Down} | |
Sleep, 60 | |
Send {%key% Down} | |
Sleep, 60 | |
Send {%key% Up} | |
Sleep, 60 | |
Send {LCtrl Up} | |
return | |
!6:: | |
!7:: | |
!8:: | |
!9:: | |
!t:: | |
!y:: | |
!u:: | |
!i:: | |
idx := SubStr(A_ThisHotkey, 2, 1) | |
key := "Numpad" . key2num(idx) | |
KeyWait, Alt, U | |
Send {%key% Down} | |
Sleep, 60 | |
Send {%key% Up} | |
return | |
key2num(key) { | |
switch key { | |
case "t": return 2 | |
case "y": return 3 | |
case "u": return 4 | |
case "i": return 5 | |
default: return key | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment