Skip to main content
Topic: Context Menu in Win7 not working - detailed description (Read 44556 times) previous topic - next topic
0 Members and 2 Guests are viewing this topic.

Context Menu in Win7 not working - detailed description

Reply #25
there is a easy method to do it :

1. go to "set program access & defaults" in control panel.

2. Choose configuration : Custom

3. In the Choose default media player tab, select "use my current media player" & unselect the options "enable access to this program" for WMC & WMP.

thats it.

I found this post yesterday and applied the fix mentioned there to get the 'enquque in FB2K' (v0.9.6.9) on Windows 7's context menu.

The  "use my current media player" option was already set by default.  And unselecting the options "enable access to this program" for WMC & WMP caused me a bit of grief.

Not only did it not put FB2K on the context menu (I did nothing else, registry or otherwise), but the shortcut to Windows Media Center that I watch TV with disappeared from the start menu. 

I had to google for a fix which was to run the ‘%SystemRoot%\ehome\ehshell.exe’  command in the 'Run' box.  But I got an error message saying something about WMC not being accessible anymore.  I restored the system to the last restore point to fix the problem, but later realized I could probably have just gone back and re-enabled access to it in the program defaults settings.

But I'm still frustrated with the problem of getting FB2K, Winamp, and WMP ALL to have an 'enueue in ...' entry in the context menu.  Years back with WinXP I at least had the enqueue option for both Winamp and WMP on folders.

I did find that by creating a ‘sent to’ shortcut for FB2K, I can at least select a range of files, folders, or both and send (or ‘play in’) them all to FB2K.  But that doesn’t enqueue the selection with files already in FB2K’s playlist.  It replaces any that are already there.

Is it totally impossible to get the enqueue option in the context menu on both file and folder context menus for ALL media players, or at least FB2K, Winamp, and WMP?

Or does anyone know of a any other quick and easy way to switch the default media player that’s configured to use the enqueue option in the context menu?

Thx
TS
Geopoliticus Child Watching the Birth of the New Man

Context Menu in Win7 not working - detailed description

Reply #26
I did find that by creating a 'sent to' shortcut for FB2K, I can at least select a range of files, folders, or both and send (or 'play in') them all to FB2K.  But that doesn't enqueue the selection with files already in FB2K's playlist.  It replaces any that are already there.

I am unsure whether this works on Windows 7 (my OS is Windows XP) but you can try this:

The 'Send to'-shortcuts are located on Windows XP in the folder C:\documents and settings\%User%\SendTo

Go to this directory (or the according directory on Windows 7) and modify the shortcuts in question by adding
Code: [Select]
 /add

A complete foobar2000 commandline guide you can find here.

Robertina.
This is HA. Not the Jerry Springer Show.

Context Menu in Win7 not working - detailed description

Reply #27
Another possibly solution. On Windows XP it adds the following context menu to each folder regardless of its content:

Enqueue in foobar2000
Code: [Select]
Windows Registry Editor Version 5.00

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

[HKEY_CLASSES_ROOT\Directory\shell\foobar2000.enqueue\Command]
@="\"C:\\Programme\\foobar2000\\foobar2000.exe\" /add \"%1\""

Play in foobar2000
Code: [Select]
Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\Directory\shell\foobar2000.play\Command]
@="\"C:\\Programme\\foobar2000\\foobar2000.exe\" \"%1\""

Add to Winamp's Bookmark list
Code: [Select]
Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\Directory\shell\Winamp.Bookmark\command]
@="\"C:\\Programme\\Winamp\\winamp.exe\" /BOOKMARK \"%1\""

Enqueue in Winamp
Code: [Select]
Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\Directory\shell\Winamp.Enqueue\command]
@="\"C:\\Programme\\Winamp\\winamp.exe\" /ADD \"%1\""

Play in Winamp
Code: [Select]
Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\Directory\shell\Winamp.Play\command]
@="\"C:\\Programme\\Winamp\\winamp.exe\" \"%1\""

You can copy the content of the code boxes into a text editor and save it as reg-file. Be aware that at the end of each reg-file there have to be two empty rows.

Try then to import the registry files (you might want to save a system restore point before).

And again: this works on Windows XP, I am unsure how Windows 7 behaves. First you should start the Windows Registry Editor and check whether you have this entry

[HKEY_CLASSES_ROOT\Directory\shell\

and how it looks like. Maybe you have to adjust the path to your program files directory first.
This is HA. Not the Jerry Springer Show.

Context Menu in Win7 not working - detailed description

Reply #28
Go to this directory (or the according directory on Windows 7) and modify the shortcuts in question by adding
Code: [Select]
 /add

Wow...  That actually worked in Windows 7 too.  Although I don't understand why.

Quote
A complete foobar2000 commandline guide you can find here.

Acckkk... I get dizzy when I start reading about FB2K coding.

All the commands there appear to be ones that make FB2K act upon either internal components of the program, or specified files.  How adding the /add switch to a Windows 'Send To' shortcut to tell Windows what to do with selected files or folders in Windows Explorer is beyond me.

While adding the /add switch to the Windows shortcut to foobar200.exe does enqueue selected files and/or folders in FB2K leaving existing playlist entries intact, other of those switches don't work similarly.  If I modify a 'Send To' shortcut by adding either /pause or /stop in the same way, it does not tell FB2K to pause or stop when selecting a file FB2K is playing in Windows Explorer and running the command from the context menu.

I'm glad /add DOES work though.

Thanks!

TS
Geopoliticus Child Watching the Birth of the New Man

Context Menu in Win7 not working - detailed description

Reply #29
The commandline switch to stop playing would be:

"C:\Program files\foobar2000\foobar2000.exe" /stop

Several switches have to be added with a space between them.

I am glad that you find a solution that works for you.

Robertina.
This is HA. Not the Jerry Springer Show.

Context Menu in Win7 not working - detailed description

Reply #30
Accidentally some of my registry exports in the code boxes above are shortened and I cannot edit my original post anymore.

So here are the corrections:

Play in foobar2000
Code: [Select]
Windows Registry Editor Version 5.00

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

[HKEY_CLASSES_ROOT\Directory\shell\foobar2000.play\Command]
@="\"C:\\Programme\\foobar2000\\foobar2000.exe\" \"%1\""

Add to Winamp's Bookmark list
Code: [Select]
Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\Directory\shell\Winamp.Bookmark]
@="Add to Winamp's &Bookmark list"

[HKEY_CLASSES_ROOT\Directory\shell\Winamp.Bookmark\command]
@="\"C:\\Programme\\Winamp\\winamp.exe\" /BOOKMARK \"%1\""

Enqueue in Winamp
Code: [Select]
Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\Directory\shell\Winamp.Enqueue]
@="&Enqueue in Winamp"

[HKEY_CLASSES_ROOT\Directory\shell\Winamp.Enqueue\command]
@="\"C:\\Programme\\Winamp\\winamp.exe\" /ADD \"%1\""

Play in Winamp
Code: [Select]
Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\Directory\shell\Winamp.Play]
@="&Play in Winamp"

[HKEY_CLASSES_ROOT\Directory\shell\Winamp.Play\command]
@="\"C:\\Programme\\Winamp\\winamp.exe\" \"%1\""

Please adjust the paths to both your foobar2000.exe and your winamp.exe before importing.
This is HA. Not the Jerry Springer Show.

Context Menu in Win7 not working - detailed description

Reply #31
Enqueue in foobar2000
Code: [Select]
Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\Directory\shell\foobar2000.enqueue]
@="Enqueue in foobar2000"
[color=#FF0000]"LegacyDisable"=""[/color]

[HKEY_CLASSES_ROOT\Directory\shell\foobar2000.enqueue\Command]
@="\"C:\\[color=#FF0000]Programme[/color]\\foobar2000\\foobar2000.exe\" /add \"%1\""
That did work, though I had to delete the "LegacyDisable"="' entry and change 'Programme' to 'Program Files' in the path as you pointed out.

Quote
Play in foobar2000
Code: [Select]
Windows Registry Editor Version 5.00

[color=#FF0000][HKEY_CLASSES_ROOT\Directory\shell\foobar2000.play]
@="Play in foobar2000"[/color]

[HKEY_CLASSES_ROOT\Directory\shell\foobar2000.play\Command]
@="\"C:\\Programme\\foobar2000\\foobar2000.exe\" \"%1\""
That worked too, except I had to add the lines in red above to get the context menu to correctly display 'Play in foobar2000'.

EDIT: Ah... I see you caught that missing code in the 'Play in foobar2000' and other Winamp entries!

The Winamp entries you offered already existed, so that was good..

Now to see if I can do something similiar with putting FB2K on the context menu for file selections.

Thanks again Robertina

TS
Geopoliticus Child Watching the Birth of the New Man

Context Menu in Win7 not working - detailed description

Reply #32
Anyone else have any ideas on how to put FB2K on the Windows 7 context menu for enqueuing and playing selected files in Windows Explorer?

I've discovered a couple interesting related things.  I set up Media Player Classic HomeCinema [MPC-Homecinema.1.3.1249.0.(x86)] and successfully set its preferences to enable context menu options for playing and enqueuing both files and folders in Windows 7. And the WMP options are still there too.

I thought if I looked at the registry keys it created, I might be able to figure out how to get FB2K and Winamp to appear on the context menu when selecting files.  But I pretty much failed.  MPC's registry keys were relatively simple as you can see here:

Code: [Select]
[HKEY_CLASSES_ROOT\mplayerc.mp3]
@="MP3 Format Sound"
"PreviousRegistration"="Winamp.File.MP3"

[HKEY_CLASSES_ROOT\mplayerc.mp3\shell]

[HKEY_CLASSES_ROOT\mplayerc.mp3\shell\enqueue]
@="Add to MPC Playlist"

[HKEY_CLASSES_ROOT\mplayerc.mp3\shell\enqueue\command]
@="\"C:\\Program Files\\MPC-Homecinema\\mpc-hc.exe\" /add \"%1\""

[HKEY_CLASSES_ROOT\mplayerc.mp3\shell\open]
@="Play with MPC"

[HKEY_CLASSES_ROOT\mplayerc.mp3\shell\open\command]
@="\"C:\\Program Files\\MPC-Homecinema\\mpc-hc.exe\" \"%1\""

The other thing that I found was really odd, but convenient.  Once I got MPC set up, I tested playing MP3s by selecting them in mp3tag, and selecting Play from the context menu there.  I like MPC because it comes up quicker than anything else I've tried, and it worked here fine.

But for the heck of it I selected a group of MP3s in mp3tag, and selected Play for the whole group.  For some reason I can't begin to explain, >Winamp< popped up with all the MP3s enqueued... not playing any, just enqueued.

I've enable Winamp's options for Play and Enqueue on context menus for both folders and files in its preferences here:

  • 'General Preferences > Files Types > Shell Options > Windows Explorer Menu Control'

But Windows 7 has something odd going on.  I get Winamp on the context menu for folders, but not for files.  Seems Win7 sets up associations for file types in a different way than earlier operating systems.

If MPC can write registry keys that add Play and Enqueue entries to the context menu for selected files, it seems it should be possible to do the same for FB2K and Winamp.

Any thoughts?

Thx
TS
Geopoliticus Child Watching the Birth of the New Man

Context Menu in Win7 not working - detailed description

Reply #33
Anyone else have any ideas on how to put FB2K on the Windows 7 context menu for enqueuing and playing selected files in Windows Explorer?
Try this, same procedure as above, don't forget the two empty rows, you need administrative rights for the import:

Code: [Select]
Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\*\shell]

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

[HKEY_CLASSES_ROOT\*\shell\foobar2000.enqueue\command]
@="\"C:\\Program Files\\foobar2000\\foobar2000.exe\" /add \"%1\""
The reg file adds the context menu "Enqueue in foobar2000" to all file types in Windows explorer (so please select the files to be enqueued carefully) and inserts them into the active playlist. It works on Windows XP and I assume on Windows 7 as well.

I would like to stress that this "registry hack" should be considered as stopgap only, as long as you find no other way to enqueue files from Windows explorer it may help you.

I failed in creating a reg file for playing a file in foobar chosen in Windows explorer, so you don't need to try it again. A possible reason for that you can find here.
This is HA. Not the Jerry Springer Show.

Context Menu in Win7 not working - detailed description

Reply #34
Brilliant Robertina!

I would like to stress that this "registry hack" should be considered as stopgap only, as long as you find no other way to enqueue files from Windows explorer it may help you.

So there may be some unwanted consequences if, by mistake, one would try to enqueue a non-media file that FB2K is not capable of handling, right?

It would seem that the 'correct' way to set this up would be to follow the mplayer.exe example above by creating a section of keys and values that specifies type of file to be enqueued from a 'base' key like:

[HKEY_CLASSES_ROOT\foobar2000.mp3]

I see that way down in the registry tree for HKEY_CLASSES_ROOT in the 'Ws', there is a large group of entries like that for Winamp and WMP11.  And ones for WMP11 are appended by 'AssocFile' and specified media file extensions.  Probably when things are set up correctly to enqueue files in foobar2000, that 'AssocFile' appendage would be dropped from WMP11 and  foobar2000 put in its place.

I tried creating a key to enqueue FB2K  by replacing 'mplayer' with 'fobar2000' in the code for [HKEY_CLASSES_ROOT\mplayerc.mp3] I posted above, and loaded that into registry.  I tried a few different variants. But unless I made a mistake in the code, it didn't work.  I'm guessing it has something to do with the way Windows 7 associates file types. But it's interesting that MPC (Media player Classic) can get away with it.

Quote
I failed in creating a reg file for playing a file in foobar chosen in Windows explorer, so you don't need to try it again. A possible reason for that you can find here.

I really don't want a 'Play' option to play media files in FB2K or Winamp.  I know FB2K is fast, but in the past I've always set WMP, or better, MPC as the default app to play files that way, as they load really fast when I'm just testing things.  I certainly have never wanted to use Winamp that way.

And... by replacing 'foobar' by 'winamp' in your FB2K registry code I was able to put a 'Enqueue in Wiamp' on the context menu for selected fies.  That'll make a lot of work go a lost faster.

Thanks so very much for working this out Robertina.

TS
Geopoliticus Child Watching the Birth of the New Man

Context Menu in Win7 not working - detailed description

Reply #35
So there may be some unwanted consequences if, by mistake, one would try to enqueue a non-media file that FB2K is not capable of handling, right?

The accidentally enqueuing of not playable files did not lead to any problems on my system (checked with several file types and f2k v0.9.6.9).

Quote
It would seem that the 'correct' way to set this up would be to follow the mplayer.exe example above by creating a section of keys and values that specifies type of file to be enqueued from a 'base' key like: [HKEY_CLASSES_ROOT\foobar2000.mp3]

An editing on a 'per file type basis' as you pointed out would be a proper solution but due to the system's complexity (e.g. see page 1 of this thread) a topic only for very experienced users I think.

Quote
And... by replacing 'foobar' by 'winamp' in your FB2K registry code I was able to put a 'Enqueue in Wiamp' on the context menu for selected fies.

The Registry branch HKEY_CLASSES_ROOT\*\ defines some conditions for ALL file types (including those without extension), HKEY_CLASSES_ROOT\*\shell\ their context menus. The programs you want to address that way determine what to write into this entries. That's the background.

Good to hear that the work around is helpfully  .


This is HA. Not the Jerry Springer Show.

Context Menu in Win7 not working - detailed description

Reply #36
there is a easy method to do it :

1. go to "set program access & defaults" in control panel.

2. Choose configuration : Custom

3. In the Choose default media player tab, select "use my current media player" & unselect the options "enable access to this program" for WMC & WMP.

thats it.



Hi!

I dont understand, where i can find these options. I´m using a german win 7 (64bit) and having the same problem with enqueuing files in foobar. Where can i find "set program access & defaults"?

Context Menu in Win7 not working - detailed description

Reply #37
Start->Control Panel->Programs->Default Programs->Set program access and computer defaults
elevatorladylevitateme

Context Menu in Win7 not working - detailed description

Reply #38
Thank you! Found it and it works. 

Context Menu in Win7 not working - detailed description

Reply #39
the problem is though that this doesnt help us that use wmp along with other players (wmp and mpc for me)

Context Menu in Win7 not working - detailed description

Reply #40
From my own experiment, the reason why context menu doesn't work on "music" folder is because Foobar2000 didn't implement the correct registry entry for them yet. The key should be added to HKEY_CLASSES_ROOT\SystemFileAssociations\Directory.Audio for those folder to work correctly. I've made a registry file to add this manually. Please note that you may have to edit Foobar2000's folder name to reflect the actual location on your computer, I use 64-bit Windows 7 so the program files folder is in C:\Program Files (x86).

I hope the future releases of Foobar2000 will do this automatically

Code: [Select]
Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\SystemFileAssociations\Directory.Audio]

[HKEY_CLASSES_ROOT\SystemFileAssociations\Directory.Audio\shell]

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

[HKEY_CLASSES_ROOT\SystemFileAssociations\Directory.Audio\shell\foobar2000.enqueue\Command]
@="\"C:\\Program Files (x86)\\foobar2000\\foobar2000.exe\" /add \"%1\""

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

[HKEY_CLASSES_ROOT\SystemFileAssociations\Directory.Audio\shell\foobar2000.play\Command]
@="\"C:\\Program Files (x86)\\foobar2000\\foobar2000.exe\" \"%1\""

[HKEY_CLASSES_ROOT\SystemFileAssociations\Directory.Audio\shellex]

[HKEY_CLASSES_ROOT\SystemFileAssociations\Directory.Audio\shellex\ContextMenuHandlers]

[HKEY_CLASSES_ROOT\SystemFileAssociations\Directory.Audio\shellex\ContextMenuHandlers\Fb2kShellExt]
@="{511D48AF-9E45-4CB8-8F02-9C1BE4BC3CF8}"

Context Menu in Win7 not working - detailed description

Reply #41
Really? I thought the "Directory.Audio" perceived type inherited all context menu handlers and static verbs from the "Directory" type as well. Seems like you only changed the order in which shell extensions are being loaded and WMP's entries get killed this time.
Full-quoting makes you scroll past the same junk over and over.

