Created
November 11, 2020 22:52
-
-
Save ryansmccoy/5dab7eee17fa0f65e25b4d6e8bce4cba to your computer and use it in GitHub Desktop.
keyboard_shortcuts.ahk
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
#Persistent | |
#SingleInstance, Force | |
#NoEnv | |
SetBatchLines, 1 | |
SetBatchLines 15ms | |
Thread, NoTimers, true | |
;Menu, Tray, Icon, , , 1 | |
Pause | |
:R*?:ttt:: | |
FormatTime, CurrentDateTime,, yyyy-MM-ddTHH-mm-ss | |
SendInput %CurrentDateTime% | |
return | |
:R*?:ggg:: | |
FormatTime, CurrentDateTime,, yyyyMMddTHHmmssZ | |
SendInput %CurrentDateTime% | |
return | |
:R*?:xxx:: | |
FormatTime, CurrentDateTime,, yyyyMMdd | |
SendInput %CurrentDateTime% | |
return | |
:R*?:ccc:: | |
FormatTime, CurrentDateTime,, MM-dd-yy | |
SendInput %CurrentDateTime% | |
return | |
:R*?:vvv:: | |
FormatTime, CurrentDateTime,, yyMMdd-HHmmss | |
SendInput %CurrentDateTime% | |
return | |
^!k:: | |
clipboard:= clipboardAll | |
clipboard:= RegExReplace(clipboard,"[\\/:*?""<>|]") | |
clipboard := RegExReplace(clipboard,"`am)^.*\\") | |
Send ^v | |
return | |
^!i:: | |
clipboard:= ClipboardAll | |
clipboard:=RegExReplace(clipboard, "[\W_]+", " ") | |
Send ^v | |
return | |
^l:: ; Convert text to lower | |
StringLower Clipboard, Clipboard | |
Send %Clipboard% | |
RETURN | |
^!9:: | |
clipboard:= ClipboardAll | |
clipboard:=RegExReplace(clipboard,"[^[:ascii:]]") | |
Send ^v | |
return | |
^!0:: ; Convert text to upper | |
StringUpper Clipboard, Clipboard | |
Send %Clipboard% | |
RETURN |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment