Created
November 13, 2021 17:38
-
-
Save Polyterative/3564ab271c87388590b06844d432c8df to your computer and use it in GitHub Desktop.
Main fulltime autohotkey script
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. | |
SendMode Input ; Recommended for new scripts due to its superior speed and reliability. | |
SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory. | |
;https://www.autohotkey.com/docs/KeyList.htm | |
;n::o | |
;o::n | |
;a::t | |
;t::a | |
;o::u | |
;u::o | |
;a::f | |
;f::a | |
;Ins::^s | |
PrintScreen::Send {Media_Play_Pause} | |
#IfWinActive ahk_exe Explorer.EXE | |
F1:: | |
WinMove, Telegram,, 62, 0, 1249,720 | |
return | |
#IfWinActive | |
#IfWinActive ahk_exe Discord.exe | |
^w::Send !{Space}c | |
#IfWinActive | |
#IfWinActive ahk_exe Rider.exe | |
F1::Send {Esc}{F1}^s ;f4 must be in brackets | |
#IfWinActive | |
#IfWinActive ahk_exe HueSync.exe | |
^w::Send !{F4} ;f4 must be in brackets | |
#IfWinActive | |
#IfWinActive ahk_exe Teams.exe | |
^w::Send !{F4} ;f4 must be in brackets | |
#IfWinActive | |
#IfWinActive ahk_exe Spotify.exe | |
^w::Send !{F4} ;f4 must be in brackets | |
#IfWinActive | |
#IfWinActive Commit Changes | |
F10::^Enter | |
#IfWinActive | |
SetTitleMatchMode, 2 | |
#IfWinActive Push Commits | |
F10::^Enter | |
#IfWinActive | |
#IfWinActive ahk_class Chrome_WidgetWin_1 | |
;<^t::F13 ;block | |
F1::Send {F5} | |
;F2::^Tab | |
F3::^w | |
>^\::^w | |
;\::^t | |
F7::^c | |
F8::^v | |
!CapsLock::!w | |
;type what's on the clipboard rather than pasting it: | |
>^v::SendRaw %clipboard% | |
#IfWinActive | |
;///////////////////////////// | |
;media controls | |
^Home::Send {Media_Play_Pause} | |
^Insert::Send {Media_Prev} | |
^PgUp::Send {Media_Next} | |
;long press esc to send an AltF4 | |
$*Esc:: | |
Send {Blind}{Esc} | |
KeyWait, Esc, T0.99 | |
If ErrorLevel { | |
Send !{F4} ;f4 must be in brackets | |
KeyWait, Esc | |
} | |
;WheelLeft::Control | |
;custom shorts | |
:*:@@::[email protected] | |
:*:@1::[email protected] | |
:*:@2::polyterative | |
:*:@lorem::Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua | |
;Italian stuff https://www.autohotkey.com/docs/Hotstrings.htm | |
:*?C:e'::è ; Send è | |
:*?C:i'::ì ; Send ì | |
:*?C:a'::à ; Send à | |
:*?C:o'::ò ; Send ò | |
:*?C:u'::ù ; Send ù | |
:*?C:E'::È ; Send È | |
::po::po' | |
:*:perche::perché | |
;backspace stuff, capslock is letter, backspace deletes a word | |
;Backspace::^Backspace | |
CapsLock::BackSpace | |
;Makes Shift+Caps go into Capslock mode | |
global IsCapsOn :=GetKeyState("CapsLock", "T") | |
+CapsLock:: | |
IsCapsOn := !IsCapsOn | |
If IsCapsOn = 1 | |
SetCapsLockState , off | |
;KeyboardLED(7, "on") | |
Else | |
SetCapsLockState , on | |
;KeyboardLED(7, "off") | |
;*LWin Up:: Tooltip The last key was: %A_PriorKey% | |
Return |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment