I've been a MediaMonkey user for years, but after buying a new keyboard with fewer multimedia control keys I thought i'd have a go at trying to control MM with what seems to be the most popular keyboard macro tool on Windows: AutoHotkey.
I was trying to do something simple, create a hotkey that-
- If MediaMonkey isn't running, starts MediaMonkey
- If MediaMonkey IS running, activates the window and gives it focus (opening the window if it's minimised)
I think MediaMonkey this is because instead of a normal Window's 3 states (Minimised to the Taskbar, Normal, or Maximised) MM has multiple "open" forms (normal view, Miniplayer, Microplayer, Invisible except in the System Tray)
Nett result is that unlike other normal Windows applications, MM ignores the AHK "WinRestore" command and the workarounds given in the AHK documentation for "badly behaved" applications. More bizarely, if you use the "WinShow" AHK command MM actually gets stuck in normal view and the windows Minimise button (the "-" symbol) no longer minimises the window, you have to cycle through one of the other views like Miniplayer before the window controls work properly again.
I tried setting up a MediaMonkey hot key and triggering that from AHK, but MM doesn't actually have a Hotkey action for "Restore". There are hotkey actions for toggling in/out of the various views like Miniplayer, but the trouble is they are just that- toggles, you have to know whether MM is currently (say) shrunk to the Systray to know whether the toggle is going to open it or close it.
I found one thread on this subject here-
http://www.mediamonkey.com/forum/viewto ... ey#p269316
but this doesn't seem to work with the latest version of MediaMonkey. I have to say this is a case where maybe MM is a bit too clever for its own good.
Any ideas or pointers would be much appreciated.