Hello everyone.
I just upgraded from Mediamonkey3 to 4 (4.0.5.1496), removed the eventghost.vbs from the auto folder and installed the latest (0.3.3) EG script by Pako. Now a couple of things dont work anymore:
I let Pako's script start MM by using the load playlist by name command, which works. I can also let it quit, but for example stop, pause or next track do not work. I dont see any errors in EG log.
If I let the script first start MM with the start MM command, wait until MM is loaded and minimized by EG and then let MM load a playlist by name thru EG, I can use the pause,stop, skip commands successfully.
So what I do now is tolet EG start MM, then wait a safe amount of time, like 8 seconds, and then use the load playlist by name command - which is not very elegant of course?!
When I execute the start MM command while MM is already running (thru a previous start MM command), I see this in the log:
- Code: Select all
Exception in thread MediaMonkeyWorkerThread:
Traceback (most recent call last):
File "threading.pyc", line 532, in __bootstrap_inner
File "threading.pyc", line 484, in run
File "C:\Program Files (x86)\tools\EventGhost\eg\Classes\ThreadWorker.py", line 356, in __MainLoop
self.Finish()
File "C:\Program Files (x86)\tools\EventGhost\plugins\MediaMonkey\__init__.py", line 541, in Finish
if self.events:
AttributeError: 'MediaMonkeyWorkerThread' object has no attribute 'events'
Then all commands are not working again, I cannot pause,stop, skip or do anything. Only the quit function works then. Then I can again start MM and commands are working again.
And I modified the detection code around line 1326 with the shorter version
- Code: Select all
hwnd = FindWindowEx(None, None, "TFMainWindow", "MediaMonkey")
return hwnd > 0
Any ideas to make this more robust?
Thanks for looking!
RURon