Quite a few changes to this now. Here's what I remember that I've done:
- Made the application localizable by using an INI file based on the current user's LCID. If it's not there then you'll get the English strings which you can then change by editing the HFxxxx.INI file that gets created.
- Removed the keyboard hook as it was conflicting with the hotkey setting.
- Added the ability to configure the hotkeys used for the application functionality.
- Added an about tab for shameless self-promotion :-)
- The dialog is created and destroyed on the fly rather than being permanently created. I've also used Koda to design it (now that I've got the hang!)
- Fixed the problem with the address bar not being displayed in Windows Explorer
- Added "Special" folders to the shortcut menu
- Split this into multiple scripts with a view to re-using some functionality in other projects. You need to load up _HotFolders_v0.4.0.au3.
Seems like AutoIt scripts are addictive! I've added an option for a shortcut menu on file open/save dialogs. Pressing [Ctrl]- will bring up a menu with a list of "Active" and "Hot" folders. "Active" folders are ones currently open in an explorer window. "Hot" folders are the ones configured in the dialog. I'm considering adding an application specific history to this menu as well but I'm not sure whether it will be useful. There's also an option to remove the current filter by forcing "*.*" into the selection. Description below updated.
Thanks to Ascend4nt and lod3n for the _WinAPI_ProcessGetFilename UDF.
Thanks to happy2help for updating the UI.
Suggestions from happy2help included. There's now a menu for the folders on the tray icon. Also, the first available item in the list is selected when the dialog is created.
I used to use a tool called Dirkey NTXP to provide fast access to commonly used folders. However, the program is no longer maintained and it doesn't support everything I'd like it to. The only other tool that comes near right now is FlashFolders but this installs itself as a service which makes me jumpy and it still doesn't provide everything I'd like. To this end, I present my very first complete script called "Hot Folders". A quick user guide:
Use [Ctrl][Win]- to bring up the settings dialog. From here you can:
- Select an item in the list using the mouse or a numeric key 0-9.
- Double click an item or use the "Browse" button to change the associated folder.
- Use the "Clear" button to remove the association for a number.
- Click "Explore" to run Windows Explorer for the currently selected folder.
- Choose whether Windows Explorer will open with the folders shown on the left (or not).
- Click "Close" to minimise the dialog to the system tray.
- The Windows built-in common file open/save dialog
- The MS Office file open/save dialogs
- The Visual Studio 2005/2008 file open/save dialogs
- Windows Explorer
You can also use [Ctrl]- when the currently active dialog is a file open/save dialog. This will create a shortcut menu from which you can select one of your configured folders or any folder currently open in a Windows Explorer menu. In addition, you can select the installation folder for the current application. The shortcut menu also includes an option to remove the active filter from the dialog by forcing "*.*" into the file selection.
I was going to continue development of this script to allow more configuration options (e.g. which hotkey combinations to use) and to support more active window types but to be honest it does everything that I want it to right now. I've scoured the forum and couldn't find anything similar so I hope that this will be useful to someone. Suggest enhancements would be to
- Provide support for e.g. Total Commander, Q-Dir etc.
- Allow configuration of hotkey combination
- Add in support for the common folder browser dialog (this is detected in the script but isn't handled)
Code now moved to HERE
Edited by WideBoyDixon, 20 May 2009 - 01:20 PM.