Jump to content


Photo

Folder Menu - a popup menu to quickly change your folders


  • Please log in to reply
100 replies to this topic

#1 rexx

rexx
  • Members
  • 73 posts

Posted 02 December 2006 - 10:29 AM

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

#2 rexx

rexx
  • Members
  • 73 posts

Posted 05 December 2006 - 01:23 PM

Small update:
Sort the subfolders menu items and add a parentfolder item to the top of the menu.

#3 Carlol

Carlol
  • Members
  • 163 posts

Posted 06 December 2006 - 11:05 AM

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 :-)

#4 rexx

rexx
  • Members
  • 73 posts

Posted 06 December 2006 - 12:23 PM

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.

#5 Carlol

Carlol
  • Members
  • 163 posts

Posted 06 December 2006 - 03:18 PM

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? :?

#6 RocknRoller

RocknRoller
  • Guests

Posted 06 December 2006 - 03:44 PM

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!

#7 rexx

rexx
  • Members
  • 73 posts

Posted 07 December 2006 - 03:09 PM

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...

#8 Carlol

Carlol
  • Members
  • 163 posts

Posted 07 December 2006 - 03:59 PM

Oh :roll: I see what you mean, thanks I'll try to work it out. 8)

#9 Carlol

Carlol
  • Members
  • 163 posts

Posted 07 December 2006 - 04:12 PM

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

#10 Carlol

Carlol
  • Members
  • 163 posts

Posted 08 December 2006 - 08:32 AM

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)

#11 rexx

rexx
  • Members
  • 73 posts

Posted 08 December 2006 - 10:41 AM

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.

#12 Carlol

Carlol
  • Members
  • 163 posts

Posted 08 December 2006 - 11:29 AM

:p Beautiful..Thanks!

#13 Jameson

Jameson
  • Members
  • 2 posts

Posted 02 September 2008 - 01:16 PM

谢谢。
Thanks。

#14 lima

lima
  • Members
  • 7 posts

Posted 25 September 2008 - 11:27 AM

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?

#15 FatZgrED

FatZgrED
  • Members
  • 14 posts

Posted 19 October 2008 - 01:15 PM

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.