Last active
October 30, 2020 15:06
-
-
Save Narvey/b78f9a4ca075bbd8ad9367c1c7093f04 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
#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases. | |
#Warn ; Enable warnings to assist with detecting common errors. | |
#SingleInstance force | |
#persistent | |
defaultMode=2 | |
SetTitleMatchMode,%defaultMode% ;mainly for sub-scripts that may actually need to match on title. | |
SendMode Input ; Recommended for new scripts due to its superior speed and reliability. | |
SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory. | |
;Ctr-Sft-?: Help window listing shortcuts | |
^+/:: | |
MsgBox, | |
( | |
Ctr-~ (Ctr-Sft-`): Temporary action (changes too frequently to change description here) | |
Ctr-Alt-C: Convert Clipboard to text. | |
Pause: Play/Pause music | |
Ctr-Alt-R: reload AutoHotKey Script | |
Ctr-Sft-Z: sends Win-V (win10 clipboard manager shortcut). | |
) | |
return | |
CAPSLOCK::return ; could make shortcut for something | |
!CAPSLOCK::return | |
+CAPSLOCK::return | |
#CAPSLOCK::return | |
^+CAPSLOCK::return | |
!+CAPSLOCK::return | |
;the only combo I want to still work is Ctrl-CAPSLOCK. | |
$^+q:: | |
IfWinNotActive, ahk_exe firefox.exe | |
{ | |
Send ^+q ; Only let Ctrl-Shift-Q through if this is not Firefox. | |
} | |
^+`:: ;Ctr-~ temp action | |
loop 7000 | |
{ | |
click | |
sleep 10 | |
} | |
return | |
;Ctr-Alt-C: Convert Clipboard to text. | |
^!c:: | |
tmp=%clipboard% | |
clipboard=%tmp% | |
return | |
;Win-E: Quick Access | |
;#e::run,%APPDATA%\Microsoft\Windows\Start Menu\Programs\Quick access.lnk | |
;Windows does this already | |
;Pause: Play/Pause music | |
Pause::send,{Media_Play_Pause} | |
;Ctr-Alt-R: reload | |
^!r::reload | |
;Ctr-Sft-Z: sends Win-V (win10 clipboard manager shortcut). | |
^+z::Send #v | |
;;; hotstrings ;;; | |
;This hotstring replaces ".dts" with the current DateTime Stamp via the commands below. Works for every whole-hour timezone West of UTC. | |
; (* means do not wait for whitespace after) | |
:*:.dts:: | |
tmp = %A_NowUTC% | |
EnvSub,tmp,%A_Now%,Hours | |
FormatTime, CurrentDateTime,,yyyy-MM-ddTHH:mm:ss-0%tmp%00 | |
SendInput %CurrentDateTime% | |
return | |
::resume'::résumé | |
; ? means it can have letters before the . | |
:?:.und::.u{U+006E}{U+0064}el{U+0040}me{U+0061}n{U+0064}myi{U+0064}{U+002E}co{U+006D} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment