Skip to content

Instantly share code, notes, and snippets.

@TLMcode
Created November 13, 2020 17:47
Show Gist options
  • Save TLMcode/dc1247e0402eea3bc6142058268e0f72 to your computer and use it in GitHub Desktop.
Save TLMcode/dc1247e0402eea3bc6142058268e0f72 to your computer and use it in GitHub Desktop.
Open Media Directories for AutoHotkey
TopDir := HomeDrive "\Users\" A_UserName
SubDir := "CWD_Cue_Videos"
DirArr := [ "Music", "Pictures", "Videos" ]
For Each, Dir in DirArr
{
run % CurDir := TopDir "\" Dir "\" SubDir,,, DirPid
winwait % CurDir
winactivate % CurDir
winwaitactive % CurDir
send % "{LWin Down}"
. ( (i:=!i) ? "{Right}" : "{Left}" )
. "{Win Up}"
}
ExitApp
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment