Need help with an old EventGhost plugin which doesn't work with MM5

Post a reply

Smilies
:D :) :( :o :-? 8) :lol: :x :P :oops: :cry: :evil: :roll: :wink:

BBCode is ON
[img] is ON
[url] is ON
Smilies are ON

Topic review
   

Expand view Topic review: Need help with an old EventGhost plugin which doesn't work with MM5

Re: Need help with an old EventGhost plugin which doesn't work with MM5

by nonob » Wed May 10, 2023 7:23 am

Hi,
drakinite wrote: Tue May 09, 2023 2:29 pm Using MMremote or MonkeyMote could likely do what you're looking for.
Yes, I use MMRemote :) :
nonob wrote: Thu Apr 27, 2023 2:18 am In the meantime, I'm using the Android application MMRemote to launch playlists, among other things...
drakinite wrote: Tue May 09, 2023 2:29 pm Otherwise, maybe the keyboard shortcut idea could work, if you can find a hotkey in Tools > Options > Hotkeys that does what you're looking for. You'll probably want to check the "Global" box if you want the hotkey to work no matter what program is currently "focused".
As I said, I managed to recreate the main commands with global shortcuts but there isn't a shortcut to launch playlists.
drakinite wrote: Tue May 09, 2023 2:29 pm If you can't find a hotkey for what you want, and you're comfortable with doing some JavaScript, you could also make an addon to add a hotkey for whatever you're trying to do. Check SampleScripts/hotkeyAction.
Unfortunately, I don't know anything about javascript or any other language.

Re: Need help with an old EventGhost plugin which doesn't work with MM5

by drakinite » Tue May 09, 2023 2:29 pm

Sorry, I unfortunately don't know enough about EventGhost to say whether you'd be able to use its other features to do what you want.

Using MMremote or MonkeyMote could likely do what you're looking for. Otherwise, maybe the keyboard shortcut idea could work, if you can find a hotkey in Tools > Options > Hotkeys that does what you're looking for. You'll probably want to check the "Global" box if you want the hotkey to work no matter what program is currently "focused". If you can't find a hotkey for what you want, and you're comfortable with doing some JavaScript, you could also make an addon to add a hotkey for whatever you're trying to do. Check SampleScripts/hotkeyAction.

Re: Need help with an old EventGhost plugin which doesn't work with MM5

by nonob » Tue May 09, 2023 1:53 am

Hi,

Thanks for your reply and explanations :)

It seems too complicated, I think I can live without launching my playlist with my physical remote control but it would be a bonus if I could...

Are there any other actions I could use in EventGhost to launch playlist play? (outside the mm plugin; there are a lot of other plugins and actions in EventGhost)
A simple solution will be to have the ability to assign keyboard shortcuts to launch playlist play, could it be possible?

Re: Need help with an old EventGhost plugin which doesn't work with MM5

by drakinite » Fri May 05, 2023 10:45 pm

Seems like EventGhost is using the COM API, which is deprecated in MM5. It may be possible to get some of the functionality by changing SongsDB.SDBApplication to SongsDB5.SDBApplication: https://github.com/EventGhost/EventGhos ... __.py#L539

but many of the COM methods are not implemented because we've been attempting to make MM cross-platform, and COM is Windows-only. Unfortunately, since I see the EventGhost MM plugin is several thousands of lines long, it'd be a mighty amount of work to translate it to the new remoteRequest framework for MM5 (but it would still be possible).

Re: Need help with an old EventGhost plugin which doesn't work with MM5

by nonob » Thu Apr 27, 2023 2:18 am

While waiting for a possible answer for a modification or a new MediaMonkey plugin for EventGhost, I managed to recreate the main commands play, pause, previous file, next file, stop :):

I added new shortcuts in MediaMonkey for these playbacks actions (existing shortcuts use "media" shortcuts which I failed to use in EventGhost). I used combinations of CTR, ALT, and F7-F11 that I don't think are used elsewhere.

To create these new shortcuts, go to Tools\Options\General\Keyboard shortcuts: New shortcut: Apply:
Image

I created these shortcuts and checked the "Global" box so they would work even if MediaMonkey doesn't have focus:
Image

In EventGhost I started from the list of existing actions created with the plugin and I added the Windows Window\Simulate a keyboard key activities: I added the shortcuts in this form: {Ctrl+Alt+F9}
Image

I disabled the actions of the plugin so as not to generate errors in the EventGhost log (I then completely disabled the plugin):
Image

It seems to work! :D

Now all I'm missing is the launch of playlists which was a convenient feature of the plugin:
Image

If anyone has an idea for this... I don't think it can be done with a hotkey. It must be possible with the MediaMonkey API but I don't know which command to use and how to generate it with EventGhost, if you have any ideas...

In the meantime, I'm using the Android application MMRemote to launch playlists, among other things...

Re: Need help with an old EventGhost plugin which doesn't work with MM5

by nonob » Tue Apr 25, 2023 10:33 am

Hi,
I just found the old topic about the MediaMonkey EventGhost plugin I'm using, a topic created by the plugin developer: here.

Need help with an old EventGhost plugin which doesn't work with MM5

by nonob » Sun Apr 23, 2023 3:10 am

Hi,
I use MediaMonkey 4 for years and I control it with remote control (Logitech Harmony) with an old software: EventGhost.

I updated MediaMonkey from v4 to v5 and the plugin doesn't work anymore, it says "self.workerThread is None !".
I create an issue on the EventGhost GitHub page but it is old software and I'm not sure it is still maintained (the website and its form are down).

I don't know if it is a big work or not to make the plugin compatible with MM 5 but I would really appreciate if someones could help me with this. The plugin code is here.

Thanks :)

Top