Skip to content

Instantly share code, notes, and snippets.

@arieljannai
Created September 26, 2020 14:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save arieljannai/3567641f30407196e04e1d0511b72dea to your computer and use it in GitHub Desktop.
Save arieljannai/3567641f30407196e04e1d0511b72dea to your computer and use it in GitHub Desktop.
Opens VLC in a small video in the top right corner, with always-on-top and minimal-interface (clipboard/arg)
; Verify that you have AutoHotKey on your computer
; Save the script to your desired location, preferably in the path
; Calling the script:
; If no args: taking from clipboard (`vlc-corner-view.ahk`)
; If with one arg: using that argeument (`vlc-corner-view.ahk path-to-video`)
if (%0%=0) {
Run, vlc.exe --no-video-deco --qt-minimal-view --video-on-top --autoscale --no-qt-video-autoresize "%clipboard%"
} else {
Run, vlc.exe --no-video-deco --qt-minimal-view --video-on-top --autoscale --no-qt-video-autoresize "%1%"
}
WinWait VLC media player
WinActivate
WinMove A,, 1300, 20, A_ScreenWidth-1300, A_ScreenHeight-700
Exit
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment