Compare commits

..

2 Commits

Author SHA1 Message Date
c5c5b53ddd Add hotkey for opening vs-code 2024-11-19 09:27:05 -08:00
a11ec34202 Add hotkey for opening browser 2024-11-19 09:26:53 -08:00

View File

@ -19,6 +19,28 @@ DownloadYoutubeVideo(dataType)
} }
OnClipboardChange DownloadYoutubeVideo OnClipboardChange DownloadYoutubeVideo
; Focus the web browser if there is one open.
^!+#b:: ; Capslock+b to open a browser
{
browserID := WinExist("ahk_exe firefox.exe")
if (browserID) {
WinActivate(browserID)
return
}
}
; Focus VS Code if there is one open.
; This may not work properly if there are more than one instances of VS Code running.
^!+#v:: ; Capslock+v to open a browser
{
vscodeID := WinExist("ahk_exe code.exe")
if (vscodeID) {
WinActivate(vscodeID)
return
}
}
; Open a terminal over the currently focused VS Code window. ; Open a terminal over the currently focused VS Code window.
; If there is an open Windows Terminal, use that, otherwise create a new one. ; If there is an open Windows Terminal, use that, otherwise create a new one.