Skip to content

Commit

Permalink
Add hotkey for opening current link in mpv
Browse files Browse the repository at this point in the history
  • Loading branch information
TheBestPessimist committed Sep 6, 2020
1 parent 75bff18 commit a627baa
Showing 1 changed file with 20 additions and 1 deletion.
21 changes: 20 additions & 1 deletion app_handling.ahk
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#Include WinTitles.ahk
#Include WinTitles.ahk



Expand Down Expand Up @@ -278,3 +278,22 @@ F4:: SendInput !{F4}
; SendInput {LButton}
; }
; }


CapsLock & v::
openInMpv() {
ClipSaved := ClipboardAll ; Backup Clipboard
clipboard := ""

Send ^l
Sleep 100
Send ^a
Sleep 100
Send ^c
ClipWait 1

Tippy("Opening mpv with: " Clipboard)
Run % "mpvnet.exe " Clipboard

Clipboard := ClipSaved ; Restore Clipboard
}

0 comments on commit a627baa

Please sign in to comment.