Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #InstallKeybdHook
- #SingleInstance force
- h1 = Numpad1 ; sets hotkey names for 9 different 100 transitions
- h2 = Numpad2
- h3 = Numpad3
- h4 = Numpad4
- h5 = Numpad5
- h6 = Numpad6
- h7 = Numpad7
- h8 = Numpad8
- h9 = Numpad9
- Hotkey, ^%h1%, transition ; defines the hotkeys
- Hotkey, ^%h2%, transition
- Hotkey, ^%h3%, transition
- Hotkey, ^%h4%, transition
- Hotkey, ^%h5%, transition
- Hotkey, ^%h6%, transition
- Hotkey, ^%h7%, transition
- Hotkey, ^%h8%, transition
- Hotkey, ^%h9%, transition
- Return ; end setup: above code always runs when script starts
- Ctrl & [:: ; pincus
- Send, +[:+]^{Enter}
- Return
- x:: ; submit count and paste
- Send, ^{Enter}
- Sleep, 50
- Send, ^v
- Return
- z:: ; backspace to last space and paste
- Send, {Ctrl Down}{Backspace}v{Ctrl Up}
- Return
- transition: ; common commands for all 100 transitions
- Send, ^{Enter}
- Sleep, 50
- StringTrimLeft, t, A_ThisHotkey, 7 ; not very elegant: trims name of numpad key pressed to get next 100 digit
- Send, ^v{Backspace}%t%{Ctrl down}ac{Ctrl up}{Right} ; changes copypasta
- Return
- Ctrl & Numpad0:: ; backspace three times for k transitions
- Send, ^{Enter}
- Sleep, 50
- Send, ^v{Backspace 3}
- Return
- Ctrl & NumpadDiv:: ; get and copypasta change
- Send, ,0{Ctrl Down}ac{Ctrl Up}{End}00{Ctrl Down}{Enter}v{Ctrl Up}
- Return
- Ctrl & NumpadMult:: ; 001 and copypasta change
- Send, ,0{Ctrl Down}ac{Ctrl Up}{End}01{Space}congrats{Ctrl Down}{Enter}v{Ctrl Up}
- Return
- NumpadAdd:: ; for fun: automatic "not found" and "jumbojet"
- Send, 04{Space}not{Space}found{Ctrl Down}{Enter}v{Ctrl Up} ; uncomment either line as necessary
- ;Send, 47{Space}jumbojet{Ctrl Down}{Enter}v{Ctrl Up}
- Return
- ^End:: ; Suspend script/hotkey operation
- Suspend toggle
- Return
- ; updated as of 10/16/2017
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement