getmusicbee.com

MusicBee & Add-Ons => Customizations => Plugins => Topic started by: Pako on May 05, 2013, 12:10:14 PM

Title: EventGhost (remote control and event listener)
Post by: Pako on May 05, 2013, 12:10:14 PM
I think that not everyone wants to use Android as a remote control.
Therefore, I created a new plugin. During the development I used the Snarl (http://www.noer.it/download/3) plugin by Toke.

(http://a.fsdn.com/con/app/proj/egmbplugin/screenshots/EG_MB_Plugin_Setup.png/513/399)

Now you can use the program EventGhost (http://www.eventghost.net/) as a remote control.
But it also allows you to do much, much more.
I suppose, I will add or improve some action based on user requirements.
If you you're interested, you can download the plugin here (http://sourceforge.net/projects/egmbplugin/).

Pako

Title: Re: EventGhost
Post by: Steven on May 05, 2013, 12:34:18 PM
looks good - so from the documentation on your web site it looks like it supports many different remote devices.
Do you know if its possible to set up iPhones and Windows Phone 8 devices to use this?
Title: Re: EventGhost
Post by: Pako on May 05, 2013, 12:42:57 PM
Yes, for iPhone there's an app EventPhone (http://melloware.com/eventphone/).
However, for Windows Phone 8 devices there is probably nothing yet.

Pako
Title: Re: EventGhost
Post by: Pako on May 11, 2013, 12:05:36 PM
Plugin updated (version 0.0.2).
Set repeat mode to "One" removed from options (MusicBee API lack).

Pako
Title: Re: EventGhost (remote control and event listener)
Post by: laluprasad on June 13, 2013, 11:29:39 PM
After installing EG plugin, musicbee crashes on launch.  The crash is immediate and there is no workaround.  I was hoping to use musicbee w/ EG as alternative to mediamonkey, but I wont be able to move to musicbee if I can't use EG as its causing crash.  Please provide the fix.  Windows log shows following msg:
Application: MusicBee.exe
Framework Version: v4.0.30319
Description: The process was terminated due to an internal error in the .NET Runtime at IP 50A371D8 (50890000) with exit code 80131506.

further more:
Faulting application name: MusicBee.exe, version: 2.0.4663.29086, time stamp: 0x5071a9d2
Faulting module name: clr.dll, version: 4.0.30319.17929, time stamp: 0x4ffa5753
Exception code: 0xc0000005
Fault offset: 0x001a71d8
Faulting process id: 0x11c4
Faulting application start time: 0x01ce68842f8b34cb
Faulting application path: C:\Program Files (x86)\MusicBee\MusicBee.exe
Faulting module path: C:\Windows\Microsoft.NET\Framework\v4.0.30319\clr.dll
Report Id: 6ef404c6-d477-11e2-9afd-90b11c649743


I have tried reinstalling .net framework,rebooting, reinstalling musicbee, reinstalling eg plugin, eg app but nothing helped.  To me it seems like some bug in the code.  I will really appreciate if you can fix this.  Please excuse any typo in my post.
Title: Re: EventGhost (remote control and event listener)
Post by: laluprasad on June 13, 2013, 11:56:02 PM
BTW, if I remove plugin file mb_EgPlugin.dll  it works but then the plugin is not there but I want to use this plugin wiht musicbee.  Thanks again.
Title: Re: EventGhost (remote control and event listener)
Post by: laluprasad on June 14, 2013, 12:43:01 AM
Hey Pako,

I managed to get musicbee working with eg plugin.  I just installed latest beta 2.1 and plugin works fine.  I want to make few requests for the plugin. 

1) allow now playing track to be added to custom playlist
2) allow now playing track to skip by 5 sec , 10 sec, 20 sec, 30 sec etc..


I really appreciate your time.

thanks,
Lalu
Title: Re: EventGhost (remote control and event listener)
Post by: VX on June 14, 2013, 06:52:21 AM
Could you download the latest patch and update MusicBee to the latest version available (currently MB 2.1.4912)  ???
http://musicbee.niblseed.com/V2_1/MusicBee_Exe_Patched.zip
Just unzip and copy the files into MusicBee folder overwriting older ones.

Then start using the plugin and after some time go to MusicBee menu/Help/Support/View Error log.

If there were some entries starting with 'MusicBee v2.1.xxxx .......' then could you copy these and post on the forum  ???
It would help both Steven and the plugin developer to fix errors and make MusicBee better. Thanks  :)
Title: Re: EventGhost (remote control and event listener)
Post by: Pako on June 14, 2013, 08:34:28 AM
I am very pleased about your interest in this plugin.
Otherwise it looks (because here are almost no reaction), that plugin is either complete shit or that it is completely perfect. ;)

You've probably overlooked a warning that you must use MB version 2.1.4181 or later.
But this problem have you solved it.

Quote from: laluprasad
1) allow now playing track to be added to custom playlist
I'm not sure, if there is any suitable method in MusicBee API for creating such action.
In addition, I do not know how you imagine it. What you mean by "custom playlist"?
How will it be decided to which playlist to be added to the track?
Can you please clarify this?

Quote from: laluprasad
2) allow now playing track to skip by 5 sec , 10 sec, 20 sec, 30 sec etc..
Yes, I can add an action that will perform such work. However, it is very easy to do it already.
Here is an example of how to skip 10 seconds:
(http://i44.tinypic.com/dcx7ih.png)

Pako
Title: Re: EventGhost (remote control and event listener)
Post by: Pako on June 14, 2013, 08:55:35 AM
Here you can see that I've got probably sclerosis.  :(
Seek action is already included in the plugin !
Here you can see an example of how to set the skip 10 seconds:
(http://i39.tinypic.com/rigsj4.png)
Pako
Title: Re: EventGhost (remote control and event listener)
Post by: boroda on June 14, 2013, 09:58:10 AM
I am very pleased about your interest in this plugin.
Otherwise it looks (because here are almost no reaction), that plugin is either complete shit or that it is completely perfect. ;)
Don't see at number of posts, see the number of downloads :)
Title: Re: EventGhost (remote control and event listener)
Post by: Pako on June 14, 2013, 11:39:07 AM
Quote from: boroda74
Don't see at number of posts, see the number of downloads :)
Unfortunately, this is not entirely true.
At this moment there I see a total of 26 download (for a period of about one and a half months).
It looks more like a weak interest.
Fortunately, it does not say anything about the quality.
On the other hand information about the satisfaction I can get only from some feedback.
In any case, I thank you for trying to comfort me.  :)

Pako
Title: Re: EventGhost (remote control and event listener)
Post by: Steven on June 14, 2013, 11:51:28 AM
@pako,
its simply the case that MB is not that well known and doesnt have a large user base. The small number of downloads your plugin has reflects that. Some of the last.fm plugins that i did which have been around much longer and i thought people would want to use only have a few hundred downloads
Title: Re: EventGhost (remote control and event listener)
Post by: boroda on June 14, 2013, 12:59:03 PM
Quote
Unfortunately, this is not entirely true.
At this moment there I see a total of 26 download (for a period of about one and a half months).
It looks more like a weak interest.
My statistics:
1. 'Now Playing' to text file plugin - 39 download only since 2013-04-06
2. Social Networks Status plugin - 81 downloads since 2013-03-10
3. Additional Tagging Tools plugin (most successful) - 167 downloads since 2013-05-16

Usually little number of posts speaks about that users satisfied with current stability and functionality.
Title: Re: EventGhost (remote control and event listener)
Post by: laluprasad on June 14, 2013, 06:10:55 PM
Thanks Pako for your prompt reply.  I been using mediamonkey for long time and I exclusively use it because I am able to send events using EG and accomplish the action I desire without even looking at its UI.  This makes is very easy when I have bunch of songs I am listening to and I can add a song I like to specific playlist I created.  It has been served me well.  However, now I want to move to musicbee.  If we can get the Musicbee plugin for EG to be solid like Media monkey's plugin I guess there might be lot of users willing to user interested in musicbee.

About the playlist action here is what I have setup with EG + Mediamoneky and I want exact same thing to have it in EG + MuiscBee.

(http://img825.imageshack.us/img825/5872/r3z.png) (http://imageshack.us/photo/my-images/825/r3z.png/)


What this accomplish for me is when I like current playing 1990s song, I can simply click the "90s" button and that will automatically add the song to '90s' playlist that I have already created.  Similarly, if a song I like is a pop genre, I can simply click 'pop' button on remote UI and it will send/add the song to 'pop' playlist which I have already created.  Also, if the song already exists in playlist then it will NOT add (There is a option in mediamonkey to allow to add already existing song to playlist or not.  I have unselected that so that playlist wont have duplicates)  Does this make sense?  Let me know if you need more info.  I will able to gladly provide it.  Thanks for your time.

Title: Re: EventGhost (remote control and event listener)
Post by: Pako on June 14, 2013, 08:06:35 PM
I suppose that the point 2 is resolved.
So I will return to point 1. Yes now I understand it.
MediaMonkey plugin I know very well. That would be weird otherwise, because I wrote it.  ;)

MB and MM plugins can not have exactly the same options, because MM API and MB API are quite different.
But I hope it will be possible to somehow solve it.
It seems that it could be possible to use the API method Playlist_SetFiles.
I can not find anything else. I have to try it. I do not know how it works.
If it adds tracks to the playlist, then it will be easy.
Otherwise, it would probably be only a workaround and we had to ask for an extension API for the new method.

But I have to apologize. Now in June I do not have time. I'll be able to start working on it until July.

Pako
Title: Re: EventGhost (remote control and event listener)
Post by: laluprasad on June 14, 2013, 08:40:54 PM
Thanks Pako....I really appreciate your time and effort. 
Title: Re: EventGhost (remote control and event listener)
Post by: boroda on June 26, 2013, 08:49:40 AM
Here is plugin wiki template page (http://musicbee.wikia.com/wiki/EventGhost). Please fill it with actual plugin info.
Title: Re: EventGhost (remote control and event listener)
Post by: Pako on June 26, 2013, 10:41:32 AM
Quote from: boroda74
Here is plugin wiki template page (http://musicbee.wikia.com/wiki/EventGhost). Please fill it with actual plugin info.
I thank you very much for reminding me. I know about it.
However, I have a test tomorrow (Pearson VUE) and I have to prepare.
As soon as I'll have time, I'll do it immediately.

Pako
Title: Re: EventGhost (remote control and event listener)
Post by: boroda on June 28, 2013, 01:05:32 PM
Pako, thank you for maintaining wiki page!
Title: Re: EventGhost (remote control and event listener)
Post by: Pako on June 28, 2013, 01:25:07 PM
Pako, thank you for maintaining wiki page!
No need to thank. On the contrary, I thank you for your interest in it. :)

Pako
Title: Re: EventGhost (remote control and event listener)
Post by: Pako on July 04, 2013, 05:20:33 PM
New version (0.0.3) released.
3 new actions added:
Code
Library command:           Set file tag
Now playing list command:  Set file tag
Now playing command:       Set file tag
Now you can (for example) set a rating using remote control.

Pako
Title: Re: EventGhost (remote control and event listener)
Post by: Jkesnk on July 09, 2013, 05:27:15 AM
Just read the thread the other day...downloaded everything and got EventGhost to work....I'm trying to set it so I can skip to 'Next Track','Previous Track" and volume up and down....These are simple...but I can't seem to find a way to set them up....If you could show me how.....that would be great....I am very interested in this remote program for my iPhone...because MB doesn't have anything that I know of for the iPhone....any help would be great..........Thanks for the program....
                                                                    Jake
Title: Re: EventGhost (remote control and event listener)
Post by: Pako on July 09, 2013, 12:58:45 PM
Quote from: Jkesnk
These are simple...but I can't seem to find a way to set them up....If you could show me how.....that would be great....
Can you please clarify, what you need help with?
Please use simple and understandable sentences.
My English is unfortunately weak.

Pako
Title: Re: EventGhost (remote control and event listener)
Post by: Jkesnk on July 10, 2013, 12:15:55 AM
I am playing a song and want to skip to next song...how do I set a button in EventGhost on my iPhone to do that...I want the music to be louder .. how do I set the buttons in EventGhost on my iPhone for more volume....
Title: Re: EventGhost (remote control and event listener)
Post by: Pako on July 11, 2013, 04:07:17 PM
Unfortunately I do not have an iPhone.
But I know one application for the iPhone that can work with EventGhost.
This is EventPhone (http://melloware.com/eventphone/) .
I am afraid that there is no other option.
You have installed EventPhone?

Pako
Title: Re: EventGhost (remote control and event listener)
Post by: Pako on July 16, 2013, 03:07:10 PM
I realized that here's at least one more option (outside EventPhone). It is even independent of the type of smartphone, so it also works for Android and Windows 8:
You can use (EventGhost) plugin HTTP menu (http://www.eventghost.net/forum/viewtopic.php?f=9&t=4082).
Here is a small guide on how to do it step by step (of course I assume that you have installed the plugin MusicBee):
1.) You must download the plugin HTTP menu and the file __ init__.py place into (EventGhost) subdirectory ...\plugins\HTTPmenu.
2.) Restart EventGhost
3.) Download MusicBee-SimpleRemote.xml (https://dl.dropboxusercontent.com/u/4167851/MusicBee-SimpleRemote.xml) and open it in EventGhost (File\Open ...)
4.) Double-click the node "HTTP menu: Start HTTP server: MusicBee simple remote ...". The following window opens:(http://i41.tinypic.com/f04rus.png)
5.) There you have to select the network interface that is connected to the same network as your iPhone and a suitable port (eg. 8008)
6.) Save the changed configuration and restart EventGhost
7.) In EventGhost log you will see a line similar to this:
(http://i41.tinypic.com/34fdwf5.png)
8.) Now you have to write the same IP address and port to the browser. It should load a page like this:
(http://i42.tinypic.com/zu5kcp.png)
9.) If everything is ok, you can remotely control MusicBee.

Pako
Title: Re: EventGhost (remote control and event listener)
Post by: derausgewanderte on July 19, 2013, 02:48:37 AM
Pako, that looks great!! Windows Phone 8 here and will try this ASAP and report back.
the mb_WWWserver.dll plugin works well except it doesn't allow volume control.

edit1: works, after I figured out to follow your instructions step by step and actually read the ones you included in the installer of the MB plugin ;)
One thing I didn't find is that the path for MB has be to set in EG.

Doesn't look as nice as the mb_WWWserver plugin with album art, but having the vol up and down and mute is better.

thank you for another option to control my MB from my WP8 Pako.
Now trying to change the appearance of the buttons on the html page as they are way too small on my Lumia 920.

terrific!!
Title: Re: EventGhost (remote control and event listener)
Post by: Pako on July 19, 2013, 03:30:18 PM
... One thing I didn't find is that the path for MB has be to set in EG.
Great!
I am very pleased that my work was not in vain.
Yes you are right, I forgot to set the path to MusicBee.
So for others - the following point you need to do (preferably between points 3 and 4):
Double-click the node Plugin: MusicBee.
You should see a similar dialog:
(http://i42.tinypic.com/oub0g5.png)
If the path is not found automatically, do it manually. Then click OK to confirm the change.

Remember that this is the only EXAMPLE. You can customize the menu to your needs.

Pako
Title: Re: EventGhost (remote control and event listener)
Post by: derausgewanderte on July 21, 2013, 02:07:11 AM
it works great after I start EG and MB. It works maybe for 2-3 commands but then I lose all control over html and cannot access the page. Sometimes a restart of the browser on the phone works, most times it doesn't.

As soon as I restart EG on the PC it works again, so I must assume it's a communication problem between phone browser and EG. I have no such issues with the mb_WWWserver plugin. Possibly a problem with EG running on Win8 64bit? I changed the port and made sure it's open in the firewall. Knowing that it works for some time but then gets stuck indicates that port should not be an issue. Further evidence is that the other plugin works fine. Don't know, but had to go back to other plugin since it's not functional for me at this point.
If anybody has suggestions I'd love to hear them.
Pako, thank you again. But I tried to figure out how to customize the menu but didn't know how to.

thanks again
Title: Re: EventGhost (remote control and event listener)
Post by: Pako on July 22, 2013, 06:11:25 AM
it works great after I start EG and MB. It works maybe for 2-3 commands but then I lose all control over html and cannot access the page. Sometimes a restart of the browser on the phone works, most times it doesn't. ...
I'm sorry, but I do not know how I could help.

Pako, thank you again. But I tried to figure out how to customize the menu but didn't know how to.
I think it is quite simple and intuitive. Just play around with it a bit.
But it probably has no meaning if it does not work.


I have one idea and if it will really work, so I'm about two to four weeks will have another solution to remotely control of MusicBee using tablets and smartphones.

Pako
Title: Re: EventGhost (remote control and event listener)
Post by: Pako on August 09, 2013, 01:55:11 PM
I just released a new version (0.0.4).
It contains many new features. For example:
1) Added action "Get static playlists"
2) Added actions "Add song to playlist" and "Add Currently playing song to playlist"
3) Added actions "Toggle mute", "Toggle shuffle" and "Toggle repeat"
4) Added actions "Increase / Decrease volume" and "Get track info"
5) Added actions "Get thumbnail" (Now Playing and Library groups)

Now I am preparing a sample to create a relatively comfortable web interface for this plugin.

It is possible that some minor changes are not backward compatible. I apologize to people who encounter it.

Pako
Title: Re: EventGhost (remote control and event listener)
Post by: Pako on September 17, 2013, 12:53:35 PM
I did a web GUI for this plugin.
Here you can see how the control panel looks in a web browser:
Playing:
(http://i43.tinypic.com/2vxg7e0.png)
Paused:
(http://i40.tinypic.com/2n0vms9.png)
Plugin mb_EventGhostPlugin_Setup.exe download here.  (http://sourceforge.net/projects/egmbplugin/?source=navbar)
Everything else (what you'll need) download here.  (https://dl.dropboxusercontent.com/u/4167851/MusicBeeEventGhostWebserver.zip)
After unpacking (I assume you have installed EventGhost and MusicBee)
- Run mb_EventGhostPlugin_Setup.exe (follow the instructions listed there)
- The folder www-musicbee place the anywhere it suits you
- File musicbee-webserver.xml you must open in EventGhost and set the necessary parameters of both plugins.
In particular, you have to (probably) change the path to the folder www-musicbee.

Now you can open the page in a web browser http://localhost:8080/index.html (use the same port as the Webserver plugin settings).
Note: If you open a page from another computer (or smartphone for example),
then you (obviously) need to replace "localhost" corresponding IP address.

Pako
Title: Re: EventGhost (remote control and event listener)
Post by: derausgewanderte on November 03, 2013, 02:51:37 AM
thanks for the update. was looking forward to trying this.
here is what happens on my system.

I installed everything following your instructions. On the phone when I enter the url it finds the www-musicbee html and opens the page. Within EG I see that webserver and musicbee plugins are loaded.
However, none of the links on the webpage do anything. Seems to be an issue with the jscript talking to EG, because I can start and do everything with MB from within EG (e.g. run MB, play, stop and exit MB).
I made sure the paths are correct (they must be I guess since the phone finds your html page).
any ideas?

edit: a step by step;

installed MB and EG.
ran mb_EventGhostPlugin_Setup
no errors, checked and py and plugin were installed in the correct folders.

copied webserver folder (www-musicbee) into mb plugins folder

opened musicbee-webserver.xml in EG and get the following
-----------------------   
Plugin: Webserver
      Error starting plugin: Webserver
      Traceback (most recent call last) (1640):
        File "C:\Program Files (x86)\EventGhost\eg\Classes\PluginInstanceInfo.py", line 177, in Start
          self.instance.__start__(*self.args)
      TypeError: __start__() takes at most 8 arguments (9 given)
   Plugin: MusicBee
      Error starting plugin: MusicBee
      Application not found!
-----------------------
Ok to the MB plugin. I right click on the plugin and change to the correct path under configure. I get this:
-----------------------
Error starting plugin: MusicBee
Traceback (most recent call last) (1640):
  File "C:\Program Files (x86)\EventGhost\eg\Classes\PluginInstanceInfo.py", line 177, in Start
    self.instance.__start__(*self.args)
  File "C:\Program Files (x86)\EventGhost\plugins\MusicBee\__init__.py", line 1230, in __start__
    self.mr = eg.MessageReceiver("MusicBee_plugin_")
  File "C:\Program Files (x86)\EventGhost\eg\Classes\MessageReceiver.py", line 44, in __init__
    raise WinError()
WindowsError: [Error 1410] Class already exists.
-----------------------

When I try to configure the Webserver plugin EG just crashes.

Next round. After removing the plugins in EG under Configuration I load plugin/program control/MusicBee and Other/Webserver
EG is asking me to configure each when loading plugins.
No errors.

I restart EG. No errors.
I connect to webpage on phone and can connect fine. No icon shows up for MB though. When I tap the icon to start MB it does nothing.
In EG on the other hand under Configuration/ MB tree, all commands works fine.

So, EG knows where MB is located and the webserver. However there is no communication between the scripts and EG apparently.

the old mb_WWWserver.dll plugin works fine (using a different port). I turned AV and Firewall off in all of this.



Title: Re: EventGhost (remote control and event listener)
Post by: Pako on November 03, 2013, 07:06:55 AM
...
copied webserver folder (www-musicbee) into mb plugins folder
...
1) I think that the  mb plugins folder is not a suitable location for these files (there should really be only MusicBee plugins). However, it does not seem to cause problems.
2) You write, that you are opening a website on a smartphone. I do not know what it is and what kind of browser you are using. This can be a problem. Therefore it would be helpful to first open a webpage directly on the computer that is running EventGhost and MusicBee (as I described it in my previous post). Your browser must support HTML5.
3) Please test HTML5 support on your smartphone here: http://html5test.com/
4) Please write here, what were the results of the tests referred to in points 2) and 3)

Pako
Title: Re: EventGhost (remote control and event listener)
Post by: derausgewanderte on November 03, 2013, 03:03:42 PM
thanks for getting back so quickly.

I point the webbrowser to the www-musicbee folder with your index.html on the PC that runs MB.
eg. http://192.168.2.105:8888/
It's a WP8 and runs the latest IE which can do html5.

I've just tried both IE and FF on my PC and get the same page with the same behavior that none of the buttons work. It's the same web page you pictured above (#32) but it is missing the MB icon and it reads that MB is OFF, irrespective of whether MB is running or off.

edit: there is one difference. while from the WP8 phone nothing appears in the log in EG, the commands sent via pressing the buttons on the web page list the commands in EG. However, it does not do anything to MB and still reads MB is off on the page.

edit1: one button actually works both from a PC or the WP8 and that is the Windows Vol button. That turns Vol on or Off and the second slider changes the volume.

I think this is getting closer. Looks like some of the actions in MB are not associated with HotKeys or not set on global?

edit2: no luck with resetting MB.

edit3: so here is how I got it to work.
1) I removed the plugins in EG
2) then loaded them again through configuration/add plugin (what I noticed is that an actions folder for MB was created, however NOT for the webserver)
3) I saved the EG settings as something other than default and closed EG.
4) I opened your musicbee-webserver xml file and copied the Folder sections of MB and the webserver and pasted them into the EG settings file (I found out that keeping the MB folder that was created in EG didn't work, therefore I overwrote the one in my EG settings with yours).
5) saved the modified EG settings and opened EG. The plugins loaded with the appropriate Folders with actions.
Everything is working great. Beautiful. thank you!!

So it seems that EG has issues loading your xml file. There was no way for me to get this to work, no matter what I tried. Only way was to start a new EG settings file and then copying your sections over.

edit4: I've noticed that artist image only shows when I pause and just shows a black square when I play (works fine within a browser on the PC that runs MB though). Tried different browsers on the phone but still the same issue with the artist image.
Ok, just confirmed this issue from other PCs on the LAN and also have the issue.
Hmm, it works perfectly fine from an Android device using Chrome.
Also works from Firefox on a different PC. The other browsers I tried on the WP8 must be just wrappers for IE.
Therefore seems to be an issue with IE. Wonder whether there is a simple fix in the index.html to address this?
The star ratings also do not show up.

Also, the phone gets really hot when on the page. Could it be that the constant polling of the song position is the reason for that?

thank you
Title: Re: EventGhost (remote control and event listener)
Post by: derausgewanderte on November 03, 2013, 09:36:06 PM
so after I got everything working (except the artist image), now I have a different problem. Whenever I launch the webpage on the phone the PC running MB throws an error. Looks like something with the EG plugin.

Eg2MbMessages
unhandled exception has occured in your application.
Error during serialization or deserialization using JSON JavaScriptSerializer. The length of the string exceeds the value set on the maxJsonLength property.

See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.

************** Exception Text **************
System.NullReferenceException: Object reference not set to an instance of an object.
   at MusicBeeEgPlugin.MessageWindow.IsLocalPath(String pth)
   at MusicBeeEgPlugin.MessageWindow.WndProc(Message& message)
   at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
   at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
   at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

I reinitialized everything (uninstalled, removed setting files, reinstalled) still there.
Note that I can just ignore this message or continue and everything is working. It only happens on the first initialization and then is silent.

Title: Re: EventGhost (remote control and event listener)
Post by: Pako on November 04, 2013, 10:39:27 AM
I thank you for your interest in the plugin and also for your patience during installation.
It would be very difficult to help you remotely.

Also, the phone gets really hot when on the page. Could it be that the constant polling of the song position is the reason for that?
Yes, probably yes.
But it's not just a matter of position. The script is regularly asked whether "anything new?". If yes, do update page. At the same time it asking for a position.
Now there is a timeout 500 ms. You can try to extend this interval.
It is on line 137 in file script.js.

so after I got everything working (except the artist image), now I have a different problem. Whenever I launch the webpage on the phone the PC running MB throws an error. Looks like something with the EG plugin.

Eg2MbMessages
unhandled exception has occured in your application.
Error during serialization or deserialization using JSON JavaScriptSerializer. The length of the string exceeds the value set on the maxJsonLength property.

See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.

************** Exception Text **************
System.NullReferenceException: Object reference not set to an instance of an object.
   at MusicBeeEgPlugin.MessageWindow.IsLocalPath(String pth)
   at MusicBeeEgPlugin.MessageWindow.WndProc(Message& message)
   at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
   at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
   at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

I reinitialized everything (uninstalled, removed setting files, reinstalled) still there.
Note that I can just ignore this message or continue and everything is working. It only happens on the first initialization and then is silent.


I would like removed this inconvenience, but I have a little information and in my case this does not happen.
It might help to attach here the corresponding parts of files ErrorLog.dat (MusicBee debug log) and <USER>\AppData\Roaming\MusicBee\EventGhost\DebugLog.txt (mb_EgPlugin debug log).

Pako
Title: Re: EventGhost (remote control and event listener)
Post by: derausgewanderte on November 05, 2013, 12:38:19 AM
thank you!
before I start I wanted to thank you again. As I wrote, it is working with just two problems right now:
a) JSON error
b) no artist image on IE browsers

Took me a while until I figured out how to keep the debug in the plugin on. MB was picky and turned it off for some reason. Once I changed the debug value in Settings.xml in the C:\Users\MyName\AppData\Roaming\MusicBee\EventGhost folder, it started writing a debug file.

Don't know how to add a file here, so I will paste this in here. It's not too long.
What I did. Started EG. Opened www on Phone and tapped the run MB button.

this is a log from within EG:
-----------------------------------
Code
 ---> Welcome to EventGhost <---
MB.Run
   MusicBee: Run MusicBee
      MusicBee: Run MusicBee
MusicBee.PluginStartup
   Webserver - variables initialization
      Webserver: Set temporary value: mbRunning: True
      Change Master Volume: 0.00 %
      Webserver: Set temporary value: Volume: {eg.result}
      MusicBee: Now playing command: Get artwork thumbnail: 128
      Webserver: Set temporary value: thumbnail: {eg.result}
      MusicBee: Player command: Get volume
      Webserver: Set temporary value: VolumeLevelChanged: {str(eg.result)}
      MusicBee: Player command: Get mute
      Webserver: Set temporary value: mute: {("False","True")[eg.result]}
      MusicBee: Now playing command: Get file tag: Album
      Webserver: Set temporary value: album: {eg.result}
      MusicBee: Now playing command: Get file tag: Artist
      Webserver: Set temporary value: artist: {eg.result}
      MusicBee: Now playing command: Get file tag: TrackTitle
      Webserver: Set temporary value: trackTitle: {eg.result}
      MusicBee: Player command: Get play state
      Webserver: Set temporary value: playstate: {eg.result}
      Webserver: Set clients flags: tracks
      MusicBee: Now playing command: Get file tag: Rating
      Webserver: Set temporary value: rating: {eg.result}
      MusicBee: Now playing command: Get file tag: Year
      Webserver: Set temporary value: year: {eg.result}
      MusicBee: Now playing command: Get track info
      Webserver: Set temporary value: info: {eg.result}
      MusicBee: Player command: Get shuffle
      Webserver: Set temporary value: shuffle: {("False","True")[eg.result]}
      MusicBee: Player command: Get repeat mode
      Webserver: Set temporary value: repeat: {eg.result}
      Get Mute Status
      Webserver: Set temporary value: sysMute: {("False","True")[eg.result]}
MB.play/pause
   MusicBee: Player command: Play/Pause
      MusicBee: Player command: Play/Pause
MusicBee.PlayStateChanged.Playing u"E:\Musik\L\Lisa Hannigan\Live at Fingerprints (2009)\02 - Splishy Splashy.flac"
   Webserver: Set temporary value: playstate: {eg.event.suffix.split(".")[-1]}
      Webserver: Set temporary value: playstate: {eg.event.suffix.split(".")[-1]}
MusicBee.TrackChanged [u'E:\\Musik\\L\\Lisa Hannigan\\Live at Fingerprints (2009)\\02 - Splishy Splashy.flac', u'Splishy Splashy\nLisa Hannigan\nLive at Fingerprints']
   Webserver: Set track infos
      MusicBee: Now playing command: Get file tag: TrackTitle
      Webserver: Set temporary value: trackTitle: {eg.result}
      MusicBee: Now playing command: Get file tag: Artist
      Webserver: Set temporary value: artist: {eg.result}
      MusicBee: Now playing command: Get file tag: Album
      Webserver: Set temporary value: album: {eg.result}
      MusicBee: Now playing command: Get file tag: Rating
      Webserver: Set temporary value: rating: {eg.result}
      MusicBee: Now playing command: Get file tag: Year
      Webserver: Set temporary value: year: {eg.result}
      MusicBee: Now playing command: Get track info
      Webserver: Set temporary value: info: {eg.result}
   Webserver: Set temporary value: thumbnail: {eg.result}
      MusicBee: Now playing command: Get artwork thumbnail: 128
      Webserver: Set temporary value: thumbnail: {eg.result}
MB.stop
   MusicBee: Player command: Stop
      MusicBee: Player command: Stop
MusicBee.PlayStateChanged.Stopped u"E:\Musik\L\Lisa Hannigan\Live at Fingerprints (2009)\02 - Splishy Splashy.flac"
   Webserver: Set temporary value: playstate: {eg.event.suffix.split(".")[-1]}
      Webserver: Set temporary value: playstate: {eg.event.suffix.split(".")[-1]}
-----------------------------------

This is the log from C:\Users\MyName\AppData\Roaming\MusicBee\EventGhost\DebugLog.txt
Note that I added two lines. 1) when the error occurred. 2) when I continued and pushed the play button
-----------------------------------
Code
 2013-11-04 19:13:20   PLUGIN STARTED - MusicBee version: 2_1; API revision: 33; Interface version: 29; Plugin version: 0.0.5
2013-11-04 19:13:20   SENDING:  0x00000000  PluginStartup|4718644
2013-11-04 19:13:23   WM_APP+1  0x00004952  0x00000080
2013-11-04 19:13:23   SENDING:  0x00004901  |iVBORw0KGgoAAAANSUhEUgAAAIAAAACACAIAAABMXPacAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsM
2013-11-04 19:13:23   WM_APP+1  0x00000024  0x00000000
2013-11-04 19:13:23   WM_APP+1  0x0000000d  0x00000000
2013-11-04 19:13:23   WM_APP+1  0x00004a2b  0x0000001e
2013-11-04 19:13:23   SENDING:  0x00004a01  |Live at Fingerprints
2013-11-04 19:13:23   WM_APP+1  0x00004b2b  0x00000020
2013-11-04 19:13:23   SENDING:  0x00004b01  |Lisa Hannigan
2013-11-04 19:13:23   WM_APP+1  0x00004c2b  0x00000041
2013-11-04 19:13:23   SENDING:  0x00004c01  |Splishy Splashy
2013-11-04 19:13:23   WM_APP+1  0x0000001d  0x00000000
2013-11-04 19:13:23   WM_APP+1  0x00004d2b  0x0000004b
2013-11-04 19:13:23   WM_APP+1  0x00004e2b  0x00000058
2013-11-04 19:13:23   SENDING:  0x00004e01  |2009 11 17
2013-11-04 19:13:23   WM_APP+1  0x00004f56  0x00000000
2013-11-04 19:13:23   SENDING:  0x00004f01  |FLAC 44.1 kHz, 866k, Stereo, 3:37
2013-11-04 19:13:23   WM_APP+1  0x0000000f  0x00000000
2013-11-04 19:13:23   WM_APP+1  0x0000001e  0x00000000
2013-11-04 19:13:23   WM_APP+1  0x0000503f  0x00000000
2013-11-04 19:13:23   SENDING:  0x00005003  |{"Recently Added":"E:\\Musik\\MusicBee\\Playlists\\Recently Added.xautopf","Recently Played":"E:\\M
2013-11-04 19:13:23   WM_APP+1  0x00005157  0x00000000
2013-11-04 19:13:23   SENDING:  0x00005103  |{}
2013-11-04 19:13:24   WM_APP+1  0x00005247  0x00000000

            ##this is where the JSON error message shows up.

            ##this is where I start playing the currently highlighted song by tapping the play button on the Phone.

2013-11-04 19:16:23   WM_APP+1  0x00000000  0x00000000
2013-11-04 19:16:23   SENDING:  0x00000001  PlayStateChanged.Playing|E:\Musik\L\Lisa Hannigan\Live at Fingerprints (2009)\02 - Splishy Splashy.f
2013-11-04 19:16:23   SENDING:  0x00000002  E:\Musik\L\Lisa Hannigan\Live at Fingerprints (2009)\02 - Splishy Splashy.flac|Splishy Splashy<LF>Li
2013-11-04 19:16:23   WM_APP+1  0x0000532b  0x00000041
2013-11-04 19:16:23   SENDING:  0x00005301  |Splishy Splashy
2013-11-04 19:16:23   WM_APP+1  0x0000542b  0x00000020
2013-11-04 19:16:23   SENDING:  0x00005401  |Lisa Hannigan
2013-11-04 19:16:23   WM_APP+1  0x0000552b  0x0000001e
2013-11-04 19:16:23   SENDING:  0x00005501  |Live at Fingerprints
2013-11-04 19:16:23   WM_APP+1  0x0000562b  0x0000004b
2013-11-04 19:16:23   WM_APP+1  0x0000572b  0x00000058
2013-11-04 19:16:23   SENDING:  0x00005701  |2009 11 17
2013-11-04 19:16:23   WM_APP+1  0x00005856  0x00000000
2013-11-04 19:16:23   SENDING:  0x00005801  |FLAC 44.1 kHz, 866k, Stereo, 3:37
2013-11-04 19:16:23   WM_APP+1  0x00005952  0x00000080
2013-11-04 19:16:24   SENDING:  0x00005901  |iVBORw0KGgoAAAANSUhEUgAAAIAAAACACAIAAABMXPacAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsM
2013-11-04 19:16:24   WM_APP+1  0x00000053  0x00000000
2013-11-04 19:16:24   WM_APP+1  0x00000053  0x00000000
2013-11-04 19:16:25   WM_APP+1  0x00000053  0x00000000
2013-11-04 19:16:26   WM_APP+1  0x00000053  0x00000000
2013-11-04 19:16:26   WM_APP+1  0x00000053  0x00000000
-----------------------------------

crossing my fingers that you'll see something that I can do to make the error go away.
not knowing what I am talking about ( ;) ) my guess is that it has to do with this line:
SENDING:  0x00005003  |{"Recently Added":"E:\\Musik\\MusicBee\\Playlists\\Recently Added.xautopf","Recently Played":"E:\\M
possibly the JSON data range is set too small for the amount of data that is there? I read up about the error message from my previous post and people posted to increase the maxJsonLength value to address problems like this. Maybe I have to refresh or clean my Recently Played list?

just wildly guessing here  :D

edit: wow, thanks for pointing me to the debug, which let me figure this out myself!!
it is in fact the recent played list that causes the error. once I cleared my long "Now Playing" list in MB, the error message vanished. Apparently that list had more data than maxJsonLength allowed. It turns out that I didn't even notice that the "Choose track...." button showed an empty list when tapped on the phone. That was another hint that something with the Recently Played list was amiss.

edit1: turns out there is a "prune played tracks: keep the last xy tracks" under Preferences/Now Playing in MB (what a beautiful program!). My list was over 350songs long when the error showed up. Will play with the pruning value to still keep a decent Recently Played list and not cause the error.

edit2: It certainly is the Recently Played list. When I empty it and there is nothing in MB in that list it throws an error as well (can't find object).
The problem with the Json error is deeper though I think. When I play a song from the music collection the Now Playing list consists of ALL songs in my library (>50k). That is because I've set Play Now action to clear list and play all tracks. Of course your routine will choke on that and it probably wouldn't matter what size I set maxJsonLength value to. I've changed this to 'queue selected tracks and play now' which only adds the double clicked file to the list while keeping other recently played songs. This is manageable only to a certain point of course until the Json error will show up again.

Just for future reference. Where would I be able to change the maxJsonLength value to allow longer Recently Played lists?
thanks
Title: Re: EventGhost (remote control and event listener)
Post by: derausgewanderte on November 05, 2013, 01:21:35 AM
Now the only thing that bugs me is the artist image not showing on the Play button on the phone. Is there another way of pulling that from MB?
There is this www server plugin
http://getmusicbee.com/forum/index.php?topic=8366.0
which pulls the artist image from MB. Maybe I can borrow the line in that index.html file into your index.html?
This plugin works fine on my phone (however it's missing important features that you added, e.g. vol control and more). The artist image works perfectly fine with that plugin though.

What is weird is that it displays the artist image when paused, transparent underneath the play button. But it shows a black box when playing.
Title: Re: EventGhost (remote control and event listener)
Post by: Pako on November 05, 2013, 07:44:04 AM
Just for future reference. Where would I be able to change the maxJsonLength value to allow longer Recently Played lists?
I do not know. This is probably some settings in MS Visual Studio.
I will try to find out more about it.
Now the only thing that bugs me is the artist image not showing on the Play button on the phone. Is there another way of pulling that from MB?
I do not know how I can help:
I have only PC and Android smartphone available.
In all browsers album cover normally visible.
And even in MS IE too (but there are other shortcomings).
I recommend experimenting with the script.js file (keywords #thumbnail and  #playbutton).

Pako
Title: Re: EventGhost (remote control and event listener)
Post by: derausgewanderte on November 05, 2013, 09:33:30 PM
thank you. I will look at the script.js and compare to the other plugin script file to see if there are differences in handling the button behavior.
Title: Re: EventGhost (remote control and event listener)
Post by: derausgewanderte on November 10, 2013, 02:35:45 AM
thank you. I will look at the script.js and compare to the other plugin script file to see if there are differences in handling the button behavior.


well, I can't figure it out. looks all Spanish to me.
the fact that the Pause action displays the artist image with the play button superimposed clearly shows it is there. How do I invoke the same action for pressing the play button again? I don't mind having it displayed the same as the Pause action. At least it won't show a black box.

thank you

edit: tsts, right when I give up I find something.

It seems IE does not like the overlay of the playbutton with the thumbnail using float. When I take
Code
 <img style="width: 128px; height: 128px; float:left" id = "playbutton" alt=""></td> 
out of the html file (line 25) it shows the album cover fine. Of course it doesn't show the play button anymore when I hit Pause. It remains the thumbnail (album cover). But I don't mind this.

It also explains why the ratings right next to this image doesn't show either since it uses "float" in line 41.
And these are exactly the two lines that use "float" and a black box is shown instead of an image.

trying to find alternatives for float. Reading about float I certainly find issues and problems galore with IE (mostly older versions).

If you have any suggestions or ideas on how to change the IE behavior let me know.

ps, changing the timing to 1000 works fine and the phone is not getting hot anymore - thanks!
and thank you again for the wonderful plugin. works fantastic on my Lumia 920
Title: Re: EventGhost (remote control and event listener)
Post by: Pako on November 10, 2013, 08:31:59 AM
I thank you, that you devote so much effort into my plugin.
Perhaps other users will benefit from it.
I did some research and I found something that might be worth a try.
Please try this modification:
Code
<img style="width: 128px; height: 128px; float: left; display: inline" id = "playbutton" alt=""></td>

Thanks, Pako
Title: Re: EventGhost (remote control and event listener)
Post by: Pako on November 10, 2013, 09:28:48 AM
A new version (0.0.6) released.
Added two actions to group Now playing list command: Move track and Move track (offset).

Pako
Title: Re: EventGhost (remote control and event listener)
Post by: derausgewanderte on November 10, 2013, 05:14:15 PM
I did some research and I found something that might be worth a try.
Please try this modification:
Code
<img style="width: 128px; height: 128px; float: left; display: inline" id = "playbutton" alt=""></td>

Thanks, Pako
thanks for checking into this. I get the identical behavior, with or without the "display: inline".
When in the "play" state it shows a black box, when in the "pause" state it shows an overlay of the playbutton with the cover thumbnail underneath.
I read in some comments about the float issues that it is something in the css code.
What is really strange is that it works for Pause state, in which case the playbutton sits on top of the cover thumbnail (from my limited understanding). But it does not work for the Play state when the cover thumbnail should show. There should really be no difference, right?
almost sounds like a hiccup in the sequence of these two that IE gets messed up.

edit: I also noticed that the "repeat" button and the "shuffle" button never change icon states. The buttons however do work and change the state in MB, although I cannot invoke the repeat one (it's either all or none). This is possibly related to the playbutton, thumbnail issue.


cheers!
Title: Re: EventGhost (remote control and event listener)
Post by: Pako on November 11, 2013, 10:30:47 AM
What is really strange is that it works for Pause state, in which case the playbutton sits on top of the cover thumbnail (from my limited understanding). But it does not work for the Play state when the cover thumbnail should show. There should really be no difference, right?
We can try something.
Please download the following file:
https://dl.dropboxusercontent.com/u/4167851/www-musicbee.zip
Unzip it and files script.js and index.html place to the appropriate place.
edit: I also noticed that the "repeat" button and the "shuffle" button never change icon states. The buttons however do work and change the state in MB,
Here I do not know what to do. Too bad, that for Lumia 920 there is no functional browser.
although I cannot invoke the repeat one (it's either all or none). This is possibly related to the playbutton, thumbnail issue.
No, this is not a bug of plugin or a bug of browser. Unfortunately this is not possible.
This is a known bug of MusicBee program, but the author does not want to do a fix for backward compatibility.
You can find something about it here in the forum.

Pako
Title: Re: EventGhost (remote control and event listener)
Post by: derausgewanderte on November 11, 2013, 10:39:24 PM
We can try something.
Please download the following file:
Bingo!, that works. I see you changed something in the script file related to naming of the stored data:image field. What is the difference exactly?

Here I do not know what to do. Too bad, that for Lumia 920 there is no functional browser.
totally agree with you here. My only hope is that there may be at least a browser alternative available on my RT at some point. I am not very hopeful for WP8.

No, this is not a bug of plugin or a bug of browser. Unfortunately this is not possible.
got it.

thank you for spending your time for a single user request (and blindfolded too). Very much appreciated!
Title: Re: EventGhost (remote control and event listener)
Post by: Pako on November 12, 2013, 10:05:04 AM
I see you changed something in the script file related to naming of the stored data:image field. What is the difference exactly?
I realized that it seems, that MS IE has a problem with the blank image.
I previously used the smallest possible (see, for example What's the valid way to include an image with no src? (http://stackoverflow.com/questions/5775469/whats-the-valid-way-to-include-an-image-with-no-src)).
Now I've done (for sure) the appropriate blank images (png) for all the necessary dimensions.

Pako

Title: Re: EventGhost (remote control and event listener)
Post by: derausgewanderte on November 14, 2013, 02:36:20 AM
made a few new icons to match my WP8 look.

Paused:
(http://i39.tinypic.com/28c29o1.png)

and with an icon on the phone
(http://i44.tinypic.com/fd93pj.png)
thank you again.
Title: Re: EventGhost (remote control and event listener)
Post by: Pako on November 14, 2013, 11:45:48 AM
Nice!
I naturally assumed, that the appearance (some) users will to adapt.
And because between the MusicBee and smartphone is also EventGhost,
you can customize not only the look. You can even to add (or remove) also functions and change behavior.

Pako
Title: Re: EventGhost (remote control and event listener)
Post by: derausgewanderte on November 15, 2013, 03:54:10 AM
silly question. I was able to find every color setting except for the blue slider. Where is that set? I am going blind from trying to find it ;)
Title: Re: EventGhost (remote control and event listener)
Post by: Pako on November 15, 2013, 01:32:52 PM
I was able to find every color setting except for the blue slider. Where is that set?
I am somewhat confused.
I've never used the blue color.

Pako
Title: Re: EventGhost (remote control and event listener)
Post by: derausgewanderte on November 16, 2013, 12:01:57 AM
I was able to find every color setting except for the blue slider. Where is that set?
I am somewhat confused.
I've never used the blue color.

Pako

ok, when looking at your post on the previous page I realized that it's just picking the background color then. On my phone (even though it cannot be seen that way in the image above) the color of the slide ruler is a tint lighter than the background color and hence I thought there is a another color defined for the slide ruler towards the left of the slider icon. IE apparently does not pick the MB or Win icons for the slider as you can see from my image (just a small black rectangle). Thought I missed something.

thank you!
Title: Re: EventGhost (remote control and event listener)
Post by: Bush on June 09, 2014, 02:00:35 PM
Hi is it possible send an event to eventghost when a device has fully synced with this plugin? Thanks.
Title: Re: EventGhost (remote control and event listener)
Post by: Pako on June 09, 2014, 02:27:47 PM
Hi is it possible send an event to eventghost when a device has fully synced with this plugin? Thanks.
Thank you for your interest. It seemed that no one needs this plugin.
Unfortunately, I do not use the sync function (I do not have the appropriate device).
If you do not have any events disabled (in the plugin settings), then all events are passed to EventGhost.
But I am afraid that there is no such event as you need.
You can submit a "feature request". In my observation, Steven willingly responds to meaningful requirements.
Pako
Title: Re: EventGhost (remote control and event listener)
Post by: Bush on June 09, 2014, 05:45:50 PM
Thanks Ill sugest it.
Title: Re: EventGhost (remote control and event listener)
Post by: Pako on June 09, 2014, 06:18:10 PM
i have added this event notification to the next v2.4 update
SynchCompleted = 32
It seems that very soon will make your wishes fulfilled.
Once this event is available, you will receive a "generic event 32".
I will add it to the EventGhost plugin ASAP. Then you will receive an event "SynchCompleted".

Pako
Title: Re: EventGhost (remote control and event listener)
Post by: Bush on June 09, 2014, 09:28:53 PM
Thanks. Im delighted. This program is the best.
Title: Re: EventGhost (remote control and event listener)
Post by: Pako on June 12, 2014, 09:44:53 AM
Beta version 2.4.5275 (http://musicbee.niblseed.com/V2_4/MusicBee_Exe_Patched.zip) provides already an event SynchCompleted (currently in default form):(http://i60.tinypic.com/2d98zva.png)
Pako
Title: Re: EventGhost (remote control and event listener)
Post by: Bush on June 12, 2014, 08:45:51 PM
Thanks, ill check it out
Title: Re: EventGhost (remote control and event listener)
Post by: derausgewanderte on June 24, 2014, 12:17:27 AM
still using it on two PCs. Great plugin and I don't want to miss it
thank you again
cheers!
Title: Re: EventGhost (remote control and event listener)
Post by: EpicCyndaquil on August 20, 2014, 05:10:21 AM
I'd like to make a Launchy plugin to control MusicBee in a fairly specific way, and wanted to ask you if it would be possible to do with the utilization of your Musicbee listener. Launchy plugins can also be developed in Python, so it should be fairly simple - I'm just having trouble understanding your plugin, most likely because I only somewhat understand the Python portion and have no idea what's going on in the compiled dll.

I'd like to be able to type "musicbee <song title>" and scroll through the matches (this part I can handle). When I hit Enter on a match, I'd like for musicbee to queue this song next, then skip to the next track (so it plays the track I searched for). What would I need to include in my Python code to do these basic things?

Thanks for the awesome plugin and I appreciate any help you can give me!
Title: Re: EventGhost (remote control and event listener)
Post by: Pako on August 20, 2014, 06:21:34 AM
I'm not sure if I understand correctly.
I think it would be possible to use EventGhost plugin (only C# part) for your purpose, but it would not be optimal.
I think MusicBeeIPC - Control MusicBee with Autohotkey, Python, Java, etc (http://getmusicbee.com/forum/index.php?topic=11492.0I'm not sure if I understand correctly.) plugin is much better for you.

Pako


Title: Re: EventGhost (remote control and event listener)
Post by: Bush on August 30, 2014, 09:50:50 PM
Beta version 2.4.5275 (http://musicbee.niblseed.com/V2_4/MusicBee_Exe_Patched.zip) provides already an event SynchCompleted (currently in default form):(http://i60.tinypic.com/2d98zva.png)
Pako

How do I set this up. Ive tried and cant get it to work?
Title: Re: EventGhost (remote control and event listener)
Post by: Pako on August 31, 2014, 08:56:38 AM
How do I set this up. Ive tried and cant get it to work?
I do not understand your problem.
There is no need to set anything anywhere.
What version of the plugin and MusicBee you using?
I have the latest version MusicBee (2.4.5349) and EventGhost plugin version 0.0.13.0.
Now I've tried it and it works correctly.

Pako
Title: Re: EventGhost (remote control and event listener)
Post by: Bush on August 31, 2014, 10:10:46 PM
Ye I have the latest versions but nothing shows up in eventghost when a sync finishes. Weird.
Title: Re: EventGhost (remote control and event listener)
Post by: Pako on September 01, 2014, 07:48:52 AM
Ye I have the latest versions but nothing shows up in eventghost when a sync finishes. Weird.
At this moment I can not find any explanation of how this is possible.
If I will have some idea, so I will tell it here.
At this point I would like to know if anyone else has the same problem.
Or vice versa, if all other users regularly received this event (like me).
Pako
Title: Re: EventGhost (remote control and event listener)
Post by: Pako on September 01, 2014, 08:35:08 AM
Now I thought of something, but I believe that this is not the case ...
I suppose you have not checked the checkbox "Log only assigned and activated events" ?

Pako
Title: Re: EventGhost (remote control and event listener)
Post by: Bush on September 08, 2014, 09:33:07 PM
Ye I dont have that checked. I might try uninstall and reinstall everything.
Title: Re: EventGhost (remote control and event listener)
Post by: Pako on March 07, 2015, 05:09:49 PM
The new version (0.0.15) of the plugin is available.
Added actions Get output devices and Set output device.

Pako
Title: Re: EventGhost (remote control and event listener)
Post by: leit on March 20, 2015, 04:22:55 PM
Unfortunately musicbee crashes with the new version of the plugin on startup.

I am using a fresh windows 7 64bit installation. Is there anything else I need for your plugin to work?

thanks for your great work
cheers
Title: Re: EventGhost (remote control and event listener)
Post by: Pako on March 20, 2015, 07:13:03 PM
I do not know what's wrong.
I have MusicBee version 2.5.5524.
I just downloaded and installed EventGhost plugin.
Everything works normally.
I have a 64 bit Windows 8.1.

Pako
Title: Re: EventGhost (remote control and event listener)
Post by: leit on March 21, 2015, 05:30:24 PM
I installed the 2.5.5524 version of musicbee and the plugin works without any problems.

I was using 2.4.5404 before and this version was causing the problem. You should probably mention this in your installer, because you still get the 2.4.5404 version of musicbee when you press the download button on the official page.

thanks for your quick reply
leit
Title: Re: EventGhost (remote control and event listener)
Post by: Pako on March 21, 2015, 06:29:20 PM
Thank you for the information.
But I'll do nothing for it.
It seems that soon will be released the official version 2.5 ...

Pako
Title: Re: EventGhost (remote control and event listener)
Post by: phred on March 27, 2015, 06:34:44 PM
@Pako - please see this post for a user's problem.  I couldn't move it to this thread.
http://getmusicbee.com/forum/index.php?topic=15408.0