Compare commits
2 Commits
446bd36b91
...
c5c5b53ddd
Author | SHA1 | Date | |
---|---|---|---|
c5c5b53ddd | |||
a11ec34202 |
22
main.ahk
22
main.ahk
@ -19,6 +19,28 @@ DownloadYoutubeVideo(dataType)
|
||||
}
|
||||
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.
|
||||
; If there is an open Windows Terminal, use that, otherwise create a new one.
|
||||
|
Loading…
Reference in New Issue
Block a user