HydrogenAudio

Hosted Forums => foobar2000 => General - (fb2k) => Topic started by: Anentropia on 2009-08-01 16:16:40

Title: Context Menu in Win7 not working - detailed description
Post by: Anentropia on 2009-08-01 16:16:40
I use foobar since ~2003 - I find it great cos its slim and very good functions (sophisticated tagging, explorer integration (context menu; <hint>)..) without beeing overblown like WMP or Itunes (at least with standard-interface)

But since I installed Windows7 - Beta in ~2-2009 and RC1 in 5-2009 - the context menus from foobar are often missing to the point its unbearable, so actually I use Itunes for playing my music.
I have read every single post according to this problem on hydrogenaudio, and I researched on other sites to to see if ANYONE have a solution. During my research I found a webpage there someone claimed in an update that foobar would run perfect on Windows7 after he stated a while while ago that for him the context menus were missing.

-----------------------------------------------

The exact problem is that:
1st: often there is no "play in foobar" AND "enque in foobar" on the album-directories
2nd: on audio files (MP3 / WAV / etc ) is NOWHERE "enque in foobar" in the context menu, only "play in foobar" appears

First things I have to state: Foobar is actual (0.9.6.8), I have no external plugins/addons for foobar installed, and Windows+Drives are up to date - I'm IT-Professional (inclusive various apprenticeships). I'm using Windows7 x64 - 64Bit version.
My audio-files structured like this: F:\Music\<artist>\<album>\<audio files> (*.mp3 and *.wav)

-------------------------------------------

I have read here that the problem is supposed to be caused by the explorer from windows (file-explorer, not IE) - that it wouldn't show the context menu options if there are more than 12 audio-files in the directory. I can savely say: not true. I have albums with way more 12 songs / files, there the context menu for Foobar on the album-directory DO show up, and I have albums with less than 12 songs/files there the context menu on the directory doesn't show up. I tried it with a lot from my stuff, but the context-menus seems to work/not work randomly - I couln't determine any pattern. For example I have "Play/Enque in foobar" if I do context-menu on the basic "Music"-folder - which is ~80gb with ~8300 of files within. But not on various <Album>-folders even when they contain less than 12 files...

Also it is NOT true that the problem has to do with file assoziation - I used the file assoziation tool from within Foobar AND Windows7 itself (standard programs, assoziated everything possible), but it didn't help either.
Also I tried to run Foobar with compatibility mode for Vista SP1 and administrator-rights combined, but so it didn't start at all (my regular windows user-account is an "standard-user"; I do so since WinXP in 2001; never had problems with Foobar until Win7).
Furthermore it's not true that the missing context menu appears if do "Shift+Rightclick" - some additional stuff i the context menu appears, but nothing that had to do with Foobar.
And finally I also tried it with an AddOn for Foobar called "Windows7 shell integration" from http://wintense.com/plugins/foo_w7shell (http://wintense.com/plugins/foo_w7shell) - but it also didn't solve the context-menu problem...

---------------------------------------------

Suspician Nr1 why Foobar has problem with Win7:

http://www.sevenforums.com/software/8795-r...enu-7zip-2.html (http://www.sevenforums.com/software/8795-right-click-context-menu-7zip-2.html)

On the above webpage I found the almost identical problem for 7-Zip (open source compressor) - the context menu for 7Zip were missing for someone with Windows7_x64, although everything was installed and configured properly, including regestrie-entries.
The solution was that he to use the x64 (64Bit) version of 7-Zip. After that the context-menus appeard as they should without any messing around with configuration/etc and dispite that the 32Bit 7-Zip version he originally installed and the 64Bit 7-Zip had the same version-number.
This also works for me - I use 7-zip since years, but I didn't notice the possible problem 'cos I install the 64Bit version of 7-zip since I installed Win7_x64 the first time (2-2009)

So it seems to me that Win7 has some odd behaviour in it's context-menu if not an native x64 Binary is installed.
I know that the code of the exporer has been quite changed since Vista, and since it's an very fundamental component I doubt it will be changed - if the explorer is the reason for this at all and besides it's an RC.

Can developers of Foobar do some serious testing according to this - Foobar is 'cos of the missing context-menus not useable..
Maybe you can even contact the developers of 7-Zip if they did code - according to the context-menu integration - anything different in comparison to the
32Bit version.

Suspicion Nr2:

I just noticed that the context-menu on some Album-Folders appears even than more than 15Files inside, but after I opened that folder in the explorer, then go one directory-level back to the <Artist> folder and than open the context-menu for the <Album>-Folder I just opened, the context-menu entries for Foobar vanished!
WTF??
Title: Context Menu in Win7 not working - detailed description
Post by: marc2003 on 2009-08-01 16:50:46
hmmn, i never use context menus myself as i prefer to manage my collection from within foobar using the built in media library. but i've just browsed loads of different combinations of files/folders and they are all showing the context menus as expected. i've tried it at every level within my folder structure and the files themselves.

when you say "the context menus from foobar are often missing" how exactly does this occur? in the same browsing explorer session. between foobar restarts?

i'm running w7 x64 RC build 7100, foobar 0.9.6.8 here.

and i'm finding it hard to believe if there was an issue that it would be caused by the fact foobar is a 32bit binary. admittedly i'm no dev so am i pretty clueless on this particular subject.
Title: Context Menu in Win7 not working - detailed description
Post by: Anentropia on 2009-08-01 17:24:40
hmmn, i never use context menus myself as i prefer to manage my collection from within foobar using the built in media library. but i've just browsed loads of different combinations of files/folders and they are all showing the context menus as expected. i've tried it at every level within my folder structure and the files themselves.

when you say "the context menus from foobar are often missing" how exactly does this occur? in the same browsing explorer session. between foobar restarts?

i'm running w7 x64 RC build 7100, foobar 0.9.6.8 here.

and i'm finding it hard to believe if there was an issue that it would be caused by the fact foobar is a 32bit binary. admittedly i'm no dev so am i pretty clueless on this particular subject.


It doesn't matter for me if Foobar is already running when I try the context menu - context menu is on most Folders still missing when Foobar already runs, or never run after I just started windows.
Explorer options are "show data-type" + "show hidden files", besides that imo default.

Windows7 x64 RC1 (Build7100; 64Bit version, german language).
My audio-files structured like this: F:\Music\<artist>\<album>\<audio files> (*.mp3 and *.wav)
I only have plain HDDs - no SSDs - as storage btw

Read "Suspicion Nr2" btw - cos thats realy odd

!!!Also I noticed that imo everywhere where the context menu from foobar is missing, I instead have entries from WindowsMediaPlayer <barf> althought as already said I associated every possible with Foobar from within Foobar and Windows  (Standard programs)!!!

All my MP3s are tagged with ID3v2.3 and ID3v1.1 btw - if that should make difference, but don't think so
Title: Context Menu in Win7 not working - detailed description
Post by: marc2003 on 2009-08-01 17:36:37
just realised that was a daft thing to say about foobar running. of course context menus wouldn't be affected by that. 

my folder structure is similar

d:\music\albums\%codec%\%album artist%\%album%\file

i really can't reproduce this problem my end at all? i've been flicking in and out of folders all up and down my structure, back and forth and everything is fine. folders with much more than 15 files in show ok.

i also have mp3tag installed and that also has a context menu working with no problems.

i haven't tested on a clean windows boot yet. can't restart till later, got some stuff running that can't be stopped.
Title: Context Menu in Win7 not working - detailed description
Post by: Case on 2009-08-01 19:08:23
Try these steps:
Rerun the installer - make sure to choose 'Standard installation'.
Open 'Default Programs', click on 'Set your default programs', select Windows Media Player and click 'Set this program as default'
Now click on foobar2000 and click on 'Set this program as default'.

The 7-zip issue has nothing to do with foobar - the installer has come with both 32-bit and 64-bit shell extensions since the shell extension was first introduced in 0.9.6 beta days.
Title: Context Menu in Win7 not working - detailed description
Post by: Anentropia on 2009-08-01 19:39:07
Besides I always used standard - and not portable - installation, your suggestion made no difference whatsoever even with my user-account with admin-rights who just reinstalled..

Even made reboot after ever step in process

Now you may carefully read my posts..
Title: Context Menu in Win7 not working - detailed description
Post by: shakey_snake on 2009-08-01 19:51:17
Your posts contain a lot of useless trivia and often incorrect speculation.
Perhaps if you spent more detail relevantly describing your problem Case or I could be more of a help.
Title: Context Menu in Win7 not working - detailed description
Post by: Anentropia on 2009-08-01 20:27:58
I tried to include all stuff that should be relevant to the problem accourding to my experiences in IT, and THIS what I get for answer...

Seriously, this is bullcrap^2
Title: Context Menu in Win7 not working - detailed description
Post by: Case on 2009-08-01 21:37:10
What happens when you open elevated command prompt and execute "regsvr32 ShellExt64.dll" command in the directory foobar was installed to?
Do you have "HKEY_LOCAL_MACHINE\SOFTWARE\Classes\foobar2000.MP3\shellex\ContextMenuHandlers\Fb2kShellExt" registry key with default value "{511D48AF-9E45-4CB8-8F02-9C1BE4BC3CF8}"?
Do you have "foobar2000.MP3" in "Progid" field under "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.mp3\UserChoice"?
Does it help if you create a REG_SZ key called "{511D48AF-9E45-4CB8-8F02-9C1BE4BC3CF8}" in "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Shell Extensions\Approved"?
Title: Context Menu in Win7 not working - detailed description
Post by: Anentropia on 2009-08-01 22:13:12
What happens when you open elevated command prompt and execute "regsvr32 ShellExt64.dll" command in the directory foobar was installed to?
Do you have "HKEY_LOCAL_MACHINE\SOFTWARE\Classes\foobar2000.MP3\shellex\ContextMenuHandlers\Fb2kShellExt" registry key with default value "{511D48AF-9E45-4CB8-8F02-9C1BE4BC3CF8}"?
Do you have "foobar2000.MP3" in "Progid" field under "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.mp3\UserChoice"?
Does it help if you create a REG_SZ key called "{511D48AF-9E45-4CB8-8F02-9C1BE4BC3CF8}" in "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Shell Extensions\Approved"?


I have both Registrie-Keys - with my Standard-User and my Admin-Account
After that I checked that I tried the promt-command:

Windows reported in Infowindow "REGSVR32: DLLRegisterServer in ShellExt64.dll succesfully performed" (my translation from german to english)

After I rebooted - same behavior

After that I did create that Reg-Key - still same behavior:

-----------------------------------------------
1st: often there is no "play in foobar" AND "enque in foobar" on the album-directories, instead entries for Play and Enque for WindowsMediaPlayer
2nd: on audio files (MP3 / WAV / etc ) is NOWHERE "enque in foobar" in the context menu, only "play in foobar" appears; instead I have additional entrie for "Add to WMP-Playlist"
3rd:  the context-menu on some Album-Folders appears even than more than 15Files inside, but after I opened that folder in the explorer, then go one directory-level back to the <Artist> folder and than open the context-menu for the <Album>-Folder I just opened, the context-menu entries for Foobar vanishes, and instead I have entries for WindowsMediaPlayer

Structure of Files: F:\Music\<artist>\<Album>\<audio files> (*.mp3 + *.wav)
Title: Context Menu in Win7 not working - detailed description
Post by: Anentropia on 2009-08-02 11:41:19
I have found something that could be related to the problem and is Win7 + audio files specific:

http://social.technet.microsoft.com/Forums...c2-ff62bf2f8103 (http://social.technet.microsoft.com/Forums/fr-FR/w7itproappcompat/thread/f9c7c286-7f62-461b-b6c2-ff62bf2f8103)

Exerpt:
[Programmatically assigning file associations in the registry is no longer compatible with Vista. At least with audio file extensions like WAV and MP3 for example...]

How are the Registrie Keys in Hkey_LocalMacine\Software\Classes \.mp3 are suposed to look?
Cos I have Reg_SZ Key named (Standard) with "WMP11.Assoc.File.mp3" in there
In .wav same scheme: (Standard)  Reg_SZ WMP11.Assoc.File.wav

Title: Context Menu in Win7 not working - detailed description
Post by: Case on 2009-08-02 12:08:13
Those people in your link are trying to do things completely incorrectly. foobar uses documented (http://msdn.microsoft.com/en-us/library/cc144154%28VS.85%29.aspx) methods.
PS. I do use have been using Windows 7 x64 since the beta and I have no issues at all with context menus.
Title: Context Menu in Win7 not working - detailed description
Post by: Anentropia on 2009-08-02 12:29:45
Those people in your link are trying to do things completely incorrectly. foobar uses documented (http://msdn.microsoft.com/en-us/library/cc144154%28VS.85%29.aspx) methods.
PS. I do use have been using Windows 7 x64 since the beta and I have no issues at all with context menus.


You and some other may not have problems; I have them reproducible ever since Win7 although I didn't do "weird" stuff. And I'm not the only one, but no one had solution to the problem so far.
So there has be a reason for this - even it may be my language-version of Win7...

Post the Registry-Keys or screenshit of this:

HKLM\Software\Classes\.mp3
Title: Context Menu in Win7 not working - detailed description
Post by: Case on 2009-08-02 12:53:03
This won't help but here:
Code: [Select]
Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\.mp3]
"PerceivedType"="audio"
@="WMP11.AssocFile.MP3"
"Content Type"="audio/mpeg"

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\.mp3\OpenWithList]

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\.mp3\OpenWithList\ehshell.exe]

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\.mp3\OpenWithList\iTunes.exe]
@=""

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\.mp3\OpenWithProgIds]
"WMP11.AssocFile.MP3"=hex(0):
"QuickTime.mp3"=hex(0):
@=""
"iTunes.mp3"=hex:

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\.mp3\PersistentHandler]
@="{098f2470-bae0-11cd-b579-08002b30bfeb}"

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\.mp3\ShellEx]

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\.mp3\ShellEx\{BB2E617C-0920-11D1-9A0B-00C04FC2D6C1}]
@="{9DBD2C50-62AD-11D0-B806-00C04FD706EC}"

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\.mp3\ShellEx\{e357fccd-a995-4576-b01f-234630154e96}]
@="{9DBD2C50-62AD-11D0-B806-00C04FD706EC}"

Title: Context Menu in Win7 not working - detailed description
Post by: Anentropia on 2009-08-02 13:18:31
HKEY_LOCAL_MACHINE\SOFTWARE\Classes\.mp3 ;
looks identical to mine; thought the reason for error could have been the (Standard) REG_SZ  WMP11.AssocFile.MP3; but you have same entry:

-------------

Code: [Select]
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\.mp3]
"PerceivedType"="audio"
@="WMP11.AssocFile.MP3"
"Content Type"="audio/mpeg"

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\.mp3\OpenWithList]

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\.mp3\OpenWithList\ehshell.exe]

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\.mp3\OpenWithList\iTunes.exe]
@=""

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\.mp3\OpenWithProgIds]
"WMP11.AssocFile.MP3"=hex(0):
"QuickTime.mp3"=hex(0):
@=""
"iTunes.mp3"=hex:
"foobar2000.mp3"=hex:

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\.mp3\PersistentHandler]
@="{098f2470-bae0-11cd-b579-08002b30bfeb}"

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\.mp3\ShellEx]

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\.mp3\ShellEx\{BB2E617C-0920-11D1-9A0B-00C04FC2D6C1}]
@="{9DBD2C50-62AD-11D0-B806-00C04FD706EC}"

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\.mp3\ShellEx\{e357fccd-a995-4576-b01f-234630154e96}]
@="{9DBD2C50-62AD-11D0-B806-00C04FD706EC}"

-------------

HKey_Current_User\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\mp3 :

Code: [Select]
Windows Registry Editor Version 5.00

[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.mp3]

[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.mp3\OpenWithList]
"a"="MovieMaker.Exe"
"MRUList"="fbdeca"
"b"="MOVIEMK.exe"
"c"="audacity.exe"
"d"="foobar2000.exe"
"e"="EAC.exe"
"f"="iTunes.exe"

[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.mp3\OpenWithProgids]
"WMP11.AssocFile.MP3"=hex(0):

[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.mp3\UserChoice]
"Progid"="foobar2000.MP3"

HKEY_LOCAL_MACHINE\SOFTWARE\Classes\foobar2000\.mp3:
Code: [Select]
Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\foobar2000.MP3]
@="MPEG layer 3"

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\foobar2000.MP3\DefaultIcon]
@="C:\\Program Files (x86)\\foobar2000\\icons\\MP3.ico"

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\foobar2000.MP3\shell]
@="open"

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\foobar2000.MP3\shell\enqueue]
@="Enqueue in foobar2000"
"LegacyDisable"=""

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\foobar2000.MP3\shell\enqueue\command]
@="\"C:\\Program Files (x86)\\foobar2000\\foobar2000.exe\" /add \"%1\""

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\foobar2000.MP3\shell\open]
@="Open in foobar2000"
"LegacyDisable"=""

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\foobar2000.MP3\shell\open\command]
@="\"C:\\Program Files (x86)\\foobar2000\\foobar2000.exe\" \"%1\""

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\foobar2000.MP3\shell\play]
@="Play in foobar2000"
"LegacyDisable"=""

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\foobar2000.MP3\shell\play\command]
@="\"C:\\Program Files (x86)\\foobar2000\\foobar2000.exe\" /playnow \"%1\""

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\foobar2000.MP3\shellex]

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\foobar2000.MP3\shellex\ContextMenuHandlers]

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\foobar2000.MP3\shellex\ContextMenuHandlers\Fb2kShellExt]
@="{511D48AF-9E45-4CB8-8F02-9C1BE4BC3CF8}"
"IsDefaultAction"=""


HKLM\Software\Classes\WMP11.AssocFile.MP3 :

Code: [Select]
Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\WMP11.AssocFile.MP3]
@="MP3 Format Sound"
"EditFlags"=hex:00,00,11,00
"FriendlyTypeName"=hex(2):40,00,25,00,53,00,79,00,73,00,74,00,65,00,6d,00,52,\
  00,6f,00,6f,00,74,00,25,00,5c,00,73,00,79,00,73,00,74,00,65,00,6d,00,33,00,\
  32,00,5c,00,75,00,6e,00,72,00,65,00,67,00,6d,00,70,00,32,00,2e,00,65,00,78,\
  00,65,00,2c,00,2d,00,39,00,39,00,32,00,35,00,00,00
"PreferExecuteOnMismatch"=dword:00000001

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\WMP11.AssocFile.MP3\DefaultIcon]
@=hex(2):25,00,53,00,79,00,73,00,74,00,65,00,6d,00,52,00,6f,00,6f,00,74,00,25,\
  00,5c,00,73,00,79,00,73,00,74,00,65,00,6d,00,33,00,32,00,5c,00,77,00,6d,00,\
  70,00,6c,00,6f,00,63,00,2e,00,64,00,6c,00,6c,00,2c,00,2d,00,37,00,33,00,32,\
  00,00,00

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\WMP11.AssocFile.MP3\shell]
@="Play"

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\WMP11.AssocFile.MP3\shell\Enqueue]
@="&Add to Windows Media Player list"
"MUIVerb"=hex(2):40,00,25,00,53,00,79,00,73,00,74,00,65,00,6d,00,52,00,6f,00,\
  6f,00,74,00,25,00,5c,00,73,00,79,00,73,00,74,00,65,00,6d,00,33,00,32,00,5c,\
  00,75,00,6e,00,72,00,65,00,67,00,6d,00,70,00,32,00,2e,00,65,00,78,00,65,00,\
  2c,00,2d,00,39,00,38,00,30,00,30,00,00,00

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\WMP11.AssocFile.MP3\shell\Enqueue\command]
"DelegateExecute"="{45597c98-80f6-4549-84ff-752cf55e2d29}"

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\WMP11.AssocFile.MP3\shell\open]
"LegacyDisable"=""

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\WMP11.AssocFile.MP3\shell\open\command]
@=hex(2):22,00,25,00,50,00,72,00,6f,00,67,00,72,00,61,00,6d,00,46,00,69,00,6c,\
  00,65,00,73,00,28,00,78,00,38,00,36,00,29,00,25,00,5c,00,57,00,69,00,6e,00,\
  64,00,6f,00,77,00,73,00,20,00,4d,00,65,00,64,00,69,00,61,00,20,00,50,00,6c,\
  00,61,00,79,00,65,00,72,00,5c,00,77,00,6d,00,70,00,6c,00,61,00,79,00,65,00,\
  72,00,2e,00,65,00,78,00,65,00,22,00,20,00,2f,00,70,00,72,00,65,00,66,00,65,\
  00,74,00,63,00,68,00,3a,00,36,00,20,00,2f,00,4f,00,70,00,65,00,6e,00,20,00,\
  22,00,25,00,4c,00,22,00,00,00

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\WMP11.AssocFile.MP3\shell\play]
@="&Play"
"MUIVerb"=hex(2):40,00,25,00,53,00,79,00,73,00,74,00,65,00,6d,00,52,00,6f,00,\
  6f,00,74,00,25,00,5c,00,73,00,79,00,73,00,74,00,65,00,6d,00,33,00,32,00,5c,\
  00,75,00,6e,00,72,00,65,00,67,00,6d,00,70,00,32,00,2e,00,65,00,78,00,65,00,\
  2c,00,2d,00,39,00,39,00,39,00,31,00,00,00

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\WMP11.AssocFile.MP3\shell\play\command]
@=hex(2):22,00,25,00,50,00,72,00,6f,00,67,00,72,00,61,00,6d,00,46,00,69,00,6c,\
  00,65,00,73,00,28,00,78,00,38,00,36,00,29,00,25,00,5c,00,57,00,69,00,6e,00,\
  64,00,6f,00,77,00,73,00,20,00,4d,00,65,00,64,00,69,00,61,00,20,00,50,00,6c,\
  00,61,00,79,00,65,00,72,00,5c,00,77,00,6d,00,70,00,6c,00,61,00,79,00,65,00,\
  72,00,2e,00,65,00,78,00,65,00,22,00,20,00,2f,00,70,00,72,00,65,00,66,00,65,\
  00,74,00,63,00,68,00,3a,00,36,00,20,00,2f,00,50,00,6c,00,61,00,79,00,20,00,\
  22,00,25,00,4c,00,22,00,00,00
"DelegateExecute"="{ed1d0fdf-4414-470a-a56d-cfb68623fc58}"

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\WMP11.AssocFile.MP3\shellex]

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\WMP11.AssocFile.MP3\shellex\{8895b1c6-b41f-4c1c-a562-0d564250836f}]
@="{031EE060-67BC-460d-8847-E4A7C5E45A27}"


HKLM\Software\Classes\WMP11.PlayMedia :

Code: [Select]
Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\WMP.PlayMedia]

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\WMP.PlayMedia\shell]

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\WMP.PlayMedia\shell\Play]
@="&Play"
"MUIVerb"=hex(2):40,00,25,00,53,00,79,00,73,00,74,00,65,00,6d,00,52,00,6f,00,\
  6f,00,74,00,25,00,5c,00,73,00,79,00,73,00,74,00,65,00,6d,00,33,00,32,00,5c,\
  00,75,00,6e,00,72,00,65,00,67,00,6d,00,70,00,32,00,2e,00,65,00,78,00,65,00,\
  2c,00,2d,00,39,00,39,00,39,00,31,00,00,00

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\WMP.PlayMedia\shell\Play\command]
"DelegateExecute"="{ed1d0fdf-4414-470a-a56d-cfb68623fc58}"

Title: Context Menu in Win7 not working - detailed description
Post by: Yirkha on 2009-08-02 14:14:46
Maybe comparing registry access during show/doesn't show cases in Process Monitor could reveal what's the difference?
Title: Context Menu in Win7 not working - detailed description
Post by: Anentropia on 2009-08-02 14:56:46
I tried login with ProcesMonitor 2.5 from Sysinternals (http://technet.microsoft.com/de-de/sysinternals/bb896645%28en-us%29.aspx), but it's a huge bulk of log entries - 10mb -  even after I filtered out all stuff with result "success"

Contextmenu on Directory:
My exact actions once I started logging:

-rightclick on <Album> folder where I knew the context-entries for foobar appear
-selected "enque in foobar" for that album (~10 files inside)
-Foobar opened and added the files from that album to the playlist, but didn't play anything
-I closed foobar
-I opened that <album> folder in explorer
-right after I went back to the basic <artist> folder
-rightclicked on the <Album> folder where I just was and the menu-entries for foobar appeared before but NOW context menu entries for foobar were vanished, instead I had entries for  WindowsMediaPlayer - as discribed before
-saved the Logfile from ProcessMonitor

Logfile without all entriess wich had "Success" as Result:

http://www.filefront.com/14178471/Log%20Pr...7Success%27.PML (http://www.filefront.com/14178471/Log%20ProcessMonitor2%2C5%20-%20without%20Result%20%27Success%27.PML)

Logfile unfiltered:
http://www.filefront.com/14178649/Log%20Pr...%20complete.PML (http://www.filefront.com/14178649/Log%20ProcessMonitor2%2C5%20-%20complete.PML)

Contextmenu on MP3-File ("enque in foobar" always missing):
-I opened an <Album> folder
-rightclicked on an MP3-File
-stopped loggin with Process montor

Logfile unfiltered:
http://www.filefront.com/14178769/Log%20Pr...%20complete.PML (http://www.filefront.com/14178769/Log%20ProcessMonitor2%2C5%20-%20Contextmenu%20for%20MP3%20File%20-%20complete.PML)
Title: Context Menu in Win7 not working - detailed description
Post by: Yirkha on 2009-08-02 21:04:37
Well OK, I tried to look at it, but as I thought, there is not much to look at. I thought it might be possible to pinpoint when Explorer takes a wrong path and doesn't use fb2k's shell extension by comparing it with a successful case, but it's hard to see anything in your log.

Some tips if you'd like to try again:

* Don't keep the SUCCESS stuff out, otherwise the output is very crippled and doesn't tell anything.

* To make the log smaller, leave the Process Monitor running for some time just like it is and filter are useless processes like vmware-authd.exe or LEWMon.exe out (right-click on Process Name > Exclude ...). Or rather set the inclusion filter to only foobar2000.exe and explorer.exe, nothing more should be relevant, these two are necessary and important, be sure they are both included.

* And finally, pack it with any archiver you like, it should compress pretty well (10 MB => 0.6 MB for the log you provided).
Title: Context Menu in Win7 not working - detailed description
Post by: Anentropia on 2009-08-02 22:17:31
Contextmenu on Directory:
My exact actions once I started logging:

-rightclick on <Album> folder where I knew the context-entries for foobar appear
-selected "enque in foobar" for that album (~10 files inside)
-Foobar opened and added the files from that album to the playlist, but didn't play anything
-I closed foobar
-I opened that <album> folder in explorer
-right after I went back to the basic <artist> folder
-rightclicked on the <Album> folder where I just was and the menu-entries for foobar appeared before but NOW context menu entries for foobar were vanished, instead I had entries for WindowsMediaPlayer - as discribed before
-saved the Logfile from ProcessMonitor

Logfile with only explorer.exe + foobar200.exe; including all succes events:

http://www.filefront.com/14180999/Log%20Pr...20foobar2000.7z (http://www.filefront.com/14180999/Log%20ProcessMonitor2%2C5%20-%20Contextmenu%20for%20Directory%20-%20only%20explorer%20+%20foobar2000.7z)

In my 2nd Log - context-menu for mp3-files ; in my previous post - barely got smaller; explorer.exe didn't even appear in the unfiltered one, so I left it as it is; its already unfiltered
Title: Context Menu in Win7 not working - detailed description
Post by: Yirkha on 2009-08-04 20:37:49
The issue is caused by the fact that Windows Media Player has registered "play" and "enqueue" verbs for directories, like foobar2000, and the shell removes duplicate items from the menu. Unfortunately for you, the context menu extensions are processed in an order which kills the fb2k's ones, not the WMP's.

It happens only sometimes because foobar2000 uses generic "Directory" item type, while WMP uses perceived type "Directory.Audio". The behaviour changes after you look into a folder and Explorer now remembers there are audio files in it. You can see (and change) this in folder's Properties, on tab Customize, option "Optimize this folder for" - "Music" vs. "General Items".

I didn't find any option in WMP's settings to disable the relevant shell hook. You can fix this manually, though. Rename the following registry keys to something unique like "WMPEnqueue" and "WMPPlay" (or delete them altogether, that's up to you):
HKEY_LOCAL_MACHINE\SOFTWARE\Classes\SystemFileAssociations\Directory.Audio\shell\Enqueue
HKEY_LOCAL_MACHINE\SOFTWARE\Classes\SystemFileAssociations\Directory.Audio\shell\Play
Title: Context Menu in Win7 not working - detailed description
Post by: Anentropia on 2009-08-06 13:36:55
The issue is caused by the fact that Windows Media Player has registered "play" and "enqueue" verbs for directories, like foobar2000, and the shell removes duplicate items from the menu. Unfortunately for you, the context menu extensions are processed in an order which kills the fb2k's ones, not the WMP's.

It happens only sometimes because foobar2000 uses generic "Directory" item type, while WMP uses perceived type "Directory.Audio". The behaviour changes after you look into a folder and Explorer now remembers there are audio files in it. You can see (and change) this in folder's Properties, on tab Customize, option "Optimize this folder for" - "Music" vs. "General Items".

I didn't find any option in WMP's settings to disable the relevant shell hook. You can fix this manually, though. Rename the following registry keys to something unique like "WMPEnqueue" and "WMPPlay" (or delete them altogether, that's up to you):
HKEY_LOCAL_MACHINE\SOFTWARE\Classes\SystemFileAssociations\Directory.Audio\shell\Enqueue
HKEY_LOCAL_MACHINE\SOFTWARE\Classes\SystemFileAssociations\Directory.Audio\shell\Play


Thx for trying to solve that thing:

1st I set all my Folders to optimize for "Music" -> Foobar entries on directories vanished everythere
2nd I reset all my Folder to optimize for "generic elements" -> Foobar entries appeard in context menue and seem to stay there even after I opened a album folder (tried on 3 albums; even with >15 files inside)

After this I made back of HKLM\SOFTWARE\Classes\SystemFileAssociations\Audio\shell\Enqueue And your 2 keys (HKLM\SOFTWARE\Classes\SystemFileAssociations\Directory.Audio\shell\Enqueue + HKLM\SOFTWARE\Classes\SystemFileAssociations\Directory.Audio\shell\Play)

Then I deleted HKLM\SOFTWARE\Classes\SystemFileAssociations\Audio\shell\Enqueue -> "enqueue in foobar" on audio-files was finally back in context-menu

I tried using "enque in foobar" and it worked - I couldn't notice any errors
Guess deleting the other 2 keys results in enqueue/play in foobar being avaible on my folders which are not "optimized" for generic elements as well.

I just hope after release of Win7 this isn't necessary.
Title: Context Menu in Win7 not working - detailed description
Post by: Linkin on 2009-08-17 14:41:03
Thank God I found this thread. Was experiencing the same problem with Win7 RTM.
Title: Context Menu in Win7 not working - detailed description
Post by: gurubhai on 2009-08-17 17:04:28
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.
Title: Context Menu in Win7 not working - detailed description
Post by: Yirkha on 2009-08-17 18:17:09
Indeed, unchecking "
Title: Context Menu in Win7 not working - detailed description
Post by: omnimodis78 on 2009-09-05 18:26:32
If you don't need Windows Media Player at all, and nobody should ever 'need' that thing, then go to Windows Features and disable WMP under Media Features.  This did the trick for me as, like yourself, didn't have the context menu options for foobar, but after disabling that, the options appeared for foobar.  Worth a try...  BTW I'm using W7 x64 and foobar2000 0.9.6.9.  Good luck!
Title: Context Menu in Win7 not working - detailed description
Post by: TakuSkan on 2009-10-20 20:51:11
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
Title: Context Menu in Win7 not working - detailed description
Post by: Robertina on 2009-10-20 21:27:55
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 (http://wiki.hydrogenaudio.org/index.php?title=Foobar2000:Commandline_Guide).

Robertina.
Title: Context Menu in Win7 not working - detailed description
Post by: Robertina on 2009-10-20 22:16:55
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.
Title: Context Menu in Win7 not working - detailed description
Post by: TakuSkan on 2009-10-20 22:49:38
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 (http://wiki.hydrogenaudio.org/index.php?title=Foobar2000:Commandline_Guide).

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
Title: Context Menu in Win7 not working - detailed description
Post by: Robertina on 2009-10-20 22:57:40
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.
Title: Context Menu in Win7 not working - detailed description
Post by: Robertina on 2009-10-20 23:37:35
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.
Title: Context Menu in Win7 not working - detailed description
Post by: TakuSkan on 2009-10-20 23:47:51
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
Title: Context Menu in Win7 not working - detailed description
Post by: TakuSkan on 2009-10-21 19:28:35
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:


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
Title: Context Menu in Win7 not working - detailed description
Post by: Robertina on 2009-10-22 05:01:26
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 (http://www.hydrogenaudio.org/forums/index.php?showtopic=70558&view=findpost&p=633827).
Title: Context Menu in Win7 not working - detailed description
Post by: TakuSkan on 2009-10-23 00:31:18
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 (http://www.hydrogenaudio.org/forums/index.php?showtopic=70558&view=findpost&p=633827).

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
Title: Context Menu in Win7 not working - detailed description
Post by: Robertina on 2009-10-23 16:56:31
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  .


Title: Context Menu in Win7 not working - detailed description
Post by: infected on 2009-10-28 20:21:19
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"?
Title: Context Menu in Win7 not working - detailed description
Post by: shakey_snake on 2009-10-28 20:59:03
Start->Control Panel->Programs->Default Programs->Set program access and computer defaults
Title: Context Menu in Win7 not working - detailed description
Post by: infected on 2009-10-28 21:12:18
Thank you! Found it and it works. 
Title: Context Menu in Win7 not working - detailed description
Post by: toufas on 2009-10-31 11:02:50
the problem is though that this doesnt help us that use wmp along with other players (wmp and mpc for me)
Title: Context Menu in Win7 not working - detailed description
Post by: varoot on 2009-11-16 20:41:00
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}"
Title: Context Menu in Win7 not working - detailed description
Post by: Yirkha on 2009-11-16 20:50:54
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.
Title: Context Menu in Win7 not working - detailed description
Post by: achenbach on 2009-11-17 16:28:58
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
Title: Context Menu in Win7 not working - detailed description
Post by: shakey_snake on 2009-11-17 18:43:37
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.
Title: Context Menu in Win7 not working - detailed description
Post by: Yirkha on 2009-11-17 21:13:20
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?
Title: Context Menu in Win7 not working - detailed description
Post by: Stetten on 2009-11-19 23:35:53
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
Title: Context Menu in Win7 not working - detailed description
Post by: wiz.loz on 2010-01-30 23:19:32
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 (http://www.hydrogenaudio.org/forums/index.php?showtopic=72224) (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.
Title: Context Menu in Win7 not working - detailed description
Post by: Yirkha on 2010-02-13 03:18: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.
Title: Context Menu in Win7 not working - detailed description
Post by: Cybermat on 2010-03-29 18:08:48
Weird way to solve the problems...but it worked like a charm!

Thanks!
Title: Context Menu in Win7 not working - detailed description
Post by: lonrot on 2010-11-09 19:01:39
Thanks gurubhai if I had known sooner!
Title: Context Menu in Win7 not working - detailed description
Post by: taketoo on 2011-03-05 21:29:40
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

I can confirm this is the case partly, if I move an album folder from the Music library folder in Windows 7, to C:\, C:\Program Files, C:\Windows, or the Documents library folder, I can right click the album and it will have 'play in foobar 2000' showing, but if I move it to Pictures or Videos library folders no 'play in foobar 2000' shows- does this give a clue to what is going on here  ?
Title: Context Menu in Win7 not working - detailed description
Post by: taketoo on 2011-03-05 23:02:59
Additionally, if I right click the music library, click Properties, under 'Optimize this library for', if I change to 'General Items ' or 'Documents' the right click menus 'Play in foobar2000' and 'Enqueue in foobar2000' for folders will then appear. If optimization is set to 'Music, 'Videos' or 'Pictures', the context menus do not appear. You still cannot select individual or multiple files to Enqueue though you can play (though play also works for me anyway without changing optimization).
Title: Context Menu in Win7 not working - detailed description
Post by: Purple Monkey on 2011-03-06 01:52:32
Probably this: http://www.hydrogenaudio.org/forums/index....st&p=740642 (http://www.hydrogenaudio.org/forums/index.php?showtopic=86131&view=findpost&p=740642)
Title: Context Menu in Win7 not working - detailed description
Post by: taketoo on 2011-03-06 16:00:13
Probably this: http://www.hydrogenaudio.org/forums/index....st&p=740642 (http://www.hydrogenaudio.org/forums/index.php?showtopic=86131&view=findpost&p=740642)

Thanks it is a slightly different issue as they are talking about individual files and the 'Play All/Selection' feature rather than context menu for folders. Both VLC and MPC-HC provide right click context menus for album folders for both play and add to VLC/MPC-HC playlist(i.e. enqueue) with the folders optimized for music, so it seems like this is definitely a bug with Foobar that could be fixed.
Title: Context Menu in Win7 not working - detailed description
Post by: TechVsLife on 2011-03-07 03:35:47
(deleted--fixed.)
Title: Re: Context Menu in Win7 not working - detailed description
Post by: j8ee on 2018-01-26 21:37:38
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.
Why is this context menu problem still existing? Is it problematic to fix it? Since it's a nearly ten year old problem I feel OK with bringing back an old thread...

Right now I'm mostly curious if there a way to reach the above mentioned settings for Win 7 in Win 10, since the configuration menus are completely different? I remember doing it in Win 7, but I can't find any configuration or menu for this in Win 10. I resorted to remove the LegacyDisable parts under HKEY_CLASSES_ROOT\Directory\shell, but that isn't really optimal - sometimes, I don't really know under which circumstances, the context menus for foobar shows up twice, which is mildly annoying.