Here's my latest version of this handy shortcut menu.
Favorite Shortcuts is probably a better name for it now.
Features:
- Popup menu is made up of standard Windows shortcut file types ( .lnk, .url and .pif )
- Shortcuts to folders, files, executables and web pages can all be displayed on the menu
- Subfolders within the base folder produce submenus only if they contain shortcuts ( no empty submenus are produced )
- The base folder will be created upon first run of the script if it does not exist
- Supported window types and their actions:
--- folder shortcuts will cause the directory to change in several window types:
----- Standard file-open or file-save dialogs
----- Explorer windows
----- Console (command prompt) windows
----- Microsoft Office file Open and Save As dialogs
----- Directory Opus and Console
--- file shortcuts will load the target into file-open dialogs
--- url shortcuts will redirect open browsers to their target
- (option) Outside of the supported windows all shortcuts will be run in their default way, as if you double clicked on the shortcut itself
-
NEW (option) Windows Special folders and Virtual folders can be added to the menu
- Three items appear at the bottom of the popup menu:
--- Add Folder to Favorites - allows the user to add new folder shortcuts to the base folder
--- Add File to Favorites - allows the user to add new file shortcuts to the base folder
--- Edit Favorites Folder - conveniently opens an explorer window to the base folder
- Valid paths can be extracted from any window title ( if it shows the full path ) or from the clipboard or can be typed in manually
- Any shortcut that cannot be put in through the menu ( executables and urls ) can be drag and droped into the base folder or subfolders in the usual way
- You can order the menu and add seperator lines by adding a comment to the shortcut file: menu=(integer) [blank] example: "menu=2" or "menu=12 blank"
Tips:
- For AutoHotkey programmers whose editor shows the full path in the title bar:
Quickly test run scripts your working on by adding it through 'Add File to Favorites'.
Then select your script from the menu. AutoHotkey will start and run the script.
-
-To add a file or folder to the menu directly from an Explorer window:
Select the file or folder. Right-click->Copy. Minimize all windows. Bring up your favorites menu and use the 'Add' items at the bottom.
Tested only on WinXP with AutoHotkey 1.0.46.05
LAST UPDATED: Jan 13 2007
DOWNLOAD
Updates:
Jan 13/07
- fixed bug that stopped it from working with AHK ver 1.0.46
- added basic warning messages when a shortcut could not be run.
Oct 20/06
- added optional menu items for Windows special folders using their GUID
Oct 13/05
- fixed bug that didn't handle identical named shortcuts in different folders properly
- added better error checking for dynamic variable names that are too long
Oct 11/05
- fixed bug that read in the enviroment path variable when no valid path was found in window title or clipboard.
- added support for .pif files
- added support for ordering menu items (.lnk files only) and adding seperator lines, thru the comment field of the .lnk files
- added more error checking
Sept 24/05
- made static hotkey into dynamic hotkey
- made seperate option to show menu for unsupported windows ( not linked to ~ )
- fixed bug that caused long paths in the favorites folder to crash script
- fixed bug(s) that caused paths to be found for windows without focus sometimes
Sept 22/05
- moved static hotkey to end of autoexecute section