Created
August 18, 2020 07:57
-
-
Save oguimbal/6953f38c01a94b5e33eb36499950dbd2 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
!j::Send ^{Left} | |
!l::Send ^{Right} | |
!i::Send {Up} | |
!k::Send {Down} | |
!u::Send {Left} | |
!o::Send {Right} | |
!m::Send {End} | |
!ù::Send {Home} | |
#If (!WinActive("ahk_exe devenv.exe") && !WinActive("ahk_exe Code.exe")) | |
!+j::Send ^+{Left} | |
!+l::Send ^+{Right} | |
!+i::Send +{Up} | |
!+k::Send +{Down} | |
!+u::Send +{Left} | |
!+o::Send +{Right} | |
!+m::Send +{End} | |
!+ù::Send +{Home} | |
#If | |
; Code below will hide/show the Windows Terminal window when pressing F1. Remove it if needed. | |
F1:: | |
DetectHiddenWindows, on | |
IfWinExist ahk_exe WindowsTerminal.exe | |
{ | |
IfWinActive ahk_exe WindowsTerminal.exe | |
{ | |
WinHide ahk_exe WindowsTerminal.exe | |
if(temptitle="") | |
WinActivate ahk_class Shell_TrayWnd | |
else | |
WinActivate %temptitle% | |
} | |
else | |
{ | |
WinGetActiveTitle, temptitle | |
WinShow ahk_exe WindowsTerminal.exe | |
WinActivate ahk_exe WindowsTerminal.exe | |
} | |
} | |
else{ | |
WinGetActiveTitle, temptitle | |
Run wt.exe --maximized | |
} | |
DetectHiddenWindows, off | |
return |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment