HydrogenAudio

Hosted Forums => foobar2000 => Support - (fb2k) => Topic started by: vapidsquid on 2005-10-04 02:29:04

Title: [0.9b9] Explorer context menu question
Post by: vapidsquid on 2005-10-04 02:29:04
I recently did a fresh install of Windows XP (sp2) and installed the latest beta of foobar2000.

I've searched the forums looking for an answer to this and was unable to come up with anything (perhaps i was using the wrong keywords), and a google search on similar keywords yielded one hit that seemed useful, but was in french and google refused to translate that portion of the forum thread. ( here's the thread (http://forum.hardware.fr/hardwarefr/VideoSon/sujet-53319-139.htm) ).

A very convenient feature of foobar that i have grown accustomed to using frequently is the explorer context menu option of "play in foobar" and "enqueue in foobar" that has been present on folders, not just files, as long as i can remember.

After installing 0.9b9, the first thing i noticed was that this no longer exists.

Is this just my install, or has it been removed from the install process? Did i miss an option in setup (if so, i missed it several times trying to fix the problem)?

If this has been removed, is there a way that i can configure my folder context menus to include this?

Thank you for your time,
corey
Title: [0.9b9] Explorer context menu question
Post by: gfngfgf on 2005-10-04 02:40:19
Look in your main foobar2000 folder (on most systems, that's "C:\Program Files\foobar2000\") for fooassoc.exe.  Run that and you'll get options to associate files with foobar2000.
Title: [0.9b9] Explorer context menu question
Post by: Cosmo on 2005-10-04 03:14:51
To associate file types with v0.9 Beta 9, go to Preferences > File Types.

If the file types you're concerned about are already associated (indicated by a checkmark), I'd try unassociating them, restarting fb2k, then reassociating them (and perhaps restart fb2k again). If you still get no context menu options, try rebooting.
Title: [0.9b9] Explorer context menu question
Post by: vapidsquid on 2005-10-04 03:28:11
Quote
To associate file types with v0.9 Beta 9, go to Preferences > File Types.

If the file types you're concerned about are already associated (indicated by a checkmark), I'd try unassociating them, restarting fb2k, then reassociating them (and perhaps restart fb2k again). If you still get no context menu options, try rebooting.
[a href="index.php?act=findpost&pid=331405"][{POST_SNAPBACK}][/a]


i'm not having a trouble with files not having the context menu, but the folders containing the files. i probably was not clear enough in my initial post.

for all the filetypes i have associated with foobar, those context items appear. i was just wondering what happened to the context items when right-clicking on a folder that contains files associated with foobar.

nonetheless, i gave this solution a shot (disassociated all, rebooted, re-associated, rebooted) and still no dice.
Title: [0.9b9] Explorer context menu question
Post by: Cosmo on 2005-10-04 03:40:40
My fault, I just missed that point.
I have no such options for folders either. Can't recall them ever being there, though...
Hmmm
Title: [0.9b9] Explorer context menu question
Post by: vapidsquid on 2005-10-04 03:50:38
Quote
My fault, I just missed that point.
I have no such options for folders either. Can't recall them ever being there, though...
Hmmm
[a href="index.php?act=findpost&pid=331407"][{POST_SNAPBACK}][/a]


apparently it's a setup option...
<edit>
i tried to isolate the registry entries 0.8.3 setup creates for the shell extension, and merge them in after i installed 0.9b9, but after i merged the registry entries the items didn't show up in the context menu after a reboot.
</edit>
image from 0.8.3 setup:
(http://vapidsquid.net/images/83.gif)

image from 0.9b9 setup:
(http://vapidsquid.net/images/9b9.gif)
Title: [0.9b9] Explorer context menu question
Post by: Cosmo on 2005-10-04 05:21:12
<edit>
This post originally contained (lengthy) steps for manually editing the registry.
It really isn't necessary, so please just see :
vapidsquid's .reg file text (in post #8),
or ZhuGeLiang's link to their "Context Menu Editor.exe" (in post #24) below.

</edit>
Title: [0.9b9] Explorer context menu question
Post by: vapidsquid on 2005-10-04 05:37:21
Quote
I'm kind of hesitant to post this, not knowing if there is a better / proper way to create those folder context menu options, but if you wish to add them manually -

I was able to add the folder context menu options using regedit in WinXP (pro.sp2) like this:



worked like a charm. the registry key i exported and merged was the wrong one, had i done it properly i could have avoided this whole mess.

i appreciate your work on this, cosmo.

and now it's here for other people to see :-)

edit
same disclaimer as above, if you don't feel comfortable hand-editing your registry and want this functionality back, you can copy the following into a text file and name it "foobar-context.reg" then run the .reg file to regain the functionality.

Code: [Select]
Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\Directory\shell\foobar2000.play]
@="Play in foobar2000"

[HKEY_CLASSES_ROOT\Directory\shell\foobar2000.play\command]
@="\"C:\\Program Files\\foobar2000\\foobar2000.exe\" \"%1\""

[HKEY_CLASSES_ROOT\Directory\shell\foobar2000.enqueue]
@="Enqueue in foobar2000"

[HKEY_CLASSES_ROOT\Directory\shell\foobar2000.enqueue\command]
@="\"C:\\Program Files\\foobar2000\\foobar2000.exe\" /add \"%1\""
Title: [0.9b9] Explorer context menu question
Post by: Fandango on 2005-10-04 10:05:17
That's what I also did.

I copied the registry entries after I've installed foobar 0.8, made a .reg file out of them and I'm now using it for the 0.9 beta versions.
Title: [0.9b9] Explorer context menu question
Post by: arman68 on 2005-10-04 14:51:35
Thank you!

I have been cursing ever since this option was removed from the 0.9beta. I knew I could do it easily by hand, but had not come around to doing it yet. This will do nicely until (hopefully) it will get added back to the installer.
Title: [0.9b9] Explorer context menu question
Post by: cank on 2005-11-02 06:46:08
While this is a nice temporary fix, this isn't sensitive to the contents of the folder that you are clicking on, which is how it used to be.... This is a definite fix until the proper release version of 0.9 comes out.
Title: [0.9b9] Explorer context menu question
Post by: foosion on 2005-11-02 07:56:00
The foobar2000 entries for folders never were sensitive to the contents of folders; that would require installing a shell extension.
Title: [0.9b9] Explorer context menu question
Post by: Fandango on 2005-12-04 01:34:51
It still works fine with 0.9b for me... what do you mean by "sensitive to the contents of folders" anyway?
Title: [0.9b9] Explorer context menu question
Post by: Fungo on 2005-12-07 13:52:28
i think it will be a *great* idea to re-insert this setting in 0.9 beta cycle.

The "play/enqueue folder" is necessary.
Title: [0.9b9] Explorer context menu question
Post by: Cosmo on 2005-12-07 20:46:58
Quote
... what do you mean by "sensitive to the contents of folders" anyway?

I think they mean that the play/enqueue options would only be present for folders containing music files (or rather file types associated with fb2k).
Title: [0.9b9] Explorer context menu question
Post by: evangelion on 2006-03-14 07:34:59
Cool, made a .reg file out of the code provided and it worked like a charm.

Thanks!!!
Title: [0.9b9] Explorer context menu question
Post by: sony666 on 2006-03-20 09:53:30
Quote
The "play/enqueue folder" is necessary.
[a href="index.php?act=findpost&pid=348311"][{POST_SNAPBACK}][/a]


Yes

On the other hand, thanks to all fb2k developers and testers
Title: [0.9b9] Explorer context menu question
Post by: ciropizza on 2006-03-21 20:19:07
hi all.

i tried to add the reg infos to the registry and all's fine, but, everytime i try to enqueue or play a folder it asks me ALWAYS which program i like to use to open the file xyz.

where xyz stands for the name of the folder.

which is the problem?

thanks in advance,

ciroops
Title: [0.9b9] Explorer context menu question
Post by: ciropizza on 2006-03-21 20:24:08
uhr, well, i solved it myself

i have foobar in a different directory, as it "c:\programmi", the italian "c:\program files"
Title: [0.9b9] Explorer context menu question
Post by: cassady on 2006-03-22 08:32:25
Does anyone know why it was removed in the first place?
Title: [0.9b9] Explorer context menu question
Post by: Florian on 2006-03-22 08:37:45
Quote
Does anyone know why it was removed in the first place?
[a href="index.php?act=findpost&pid=373780"][{POST_SNAPBACK}][/a]

These are the relevant quotes from Peter:
Quote
[...]I personally believe apps infecting directory context menus to be spawn of satan. There are multiple ways around it, starting from simply using drag&drop, to adding context menus manually using regedit.exe.
[a href="index.php?act=findpost&pid=369763"][{POST_SNAPBACK}][/a]
Quote
The problem with infecting directory context menus is that the easiest approach infects all directory context menus, regardless of contents, which is highly annoying; avoiding this needs global hooks to be installed (say hello to reboot on reinstall/uninstall).
I am considering adding extra option on file types page for 0.9.1, but not before.
[a href="index.php?act=findpost&pid=369790"][{POST_SNAPBACK}][/a]
Title: [0.9b9] Explorer context menu question
Post by: Betse on 2006-03-22 12:13:13
There is a very simple solution for all this, just put a foobar shortcut in your sendto folder (C:\Documents and Settings\Betse\SendTo). Then rightclick anything you want to play in foobar and then select the sendto/foobar. You can do it with simple files or directories.

i like it.
Title: [0.9b9] Explorer context menu question
Post by: DMack on 2006-03-23 00:01:55
Quote
Quote
[...]I personally believe apps infecting directory context menus to be spawn of satan. There are multiple ways around it, starting from simply using drag&drop, to adding context menus manually using regedit.exe.
[a href="index.php?act=findpost&pid=369763"][{POST_SNAPBACK}][/a]
Quote
The problem with infecting directory context menus is that the easiest approach infects all directory context menus, regardless of contents, which is highly annoying; avoiding this needs global hooks to be installed (say hello to reboot on reinstall/uninstall).
I am considering adding extra option on file types page for 0.9.1, but not before.
[a href="index.php?act=findpost&pid=369790"][{POST_SNAPBACK}][/a]

[a href="index.php?act=findpost&pid=373783"][{POST_SNAPBACK}][/a]

Thanks for clearing that up  I was wondering why the decision was made. I hope it comes back as an option in 0.9.1
Title: [0.9b9] Explorer context menu question
Post by: ZhuGeLiang on 2006-03-23 13:11:32
Here is a program that may help you.

http://www.hydrogenaudio.org/forums/index....showtopic=42829 (http://www.hydrogenaudio.org/forums/index.php?showtopic=42829)
Title: [0.9b9] Explorer context menu question
Post by: peter_gunn on 2006-03-24 19:30:48
Hi, thanks ZhuGeLiang (and everyone else). I've just got one problem: the new context menu entry 'Play in foobar2000' is now the standard option (the one in bold at the top of the list), and I can't open folders by double clicking them any more! Any folder I double click tries to be played in foobar now. How can I keep the new comands, but set have the 'Open' option back to being standard action when I double click a folder? Appreciate any help...
Title: [0.9b9] Explorer context menu question
Post by: Societal Eclipse on 2006-03-24 20:08:59
Quote
Hi, thanks ZhuGeLiang (and everyone else). I've just got one problem: the new context menu entry 'Play in foobar2000' is now the standard option (the one in bold at the top of the list), and I can't open folders by double clicking them any more! Any folder I double click tries to be played in foobar now. How can I keep the new comands, but set have the 'Open' option back to being standard action when I double click a folder? Appreciate any help...
[a href="index.php?act=findpost&pid=374863"][{POST_SNAPBACK}][/a]


In Windows Explorer try Tools -> Folder Options -> File Types.  Select 'Folder' (not 'File Folder') and Advanced then make sure Explore or Open are the default actions.
Title: [0.9b9] Explorer context menu question
Post by: Madcow on 2006-04-03 08:12:59
Thanks for the fix. Just voicing my opinion that I, too, use this frequently, and ask that it least be optional in future versions.

Good example for where it's useful: Selecting multiple directories at once (but not every one). You could drag them to fb2k, but that locks up Explorer while they get added.
Title: [0.9b9] Explorer context menu question
Post by: Squeller on 2006-04-03 11:01:56
<snip>

BTW, someone knowing if system/user variables work in registry? Then we could offer a universal registry fix with like "%programfiles%\foobar2000\" ...

EDIT: Ah I see all relevant has been said in this thread.