Context Menu in Win7 not working - detailed description

Reply #42
there is a easy method to do it :

1. go to "set program access & defaults" in control panel.

2. Choose configuration : Custom

3. In the Choose default media player tab, select "use my current media player" & unselect the options "enable access to this program" for WMC & WMP.

thats it.



Sorry, could you please help and indicate, what program you're talking about. My foobar (0.9.6.3) has no "set program access & defaults" - or do you mean Windows (I'm running Vista).

My problem with foobar is:
On my system foobar works excellently. I use an Access-database as a user interface to create playlists (exclusively m3u) which are performed on foobar (filtype flac exclusively). If I doubleclic on either a flac file or a m3u list in the file explorer, foobar plays the item without further problem. But if I initiate the process with the complete folder information (e.g., things like "foobar.exe / D:\folder\abc.m3u"), foobar displays an error "Cannot find foobar2000 shell associations Updater". But it starts playing the item correctly anyway. It is just annoying but doesn't impair foobar's functionality.

I think I don't have this updater installed. Where can I get it? And should I install it?

Thanks for help.

Friedhelm Achenbach

Context Menu in Win7 not working - detailed description

Reply #43
Sorry, could you please help and indicate, what program you're talking about. My foobar (0.9.6.3) has no "set program access & defaults" - or do you mean Windows (I'm running Vista).

Of course he means Windows.
Just type it Set program Access and Defaults into the start menu's search box and it should pop up.
Typically you access it through the control panel.
elevatorladylevitateme

Context Menu in Win7 not working - detailed description

Reply #44
But if I initiate the process with the complete folder information (e.g., things like "foobar.exe / D:\folder\abc.m3u"), foobar displays an error "Cannot find foobar2000 shell associations Updater". But it starts playing the item correctly anyway.
How does the command line look like exactly? Try updating to the latest version (0.9.6.9). Are you using a portable or standard installation?
Full-quoting makes you scroll past the same junk over and over.

Context Menu in Win7 not working - detailed description

Reply #45
Hey

I am new to this forum. I am using foobar for years and just updated to Windows 7. Foobar context menus are shown in all folders displayed in Windows explorer except in the library folders. I have searched this forum and the net for solutions but was unsuccessful. Can anybody tell me if this is an unresolved issue with foobar 9.6.9 or if there is a solution to this problem. How can I add the context menu "play in foobar2000" to the library folders in Windows Explorer (Windows 7).

Would be great if someone has a solution to this.

Thanks inadvance
Stetten

Context Menu in Win7 not working - detailed description

Reply #46
Well, at the end I have not found in this thread a definitive answer that solves the issue and that does not requires to inhibit the access to WMP and WMC.

Instead, I have found the solution in this thread (LegacyDisable Creates Context Menu problems in Windows 7) and it is very simple: just remove the "LegacyDisable" value from the "HKEY_CLASSES_ROOT\Directory\shell\foobar2000.play" registry key and rename the file "foobar2000 Shell Associations Updater.exe" in the foobar2000 installation folder.

Context Menu in Win7 not working - detailed description

Reply #47
Which will create more problems, namely not being able to open more than 15 files at once and broken associations for any added/removed file extensions later.
Full-quoting makes you scroll past the same junk over and over.

Context Menu in Win7 not working - detailed description

Reply #48
Weird way to solve the problems...but it worked like a charm!

Thanks!

Context Menu in Win7 not working - detailed description

Reply #49
Thanks gurubhai if I had known sooner!

 
SimplePortal 1.0.0 RC1 © 2008-2019