Jump to content

Sky Slate Blueberry Blackcurrant Watermelon Strawberry Orange Banana Apple Emerald Chocolate
Photo

Folder Menu - a popup menu to quickly change your folders


  • Please log in to reply
101 replies to this topic
rexx
  • Members
  • 73 posts
  • Last active: Sep 25 2009 03:23 AM
  • Joined: 28 Feb 2006
Folder Menu

v2
src

v1
src

AutoHotkeySC.bin



It's my new mod of the great script Easy Access to Favorite Folders by Savage.

It's really a convenient tool and I've added some new functions to it.

Here's the list of new functions.
- Hotkey2 to show the menu everywhere.
- Support for more applications (such as 7zfm, winrar, filezilla...etc.).
- Holding Ctrl and click an item to open a new menu which contains the subfolders of that item.
- Recent menu for recently opened items.
- Submenu.
- Menu icons.
- Open Selected text (folder path, file path, URL or registry path).
- 'Add favorite' GUI.
- Get path of a folder in explorer, dialog and command prompt, and add it to favorite.
- Get win classname (to add support for more applications, see config.ini).

(the executable)It will create a config.ini file at the first time you run it, which contains the descriptions to the config file and some examples.


updates:
latest updates at Folder Menu
20090408
- fix: submenu name can contains special characters (! " % & ' ( ) * + , - . / : ; < = > \ ^ ` { } ~)
- add: drop file on add favorite gui
20090407
- fix: recent don't keep error item
- fix: don't record recents if there's no recent menu added
- add: option - recent size
- add: option - start with windows
- add: support 7zip 2 panel mode
- add: custom default icons for specified extensions
- add: more special items (Tool Items, SystemRecent)
- add: option - middle click (hotkey1) on desktop to show menu
- add: option - recent menu keeps only folder items
- add: option - don't show menu icons
- fix: new method to get path in open/save dialog
- add: url/reg example items in default config.ini
- add: custom folder items icon
- add: record items recently opened by foldermenu (recent menu). original system recent menu is moved into the recent menu
- add: menu icon supported by AutoHotkey_L (Lexikos' custom build)
- fix: submenu name can contain ' ' (space)
- fix: filezilla3 with no quick connect bar
- add: favorite can use reg path
- config.ini updated (for recent folders)
- fix: submenu name can contain '&'
- add: custom special items position (Tool, Debug, Recent)
- add: debug menu item
- add: recent folder menu item
- fix: send MBCS bug in cmd
- add: ..\ item in temp menu to go up
- fix: compatible with vista addressbar
- fix: path can contain '='
- add: holding shift or rbutton works like ctrl(open subfolder menu)
- add: support for fz3, total commander
- add: open selected registry path

rexx
  • Members
  • 73 posts
  • Last active: Sep 25 2009 03:23 AM
  • Joined: 28 Feb 2006
Small update:
Sort the subfolders menu items and add a parentfolder item to the top of the menu.

Carlol
  • Members
  • 163 posts
  • Last active: Aug 03 2010 03:45 AM
  • Joined: 14 Aug 2006
I want to check out your script, but I get an "Error at line 649. Line Text: [Hotkeys] Error: This line does not contain a recognised action" ...

Any suggestions, because it looks like a interesting "update" to Savage fine script :-)

rexx
  • Members
  • 73 posts
  • Last active: Sep 25 2009 03:23 AM
  • Joined: 28 Feb 2006
hmm.. i think you've copy both the ahk script and config.ini into one ahk script.
you should save the config.ini part in another file named "config.ini" and put it in the script folder.

Carlol
  • Members
  • 163 posts
  • Last active: Aug 03 2010 03:45 AM
  • Joined: 14 Aug 2006

It will create a config.ini file at the first time you run it, which contains the descriptions to the config file and some examples.


Well this does not happen, the error dialogue comes first, so I guess you're right somehow, what to do? :?

RocknRoller
  • Guests
  • Last active:
  • Joined: --
Thanks for these enhancements rexx.

The original script by Savage is one of the most useful tools I have on my work computer. I made some small modifications to it because I am using a different file manager (Servant Salamander).

I'll work on implementing my changes into your script to benefit from these cool new features!

rexx
  • Members
  • 73 posts
  • Last active: Sep 25 2009 03:23 AM
  • Joined: 28 Feb 2006

It will create a config.ini file at the first time you run it, which contains the descriptions to the config file and some examples.


Well this does not happen, the error dialogue comes first, so I guess you're right somehow, what to do? :?

this only works when using the compiled file.

if you want to use a script, you have to put the script code and config.ini code in two files, note that there are two code sections, don't put them in a same file...

Carlol
  • Members
  • 163 posts
  • Last active: Aug 03 2010 03:45 AM
  • Joined: 14 Aug 2006
Oh :roll: I see what you mean, thanks I'll try to work it out. 8)

Carlol
  • Members
  • 163 posts
  • Last active: Aug 03 2010 03:45 AM
  • Joined: 14 Aug 2006
He he I got it running, thanks a lot, and sorry for being a bit on the slow side, I hadn't noticed the additional config code, but now I'm up and running. :p

Carlol
  • Members
  • 163 posts
  • Last active: Aug 03 2010 03:45 AM
  • Joined: 14 Aug 2006
One last question, I'm now running the script, and happily getting addicted to it, although I would like to loose the tray icon, or replace with another than the default. #NoTrayIcon doesn't seem to work! :?: 8)

rexx
  • Members
  • 73 posts
  • Last active: Sep 25 2009 03:23 AM
  • Joined: 28 Feb 2006
In the config.ini file.
; Set NoTray = 1 to hide Tray Icon.
NoTray = 0

If you want to replace the icon, you can use the menu command.
Menu, Tray, Icon, <icon path>
Add this line anywhere in the autoexecute section.

Carlol
  • Members
  • 163 posts
  • Last active: Aug 03 2010 03:45 AM
  • Joined: 14 Aug 2006
:p Beautiful..Thanks!

Jameson
  • Members
  • 2 posts
  • Last active: Sep 05 2008 06:13 AM
  • Joined: 24 Apr 2008
谢谢。
Thanks。

lima
  • Members
  • 7 posts
  • Last active: Jan 06 2009 09:24 AM
  • Joined: 24 Sep 2008
If i want to add a url with a equal sign '=' in it, the script has a problem with the equal sign in the config.ini file.
In the config.ini file you see something like this:
forum=http://www.autohotkey.com/forum/viewtopic.php?p=93644
The line is being cutt-off on the second '='.
How can i solve this?

FatZgrED
  • Members
  • 14 posts
  • Last active: Nov 24 2012 04:14 PM
  • Joined: 19 Oct 2008
Total Commander is very popular.
To use Folder Menu in it you need to add:
1)TTOTAL_CMD class to Config.ini\OtherApps
2)this part in f_OpenFavorite:
;----- TOTAL COMMANDER ----
else if w_Class in TTOTAL_CMD, ; In TOTAL COMMANDER
{
	if w_Edit1Pos <> 
	{
		ControlClick, Edit1, ahk_id %w_WinID%
       ;Total Commander has Edit1 control but you need to cd to location
		ControlSetText, Edit1, cd %f_OpenFavPath%, ahk_id %w_WinID%
		ControlSend, Edit1, {Right}{Enter}, ahk_id %w_WinID%
		return
	}

}
PS. Adding this to original script would be great.