;; -> init JumpPaths := { s: env("Sync") , w: env("Sync") "\Projekt\john.ankarstrom.se\htdocs" , g: env("Sync") "\Projekt\git" , u: env("UserProfile") , e: env("UserProfile") "\Documents" , d: env("UserProfile") "\Downloads" , m: env("UserProfile") "\Music" , p: env("UserProfile") "\Pictures" } DisableHotkeys := false ;; -> body #If !DisableHotkeys #e::OpenExplorer("::{20D04FE0-3AEA-1069-A2D8-08002B30309D}") #If #s:: ToolTip, ... DisableHotkeys := true Input, k, M C L1 DisableHotkeys := false if (JumpPaths[k] != "") { if (InStr(FileExist(JumpPaths[k]), "D")) OpenExplorer(JumpPaths[k]) else Run, % """" JumpPaths[k] """" } ToolTip return ;; -> library env(name) { EnvGet, r, %name% return r } OpenExplorer(path) { for window in ComObjCreate("Shell.Application").Windows { if (window.Document.Folder.Self.path = path) { WinActivate, % "ahk_id " window.hwnd return } } Run, % "explorer /n, """ path """" }