getmusicbee.com

General => MusicBee Wishlist => Topic started by: Crosmanrond on March 19, 2010, 11:46:04 PM

Title: global hotkeys when minimized to tray
Post by: Crosmanrond on March 19, 2010, 11:46:04 PM
I'm not sure if this is already implemented and simply doesn't work with my keyboard, or if it was overlooked previously, or even, perhaps, not implemented on purpose. Regardless, MB doesn't appear to respond to global hotkeys(Media Play/Pause/Stop/etc) when minimized to tray, would it be possible to add that as either a regular function or, at the very least, as an option on the hotkeys page? I have a media keyboard for the explicit reason of not having to keep my music player open all the time in order to control it, but since I have to have MB open in some fashion(mini-player/full player) it quite defeats the purpose.

Thanks!
Cros
Title: Re: global hotkeys when minimized to tray
Post by: chorpo on March 20, 2010, 12:08:57 PM
It is Implemented and with my Microsoft Digital Keyboard 3000, multimedia keys are working just fine... What keyboard are you using on which operation system... This is clear the problem a bit...
Title: Re: global hotkeys when minimized to tray
Post by: Crosmanrond on March 20, 2010, 03:16:16 PM
actually, I'm using the exact same keyboard as you...which makes me wonder what's set wrong...
Title: Re: global hotkeys when minimized to tray
Post by: chorpo on March 20, 2010, 03:25:56 PM
actually, I'm using the exact same keyboard as you...which makes me wonder what's set wrong...


Interesting :-) which version of Microsoft Intellitype do you have?? Is it IntelliType Pro 7.1 ( http://www.filehippo.com/download_intellitype/tech/ ) ? Which operating system?? Mine is Windows 7 32bit. Did you upgraded Intellitype recently (from version 7.0 to 7.1)?
Title: Re: global hotkeys when minimized to tray
Post by: Crosmanrond on March 21, 2010, 06:10:45 PM
well I found I was using v6 of IntelliType, so I updated that, but MB still doesn't respond to the media buttons when sent to the tray. I did notice that MB's "multimedia:..." keys are unassigned to, but I have no way to assign my media keys.
Title: Re: global hotkeys when minimized to tray
Post by: chorpo on March 22, 2010, 08:03:31 AM
What version of MB do you have?? (In Help menu click About) I have 1.2.3731. I just tried it on my keyboard and it working perfect...
Title: Re: global hotkeys when minimized to tray
Post by: Crosmanrond on March 22, 2010, 03:44:16 PM
I have version 1.2.3725(the newest I can find).
Please note I have the option "Minimize to notification tray" selected.
Also I think my problem is because of how Win7 handles programs and hotkeys differently than XP.
Title: Re: global hotkeys when minimized to tray
Post by: chorpo on March 23, 2010, 11:06:01 AM
I have version 1.2.3725(the newest I can find).
Please note I have the option "Minimize to notification tray" selected.
Also I think my problem is because of how Win7 handles programs and hotkeys differently than XP.

When I have Minimize to Taskbar or Minimize to Mini-player selected than multimedia keys are working corretly. But as you mentioned when MB minimizes itself to notification tray, mediakeys arent working. Could you please look at this Steven...
Title: Re: global hotkeys when minimized to tray
Post by: Crosmanrond on March 23, 2010, 02:35:30 PM
I did, just yesterday, have Steven add the ability to use commands like "musicbee.exe /playpause" and while this allows me to handle things it also adds a significant lag time for hotkeys. So I other words "Yes, please do look at this Steven."
Title: Re: global hotkeys when minimized to tray
Post by: Steven on March 23, 2010, 10:12:15 PM
could you try this - it is guesswork though as i dont have a multi-media keyboard
if it does work, could you also confirm its ok with the mini-player
http://www.mediafire.com/?otom2lniyz2
Title: Re: global hotkeys when minimized to tray
Post by: Crosmanrond on March 23, 2010, 10:54:00 PM
Nope, that doesn't work, in fact that was a step backwards, now the hotkeys don't even work when MB is maximized.
Thanks,
Cros
Title: Re: global hotkeys when minimized to tray
Post by: Steven on March 23, 2010, 11:38:06 PM
could you run this test.exe
click start
press a media key
click stop
and then pm me the data in the textbox

http://www.mediafire.com/?qnjymzn3m22
Title: Re: global hotkeys when minimized to tray
Post by: smd on March 25, 2010, 10:39:09 AM
My problem is slightly different but along the same lines, so I thought I'd post it here instead of starting a new thread.  The media keys don't work for me if MusicBee is not selected, even when it is not minimized to the tray.  It only works if MusicBee has the focus.  I am using a Dell keyboard, on Windows XP.
iTunes did the exact same thing (media keys only work when it has the focus), and I had to get an addon (HKTunes) for it to work, but that doesn't seem to work with this program  :)
Thanks.
Title: Re: global hotkeys when minimized to tray
Post by: Steven on March 25, 2010, 02:39:08 PM
do you have 'global' set to yes for the hotkeys in question? (global means you can press the key from anywhere, even when MB doesnt have the focus)
Title: Re: global hotkeys when minimized to tray
Post by: smd on March 25, 2010, 03:18:55 PM
do you have 'global' set to yes for the hotkeys in question? (global means you can press the key from anywhere, even when MB doesnt have the focus)

Ah yes, that worked!  I didn't know I had to assign them (play/pause, next etc.) individually and enable "global" for each one.  Thanks a lot.
Title: Re: global hotkeys when minimized to tray
Post by: Steven on March 25, 2010, 11:13:16 PM
Crosmanrond, Chorpo,
could you try this one - its still experimental though
http://www.mediafire.com/?mtwk2unzy12
Title: Re: global hotkeys when minimized to tray
Post by: Crosmanrond on March 25, 2010, 11:31:40 PM
Works like a charm! though I do seem to have a semi-related issue where, after these two experimental builds, everything draws slowly, if at all(certain purely aesthetic parts of the player just grab whatever is behind them when the player opens). I fixed it after the first experimental build by completely reinstalling MB...I'll try for this one as well...
Title: Re: global hotkeys when minimized to tray
Post by: Steven on March 25, 2010, 11:39:06 PM
i cant think what would cause that - i havent touched the graphics aspect, and by re-installing i dont see how that makes any difference as you would just overwrite MusicBee.exe again
I recall you said you had this problem the very first time using MusicBee. Can you send a screenshot when it misbehaves
Title: Re: global hotkeys when minimized to tray
Post by: Crosmanrond on March 26, 2010, 12:01:32 AM
alright, I did a reinstall, and, as you said, this is unrelated, in fact it was my own fault. I was running too many programs at once and was making it so that MB could never fully draw...or something like that...anyway, it'll all running fine now, media keys work when MB is maximized, minimized, in mini-player, and in the tray. way to go!
Title: Re: global hotkeys when minimized to tray
Post by: chorpo on March 26, 2010, 08:26:48 AM
Another great job. Thanx. Works also here. I have also tested xardas problem with multimedia keys not working when MB is set to minimize to notification tray (http://getmusicbee.com/forum/index.php?topic=846.0). It works as expected ;-) Also minimize to mini-player works like a charm...

I'm just curious. What was the problem??
Title: Re: global hotkeys when minimized to tray
Post by: Steven on March 26, 2010, 09:04:10 AM
when MB is only in the notification tray there is no visible window, so windows decides it doesnt need to send the multi-media key messages to MB. So i had to add a special handler for that
Title: Re: global hotkeys when minimized to tray
Post by: acxl on February 09, 2011, 06:01:54 PM
Hello,
sorry for bringing this topic up, but I have exactly the same problem with my Microsoft Multimedia Keyboard 3000 (IntelliType 8.0)/ Windows 7 Prof. x64 / MusicBee 1.2.4037.
The hotkeys only work if the MB window is focused, the hotkeys are also set to "global".

Is this a bug or is the 64-bit-Version of Windows responsible?

Thanks!

Title: Re: global hotkeys when minimized to tray
Post by: Steven on February 09, 2011, 07:07:07 PM
there are 2 sets of keys for the player
1 - Multimedia: xxxx
2 - Playback: xxxx

have you made both global?
Title: Re: global hotkeys when minimized to tray
Post by: acxl on February 09, 2011, 11:15:31 PM
Okay, the Multimedia hotkeys are all set global.

Next problem: I can't assign for example the Playback hotkey "Multimedia: Next" with the hardware hotkey "MediaNextTrack".
MB didn't react when I press the button?!
Title: Re: global hotkeys when minimized to tray
Post by: Crosmanrond on February 10, 2011, 03:01:18 AM
MB didn't react because the Microsoft Multimedia keyboards use virtual keys to trigger events rather than simply mapping keys normally(there are advantages, I won't explain them here though), a side-effect is that it is considered automated input when you press them, and they are ignored by most programs.

Solution:
Go to your keyboard settings and set your multimedia keys to actually send the Play/Next/Last/etc keys when they are pressed. (should be in Control Paney > Keyboard > Key Settings)
Title: Re: global hotkeys when minimized to tray
Post by: VX on February 10, 2011, 01:35:02 PM
I have Microsoft Comfort Curve Keyboard 2000 and all the multimedia keys works for me without installing any dedicated driver on Windows 7 64 bit. (However, if I wanted to change the multimedia hotkeys actions I'd have to install Microsoft Intelli Driver).

At first I had similar problem as SMD and ACXL: the multimedia hotkey Play/Pause didn't work with Music Bee (the other 3 hotkeys - for Volume Up/Down and Mute - worked though). I set it as Global in MB Preferences /Hotkeys and the problem is gone  :)


One small request: if MB detects a multimedia keyboard all the multimedia hotkeys should be set global by default.
Steven, what do You think ???

UPDATE:
I don't have to dig in the player preferences in order to use all the multimedia hotkeys with Media Monkey 4, Media Player Classic -HC, Windows Media Player or Foobar. All the hotkeys work with these players by default.
In Music Bee is merely the same except the one and only Play/Pause hotkey, which I have to set global to make it to work. Why the 3 multimedia keys work as expected and the one needs digging in the preferences ??? Is it different ???
Title: Re: global hotkeys when minimized to tray
Post by: acxl on February 10, 2011, 06:40:08 PM
I checked the keyboard settings for IntelliType, all multimedia keys are set as standard, as you can see in the following pic (sorry, it's the german version):

(http://s10.directupload.net/images/110210/65v7zeil.jpg) (http://www.directupload.net)

MB still doesn't react when I press a multimedia key to assign it.

I've got no more ideas?

@Crosmanrond & VX: Have you got the x86 or x64 version of IntelliType installed (both are possible)?
Title: Re: global hotkeys when minimized to tray
Post by: VX on February 10, 2011, 07:12:45 PM
@Crosmanrond & VX: Have you got the x86 or x64 version of IntelliType installed (both are possible)?

I don't use any Intelli driver as Windows 7 64 bit recognizes my keyboard and mouse perfectly and I don't need to assign custom actions to the multimedia keys.

Ability to change the default action assigned to multimedia keys was the one and only reason why I installed Intelli Type driver some time ago. Sorry, but I just can't remember whether it was x64 (most likely) or x86 version.

As far as MB and multimedia hotkeys only the Play/Pause key is somehow problematic for me, but I hope we could find a solution.

I can't understand why it doesn't work by default with MB contrary to other multimedia hotkeys. The hotkeys Voulme Up/Down and Mute are painted silver with black icons whereas the Play/Pause key is black with silver icons just as other hotkeys for Internet and Calculator, but I guess it doesn't matter in this case. Any ideas  ???
Title: Re: global hotkeys when minimized to tray
Post by: Crosmanrond on February 10, 2011, 10:04:58 PM
I'm running the x86 version of IntelliType, but I doubt that's the issue...

A couple of debug questions:
Does Windows media player respond to your multimedia keys when minimized?
Try installing AutoHotKey then run a script and using the Key History view to see if your multimedia keys show up under their own names, or using the scan codes of another key(or two in my case).(sorry there's no simpler way to check..)

Other than that you might just try reinstalling MB...I've had weird issues fixed that way before...
Title: Re: global hotkeys when minimized to tray
Post by: acxl on February 10, 2011, 10:39:40 PM
Okay, thanks.
I'll try it this weekend.
With the WMP my keyboard is working perfectly.
In the past I'll updated MB always from (beta)build to build, let's see...
Title: Re: global hotkeys when minimized to tray
Post by: acxl on February 12, 2011, 10:28:13 PM
I've found the "failure":
It's the Intellitype Software. Without, all hotkeys are working with MB perfectly, it doesn't matter if the window is focused or not.

Well, without Intellitype, the half of the extra hotkeys of the keyboard doesn't work...   :-[

Maybe it's possible to add a support with IntelliType in a future MB version?! ;)
Title: Re: global hotkeys when minimized to tray
Post by: Crosmanrond on February 12, 2011, 11:06:47 PM
Out of curiosity, do you have the "HID Input Service" somehow disabled?
Title: Re: global hotkeys when minimized to tray
Post by: acxl on February 13, 2011, 05:45:26 PM
No, the service is running.
Title: Re: global hotkeys when minimized to tray
Post by: oblivinated on May 10, 2011, 10:10:16 PM
I have the exact same problems, and I can confirm that if I kill itype.exe it works. But without itype.exe the other keys macro/multimedia keys on the keyboard doesn't work. I wonder if there is a fix for this, similar to the fix for iTunes.

What exactly is the weird relationship here? Is itype.exe "intercepting" the command for play/pause?
Title: Re: global hotkeys when minimized to tray
Post by: Steven on May 10, 2011, 10:22:56 PM
i cant help much with this but i did make a change in the very latest beta (1.2.4145) that fixed a strange problem with keyboard handling for someone else so its possible its related.
Title: Re: global hotkeys when minimized to tray
Post by: oblivinated on May 11, 2011, 03:36:10 PM
Sorry, not fixed! There's that similar dll plugin for iTunes (mmKeys) that solves the problem. I wonder what the magic is?
Or, a really easy fix would be to allow commands in the shortcut path of MusicBee. For example, -playpause, -nexttrack, -previoustrack, etc which then could be set as shortcuts for the keys on the keyboard.

This may be a sidenote, but the Beta start-up time is much faster!
Title: Re: global hotkeys when minimized to tray
Post by: Steven on May 11, 2011, 04:04:14 PM
if you are refering to command line parameters, then musicbee already has support for that (there is a topic if you do a forum search)
/Play "xxxx"
/QueueNext "xxxx"
/QueueLast "xxxx"
/Stop
/StopAfterCurrent
/PlayLibraryShuffled
/PlayPause
/PlayNextTrack
/PlayPreviousTrack
/StartAutoDj
/ClearNowPlaying
/VolumeDown
/VolumeUp
Title: Re: global hotkeys when minimized to tray
Post by: oblivinated on May 11, 2011, 04:37:05 PM
/PlayPause is working but /PlayNextTrack and /PlayPreviousTrack don't seem to be ><
Title: Re: global hotkeys when minimized to tray
Post by: Steven on May 11, 2011, 04:44:47 PM
typo, its:
/Next
/Previous
Title: Re: global hotkeys when minimized to tray
Post by: acxl on May 11, 2011, 07:16:14 PM
Wow, that works, great!  :D