Notice: This forum has been recovered from an old backup, so some content, links, and dates may be outdated. The forum is currently read-only while we restore sign-in and registration functionality. Details

If you find this forum valuable and would like to help keep it online, donations to help cover hosting and domain costs are greatly appreciated, but never expected. You can support the forum through Buy Me a Coffee or Ko-fi. Thank you for helping preserve the EventGhost community.

MediaMonkey

Questions and comments specific to a particular plugin should go here.
nonob
Experienced User
Posts: 76
Joined: Tue Dec 06, 2011 6:52 am

Re: MediaMonkey

Post by nonob »

But, i have another issue, if i close mediamonkey, i have a looping red errors lines in evenghost log, which doens't stop until i restart mediamonkey.., but so remote control doesn't work anymore, i have to retsart evenghost if i want it works again!
Pending i downgraded mediamonkey plugin from 0.3.3 to 0.2.12, and it works now..
User avatar
Pako
Plugin Developer
Posts: 2294
Joined: Sat Nov 11, 2006 1:31 pm
Location: Czech Republic
Contact:

Re: MediaMonkey

Post by Pako »

poleguy wrote:I noticed a bug causing errors to be spewed to the EventGhost screen when MediaMonkey was not running.
I added three lines to MediaMonkey\__init__.py fix this. Without this fix, the error flag is left set, and EventGhost apparently doesn't like this.
What does it mean "the error flag is left set"? Where I can see it?
However, I tried to find a simpler way to test that MM is running.
You can try it?

Code: Select all

    def isRunning(self): # the fastest way I found ...
        hwnd = FindWindowEx(None, None, "TFMainWindow", "MediaMonkey")
        return hwnd > 0
(this is a replacement of the function on line 1328)
poleguy wrote:I also had a problem where every time I got a play event it would trigger a Keyboard Space command, which would then stop the track, so I had to disable that event. I'm not sure why that happened, but if that is the default way this plugin comes up, that could be improved.
This is weird. I get only "Paused" and "Unpaused" events.

Pako
RURon
Posts: 6
Joined: Sat Feb 04, 2012 8:35 am

Re: MediaMonkey

Post by RURon »

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
User avatar
GBWebmaster
Experienced User
Posts: 115
Joined: Wed Sep 24, 2008 5:34 am

Re: MediaMonkey

Post by GBWebmaster »

GBWebmaster wrote:I found a solution:
When I start MM with the event "MediaMonkey: Start MediaMonkey", then I get a lot of problems,
when I start MM with the event "Start Program: MediaMonkey.exe", then everything looks great - as yet.
Hy RURon,
have you tried the solution above. For me, it works great now ...
F├╝r den, der nie das Rudel anf├╝hrt,
wird sich die Aussicht nicht ändern.
RURon
Posts: 6
Joined: Sat Feb 04, 2012 8:35 am

Re: MediaMonkey

Post by RURon »

Hello GBWebmaster,

thanks for your hint. It seems to work (mostly). What I observe with your method: When I manually exit MM, EG shows these errors in it's log:
This is probably only a cosmetic error. I'm happy that it works at all :-)

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'
User avatar
GBWebmaster
Experienced User
Posts: 115
Joined: Wed Sep 24, 2008 5:34 am

Re: MediaMonkey

Post by GBWebmaster »

RURon wrote: When I manually exit MM, ...
Why don't you stop MM with the action "MediaMonkey: Exit/Disconnect MediaMonkey: True". I don't know these errors ...


Gruß GBWebmaster
F├╝r den, der nie das Rudel anf├╝hrt,
wird sich die Aussicht nicht ändern.
RURon
Posts: 6
Joined: Sat Feb 04, 2012 8:35 am

Re: MediaMonkey

Post by RURon »

...well, sometimes I sit at the computer and just close MM manually...you know...the old-school way ;-)

I also noticed I have trouble sending the commands for play next or previous song (with the MM plugin functions) - just doesnt do anything (no errors either) but often locks up MM completely (freeze)...

Now I set up global hotkeys in MM for next and previous track and let EG send these hotkeys instead of calling the MM plugin functions. (I am not lucky in sending shortcut keys to MM when they are not global)

MM3 worked without any problems, but internet tagging doesnt work anymore...oh well!

Good day to everyone :)
nonob
Experienced User
Posts: 76
Joined: Tue Dec 06, 2011 6:52 am

Re: MediaMonkey

Post by nonob »

But, i have another issue, if i close mediamonkey, i have a looping red errors lines in evenghost log, which doens't stop until i restart mediamonkey.., but so remote control doesn't work anymore, i have to retsart evenghost if i want it works again!

Here is the log :

Code: Select all

Task.ClosedWindow.MediaMonkey
    Traceback (most recent call last) (1568):
      File "C:\Program Files\EventGhost\eg\Classes\Scheduler.py", line 137, in MainLoop
        func(*args, **kwargs)
      File "C:\Program Files\EventGhost\plugins\MediaMonkey\__init__.py", line 1339, in checkIsRunning
        if not self.isRunning():
      File "C:\Program Files\EventGhost\plugins\MediaMonkey\__init__.py", line 1330, in isRunning
        hwnd = FindWindowEx(None, hwnd, "Winamp v1.x", None)
    error: (2, 'FindWindowEx', 'Le fichier sp\xe9cifi\xe9 est introuvable.')
    Traceback (most recent call last) (1568):
      File "C:\Program Files\EventGhost\eg\Classes\Scheduler.py", line 137, in MainLoop
        func(*args, **kwargs)
      File "C:\Program Files\EventGhost\plugins\MediaMonkey\__init__.py", line 1339, in checkIsRunning
        if not self.isRunning():
      File "C:\Program Files\EventGhost\plugins\MediaMonkey\__init__.py", line 1330, in isRunning
        hwnd = FindWindowEx(None, hwnd, "Winamp v1.x", None)
    error: (2, 'FindWindowEx', 'Le fichier sp\xe9cifi\xe9 est introuvable.')
    Traceback (most recent call last) (1568):
      File "C:\Program Files\EventGhost\eg\Classes\Scheduler.py", line 137, in MainLoop
        func(*args, **kwargs)
      File "C:\Program Files\EventGhost\plugins\MediaMonkey\__init__.py", line 1339, in checkIsRunning
        if not self.isRunning():
      File "C:\Program Files\EventGhost\plugins\MediaMonkey\__init__.py", line 1330, in isRunning
        hwnd = FindWindowEx(None, hwnd, "Winamp v1.x", None)
    error: (2, 'FindWindowEx', 'Le fichier sp\xe9cifi\xe9 est introuvable.')
    Traceback (most recent call last) (1568):
      File "C:\Program Files\EventGhost\eg\Classes\Scheduler.py", line 137, in MainLoop
        func(*args, **kwargs)
      File "C:\Program Files\EventGhost\plugins\MediaMonkey\__init__.py", line 1339, in checkIsRunning
        if not self.isRunning():
      File "C:\Program Files\EventGhost\plugins\MediaMonkey\__init__.py", line 1330, in isRunning
        hwnd = FindWindowEx(None, hwnd, "Winamp v1.x", None)
    error: (2, 'FindWindowEx', 'Le fichier sp\xe9cifi\xe9 est introuvable.')
    Traceback (most recent call last) (1568):
      File "C:\Program Files\EventGhost\eg\Classes\Scheduler.py", line 137, in MainLoop
        func(*args, **kwargs)
      File "C:\Program Files\EventGhost\plugins\MediaMonkey\__init__.py", line 1339, in checkIsRunning
        if not self.isRunning():
      File "C:\Program Files\EventGhost\plugins\MediaMonkey\__init__.py", line 1330, in isRunning
        hwnd = FindWindowEx(None, hwnd, "Winamp v1.x", None)
    error: (2, 'FindWindowEx', 'Le fichier sp\xe9cifi\xe9 est introuvable.')
    Traceback (most recent call last) (1568):
      File "C:\Program Files\EventGhost\eg\Classes\Scheduler.py", line 137, in MainLoop
        func(*args, **kwargs)
      File "C:\Program Files\EventGhost\plugins\MediaMonkey\__init__.py", line 1339, in checkIsRunning
        if not self.isRunning():
      File "C:\Program Files\EventGhost\plugins\MediaMonkey\__init__.py", line 1330, in isRunning
        hwnd = FindWindowEx(None, hwnd, "Winamp v1.x", None)
    error: (2, 'FindWindowEx', 'Le fichier sp\xe9cifi\xe9 est introuvable.')
    Traceback (most recent call last) (1568):
      File "C:\Program Files\EventGhost\eg\Classes\Scheduler.py", line 137, in MainLoop
        func(*args, **kwargs)
      File "C:\Program Files\EventGhost\plugins\MediaMonkey\__init__.py", line 1339, in checkIsRunning
        if not self.isRunning():
      File "C:\Program Files\EventGhost\plugins\MediaMonkey\__init__.py", line 1330, in isRunning
        hwnd = FindWindowEx(None, hwnd, "Winamp v1.x", None)
    error: (2, 'FindWindowEx', 'Le fichier sp\xe9cifi\xe9 est introuvable.')
    Traceback (most recent call last) (1568):
      File "C:\Program Files\EventGhost\eg\Classes\Scheduler.py", line 137, in MainLoop
        func(*args, **kwargs)
      File "C:\Program Files\EventGhost\plugins\MediaMonkey\__init__.py", line 1339, in checkIsRunning
        if not self.isRunning():
      File "C:\Program Files\EventGhost\plugins\MediaMonkey\__init__.py", line 1330, in isRunning
        hwnd = FindWindowEx(None, hwnd, "Winamp v1.x", None)
    error: (2, 'FindWindowEx', 'Le fichier sp\xe9cifi\xe9 est introuvable.')
    Traceback (most recent call last) (1568):
      File "C:\Program Files\EventGhost\eg\Classes\Scheduler.py", line 137, in MainLoop
        func(*args, **kwargs)
      File "C:\Program Files\EventGhost\plugins\MediaMonkey\__init__.py", line 1339, in checkIsRunning
        if not self.isRunning():
      File "C:\Program Files\EventGhost\plugins\MediaMonkey\__init__.py", line 1330, in isRunning
        hwnd = FindWindowEx(None, hwnd, "Winamp v1.x", None)
    error: (2, 'FindWindowEx', 'Le fichier sp\xe9cifi\xe9 est introuvable.')
    Traceback (most recent call last) (1568):
      File "C:\Program Files\EventGhost\eg\Classes\Scheduler.py", line 137, in MainLoop
        func(*args, **kwargs)
      File "C:\Program Files\EventGhost\plugins\MediaMonkey\__init__.py", line 1339, in checkIsRunning
        if not self.isRunning():
      File "C:\Program Files\EventGhost\plugins\MediaMonkey\__init__.py", line 1330, in isRunning
        hwnd = FindWindowEx(None, hwnd, "Winamp v1.x", None)
    error: (2, 'FindWindowEx', 'Le fichier sp\xe9cifi\xe9 est introuvable.')
    Traceback (most recent call last) (1568):
      File "C:\Program Files\EventGhost\eg\Classes\Scheduler.py", line 137, in MainLoop
        func(*args, **kwargs)
      File "C:\Program Files\EventGhost\plugins\MediaMonkey\__init__.py", line 1339, in checkIsRunning
        if not self.isRunning():
      File "C:\Program Files\EventGhost\plugins\MediaMonkey\__init__.py", line 1330, in isRunning
        hwnd = FindWindowEx(None, hwnd, "Winamp v1.x", None)
    error: (2, 'FindWindowEx', 'Le fichier sp\xe9cifi\xe9 est introuvable.')
    Traceback (most recent call last) (1568):
      File "C:\Program Files\EventGhost\eg\Classes\Scheduler.py", line 137, in MainLoop
        func(*args, **kwargs)
      File "C:\Program Files\EventGhost\plugins\MediaMonkey\__init__.py", line 1339, in checkIsRunning
        if not self.isRunning():
      File "C:\Program Files\EventGhost\plugins\MediaMonkey\__init__.py", line 1330, in isRunning
        hwnd = FindWindowEx(None, hwnd, "Winamp v1.x", None)
    error: (2, 'FindWindowEx', 'Le fichier sp\xe9cifi\xe9 est introuvable.')
    Traceback (most recent call last) (1568):
      File "C:\Program Files\EventGhost\eg\Classes\Scheduler.py", line 137, in MainLoop
        func(*args, **kwargs)
      File "C:\Program Files\EventGhost\plugins\MediaMonkey\__init__.py", line 1339, in checkIsRunning
        if not self.isRunning():
      File "C:\Program Files\EventGhost\plugins\MediaMonkey\__init__.py", line 1330, in isRunning
        hwnd = FindWindowEx(None, hwnd, "Winamp v1.x", None)
    error: (2, 'FindWindowEx', 'Le fichier sp\xe9cifi\xe9 est introuvable.')
    Traceback (most recent call last) (1568):
      File "C:\Program Files\EventGhost\eg\Classes\Scheduler.py", line 137, in MainLoop
        func(*args, **kwargs)
      File "C:\Program Files\EventGhost\plugins\MediaMonkey\__init__.py", line 1339, in checkIsRunning
        if not self.isRunning():
      File "C:\Program Files\EventGhost\plugins\MediaMonkey\__init__.py", line 1330, in isRunning
        hwnd = FindWindowEx(None, hwnd, "Winamp v1.x", None)
    error: (2, 'FindWindowEx', 'Le fichier sp\xe9cifi\xe9 est introuvable.')
    Traceback (most recent call last) (1568):
      File "C:\Program Files\EventGhost\eg\Classes\Scheduler.py", line 137, in MainLoop
        func(*args, **kwargs)
      File "C:\Program Files\EventGhost\plugins\MediaMonkey\__init__.py", line 1339, in checkIsRunning
        if not self.isRunning():
      File "C:\Program Files\EventGhost\plugins\MediaMonkey\__init__.py", line 1330, in isRunning
        hwnd = FindWindowEx(None, hwnd, "Winamp v1.x", None)
    error: (2, 'FindWindowEx', 'Le fichier sp\xe9cifi\xe9 est introuvable.')
    Traceback (most recent call last) (1568):
      File "C:\Program Files\EventGhost\eg\Classes\Scheduler.py", line 137, in MainLoop
        func(*args, **kwargs)
      File "C:\Program Files\EventGhost\plugins\MediaMonkey\__init__.py", line 1339, in checkIsRunning
        if not self.isRunning():
      File "C:\Program Files\EventGhost\plugins\MediaMonkey\__init__.py", line 1330, in isRunning
        hwnd = FindWindowEx(None, hwnd, "Winamp v1.x", None)
    error: (2, 'FindWindowEx', 'Le fichier sp\xe9cifi\xe9 est introuvable.')
    Traceback (most recent call last) (1568):
      File "C:\Program Files\EventGhost\eg\Classes\Scheduler.py", line 137, in MainLoop
        func(*args, **kwargs)
      File "C:\Program Files\EventGhost\plugins\MediaMonkey\__init__.py", line 1339, in checkIsRunning
        if not self.isRunning():
      File "C:\Program Files\EventGhost\plugins\MediaMonkey\__init__.py", line 1330, in isRunning
        hwnd = FindWindowEx(None, hwnd, "Winamp v1.x", None)
    error: (2, 'FindWindowEx', 'Le fichier sp\xe9cifi\xe9 est introuvable.')
    Traceback (most recent call last) (1568):
      File "C:\Program Files\EventGhost\eg\Classes\Scheduler.py", line 137, in MainLoop
        func(*args, **kwargs)
      File "C:\Program Files\EventGhost\plugins\MediaMonkey\__init__.py", line 1339, in checkIsRunning
        if not self.isRunning():
      File "C:\Program Files\EventGhost\plugins\MediaMonkey\__init__.py", line 1330, in isRunning
        hwnd = FindWindowEx(None, hwnd, "Winamp v1.x", None)
    error: (2, 'FindWindowEx', 'Le fichier sp\xe9cifi\xe9 est introuvable.')
    Task.Deactivated.EventGhost
    Task.Activated.Desktop
    Traceback (most recent call last) (1568):
      File "C:\Program Files\EventGhost\eg\Classes\Scheduler.py", line 137, in MainLoop
        func(*args, **kwargs)
      File "C:\Program Files\EventGhost\plugins\MediaMonkey\__init__.py", line 1339, in checkIsRunning
        if not self.isRunning():
      File "C:\Program Files\EventGhost\plugins\MediaMonkey\__init__.py", line 1330, in isRunning
        hwnd = FindWindowEx(None, hwnd, "Winamp v1.x", None)
    error: (2, 'FindWindowEx', 'Le fichier sp\xe9cifi\xe9 est introuvable.')
    Traceback (most recent call last) (1568):
      File "C:\Program Files\EventGhost\eg\Classes\Scheduler.py", line 137, in MainLoop
        func(*args, **kwargs)
      File "C:\Program Files\EventGhost\plugins\MediaMonkey\__init__.py", line 1339, in checkIsRunning
        if not self.isRunning():
      File "C:\Program Files\EventGhost\plugins\MediaMonkey\__init__.py", line 1330, in isRunning
        hwnd = FindWindowEx(None, hwnd, "Winamp v1.x", None)
    error: (2, 'FindWindowEx', 'Le fichier sp\xe9cifi\xe9 est introuvable.')
    Traceback (most recent call last) (1568):
      File "C:\Program Files\EventGhost\eg\Classes\Scheduler.py", line 137, in MainLoop
        func(*args, **kwargs)
      File "C:\Program Files\EventGhost\plugins\MediaMonkey\__init__.py", line 1339, in checkIsRunning
        if not self.isRunning():
      File "C:\Program Files\EventGhost\plugins\MediaMonkey\__init__.py", line 1330, in isRunning
        hwnd = FindWindowEx(None, hwnd, "Winamp v1.x", None)
    error: (2, 'FindWindowEx', 'Le fichier sp\xe9cifi\xe9 est introuvable.')
    Traceback (most recent call last) (1568):
      File "C:\Program Files\EventGhost\eg\Classes\Scheduler.py", line 137, in MainLoop
        func(*args, **kwargs)
      File "C:\Program Files\EventGhost\plugins\MediaMonkey\__init__.py", line 1339, in checkIsRunning
        if not self.isRunning():
      File "C:\Program Files\EventGhost\plugins\MediaMonkey\__init__.py", line 1330, in isRunning
        hwnd = FindWindowEx(None, hwnd, "Winamp v1.x", None)
    error: (2, 'FindWindowEx', 'Le fichier sp\xe9cifi\xe9 est introuvable.')
    Traceback (most recent call last) (1568):
      File "C:\Program Files\EventGhost\eg\Classes\Scheduler.py", line 137, in MainLoop
        func(*args, **kwargs)
      File "C:\Program Files\EventGhost\plugins\MediaMonkey\__init__.py", line 1339, in checkIsRunning
        if not self.isRunning():
      File "C:\Program Files\EventGhost\plugins\MediaMonkey\__init__.py", line 1330, in isRunning
        hwnd = FindWindowEx(None, hwnd, "Winamp v1.x", None)
    error: (2, 'FindWindowEx', 'Le fichier sp\xe9cifi\xe9 est introuvable.')
    Traceback (most recent call last) (1568):
      File "C:\Program Files\EventGhost\eg\Classes\Scheduler.py", line 137, in MainLoop
        func(*args, **kwargs)
      File "C:\Program Files\EventGhost\plugins\MediaMonkey\__init__.py", line 1339, in checkIsRunning
        if not self.isRunning():
      File "C:\Program Files\EventGhost\plugins\MediaMonkey\__init__.py", line 1330, in isRunning
        hwnd = FindWindowEx(None, hwnd, "Winamp v1.x", None)
    error: (2, 'FindWindowEx', 'Le fichier sp\xe9cifi\xe9 est introuvable.')
    Traceback (most recent call last) (1568):
      File "C:\Program Files\EventGhost\eg\Classes\Scheduler.py", line 137, in MainLoop
        func(*args, **kwargs)
      File "C:\Program Files\EventGhost\plugins\MediaMonkey\__init__.py", line 1339, in checkIsRunning
        if not self.isRunning():
      File "C:\Program Files\EventGhost\plugins\MediaMonkey\__init__.py", line 1330, in isRunning
        hwnd = FindWindowEx(None, hwnd, "Winamp v1.x", None)
    error: (2, 'FindWindowEx', 'Le fichier sp\xe9cifi\xe9 est introuvable.')
    Traceback (most recent call last) (1568):
      File "C:\Program Files\EventGhost\eg\Classes\Scheduler.py", line 137, in MainLoop
        func(*args, **kwargs)
      File "C:\Program Files\EventGhost\plugins\MediaMonkey\__init__.py", line 1339, in checkIsRunning
        if not self.isRunning():
      File "C:\Program Files\EventGhost\plugins\MediaMonkey\__init__.py", line 1330, in isRunning
        hwnd = FindWindowEx(None, hwnd, "Winamp v1.x", None)
    error: (2, 'FindWindowEx', 'Le fichier sp\xe9cifi\xe9 est introuvable.')
    Traceback (most recent call last) (1568):
      File "C:\Program Files\EventGhost\eg\Classes\Scheduler.py", line 137, in MainLoop
        func(*args, **kwargs)
      File "C:\Program Files\EventGhost\plugins\MediaMonkey\__init__.py", line 1339, in checkIsRunning
        if not self.isRunning():
      File "C:\Program Files\EventGhost\plugins\MediaMonkey\__init__.py", line 1330, in isRunning
        hwnd = FindWindowEx(None, hwnd, "Winamp v1.x", None)
    error: (2, 'FindWindowEx', 'Le fichier sp\xe9cifi\xe9 est introuvable.')
    Traceback (most recent call last) (1568):
      File "C:\Program Files\EventGhost\eg\Classes\Scheduler.py", line 137, in MainLoop
        func(*args, **kwargs)
      File "C:\Program Files\EventGhost\plugins\MediaMonkey\__init__.py", line 1339, in checkIsRunning
        if not self.isRunning():
      File "C:\Program Files\EventGhost\plugins\MediaMonkey\__init__.py", line 1330, in isRunning
        hwnd = FindWindowEx(None, hwnd, "Winamp v1.x", None)
    error: (2, 'FindWindowEx', 'Le fichier sp\xe9cifi\xe9 est introuvable.')
    Traceback (most recent call last) (1568):
      File "C:\Program Files\EventGhost\eg\Classes\Scheduler.py", line 137, in MainLoop
        func(*args, **kwargs)
      File "C:\Program Files\EventGhost\plugins\MediaMonkey\__init__.py", line 1339, in checkIsRunning
        if not self.isRunning():
      File "C:\Program Files\EventGhost\plugins\MediaMonkey\__init__.py", line 1330, in isRunning
        hwnd = FindWindowEx(None, hwnd, "Winamp v1.x", None)
    error: (2, 'FindWindowEx', 'Le fichier sp\xe9cifi\xe9 est introuvable.')
    Traceback (most recent call last) (1568):
      File "C:\Program Files\EventGhost\eg\Classes\Scheduler.py", line 137, in MainLoop
        func(*args, **kwargs)
      File "C:\Program Files\EventGhost\plugins\MediaMonkey\__init__.py", line 1339, in checkIsRunning
        if not self.isRunning():
      File "C:\Program Files\EventGhost\plugins\MediaMonkey\__init__.py", line 1330, in isRunning
        hwnd = FindWindowEx(None, hwnd, "Winamp v1.x", None)
    error: (2, 'FindWindowEx', 'Le fichier sp\xe9cifi\xe9 est introuvable.')
    Task.NewWindow.MediaMonkey
    Task.Deactivated.Desktop
    Task.Activated.MediaMonkey
       Switch to mode: Mediamonkey
          Activation exclusive: MediaMonkey
    Task.Deactivated.MediaMonkey
    Task.Activated.EventGhost
    IgorPlugUSB.Unknown.289F87EBD4
       Toggle Play
          MediaMonkey: Toggle Play


I have evenghost 0.4.1.r1568 and mediamonkey plugin 0.3.3.
Hi,

I always have issue with mediamonkey plugin.

Now i use:
- EG 0.4.1.r1610
- mediamonkey plugin 0.3.4
- mediamonkey 4.0.7.1511.

If i start EG while mediamonkey isn't running i have this error message looping:

Code: Select all

---> Bienvenue dans EventGhost <---
D├®marrage automatique
   Greffon: IgorPlug-USB
   Greffon: XBMC2
      JSON-RPC connected
      HTTP API connected
   Greffon: Media Player Classic
   Greffon: Task Create/Switch Events
   Greffon: Windows Media Player
   Greffon: MediaMonkey
   Greffon: Speech
   Greffon: Broadcaster
   Greffon: Webserver (Serveur Web)
Main.OnInit
Traceback (most recent call last) (1610):
  File "C:\Program Files\EventGhost\eg\Classes\Scheduler.py", line 137, in MainLoop
    func(*args, **kwargs)
  File "C:\Program Files\EventGhost\plugins\MediaMonkey\__init__.py", line 1366, in checkIsRunning
    if not self.isRunning():
  File "C:\Program Files\EventGhost\plugins\MediaMonkey\__init__.py", line 1360, in isRunning
    hwnd = FindWindowEx(None, None, "TFMainWindow", "MediaMonkey")
error: (2, 'FindWindowEx', 'Le fichier sp\xe9cifi\xe9 est introuvable.')
If y start mediamonkey, the error message stop.

If i close mediamonkey, error message is displayed again.
User avatar
Pako
Plugin Developer
Posts: 2294
Joined: Sat Nov 11, 2006 1:31 pm
Location: Czech Republic
Contact:

Re: MediaMonkey

Post by Pako »

For a long time I have searched the internet and finally I found the answer.
That I never knew that FindWindowEx function behaves differently in Windows 7 and newer, or Windows XP.

Today I had the opportunity to try it on a computer with Windows XP.
I received the same error message. So now I have to find a solution.

Pako
nonob
Experienced User
Posts: 76
Joined: Tue Dec 06, 2011 6:52 am

Re: MediaMonkey

Post by nonob »

Thanks, so i wait now :)
User avatar
Pako
Plugin Developer
Posts: 2294
Joined: Sat Nov 11, 2006 1:31 pm
Location: Czech Republic
Contact:

Re: MediaMonkey

Post by Pako »

You can try the fixed version.
It can be downloaded from the SVN repository. Please use the right mouse button and Save target as ...

Pako
nonob
Experienced User
Posts: 76
Joined: Tue Dec 06, 2011 6:52 am

Re: MediaMonkey

Post by nonob »

Hi,

Thanks, it works a little better, i haven't error message anymore when mediamonkey isn't started, but i had a little error message :

Code: Select all

         Traceback (most recent call last) (1610):
           File "C:\Program Files\EventGhost\eg\Classes\Scheduler.py", line 137, in MainLoop
             func(*args, **kwargs)
           File "C:\Program Files\EventGhost\plugins\MediaMonkey\__init__.py", line 1357, in checkWinOpened
             self.checkOpened.eg.scheduler.AddTask(1, self.checkWinOpened)
         AttributeError: 'tuple' object has no attribute 'eg'
and after that, if i close mediamonkey, i can't start it anymore throught eventghost.
I have to restart eventghost .
User avatar
Pako
Plugin Developer
Posts: 2294
Joined: Sat Nov 11, 2006 1:31 pm
Location: Czech Republic
Contact:

Re: MediaMonkey

Post by Pako »

Oh, this is definitely my mistake (typo).
I do not understand how it got there.
I'm sorry.
From the SVN repository, you can download the fixed version.

Pako
nonob
Experienced User
Posts: 76
Joined: Tue Dec 06, 2011 6:52 am

Re: MediaMonkey

Post by nonob »

Hi,

I have again a little issue:

I can start mediamonkey throught EG first time.
I can control mediamonkey.
But if i want to close mediamonkey throught "exit/disconnect mediamonkey" command, i have a red error message that is displayed:
"Application isn't started".

Then if i close media monkey manually, i can't restart it throught EG.Event is displayed without error message but nothing happen.

Here is the log:

Code: Select all

---> Bienvenue dans EventGhost <---
D├®marrage automatique
   Greffon: IgorPlug-USB
   Greffon: XBMC2
      JSON-RPC connected
      HTTP API connected
   Greffon: Media Player Classic
   Greffon: Task Create/Switch Events
   Greffon: Windows Media Player
   Greffon: MediaMonkey
   Greffon: Speech
   Greffon: Broadcaster
   Greffon: Webserver (Serveur Web)
Main.OnInit
Task.Activated.Desktop
IgorPlugUSB.Unknown.2AD7E1EBF4
   Switch to mode: Mediamonkey par TLC
      Activation exclusive: MediaMonkey
      Si le bouton est appuy├® 1.0 secondes, aller ├á: Start/Connect MediaMonkey
      Start/Connect MediaMonkey
         MediaMonkey: Start MediaMonkey
         Speech: Speak: D├®marrage de m├®dia monkey
            u'D\xe9marrage de m\xe9dia monkey'
Task.Created.MEDIAM~2
Task.NewWindow.MEDIAM~2
Task.Deactivated.Desktop
Task.Activated.MEDIAM~2
Task.Deactivated.MEDIAM~2
Task.ClosedWindow.MEDIAM~2
Task.Destroyed.MEDIAM~2
Task.Created.EventGhost
Task.NewWindow.EventGhost
Task.Activated.EventGhost
IgorPlugUSB.Unknown.289F87EBD4
   Toggle Play
      MediaMonkey: Toggle Play
IgorPlugUSB.Unknown.225F87AFD4
   Stop
      MediaMonkey: Stop
IgorPlugUSB.Unknown.2C9F87EBD4
   Exit/Disconnect MediaMonkey
      MediaMonkey: Quit (close) MediaMonkey
         L'application n'est pas lanc├®e
Task.Deactivated.EventGhost
Task.Activated.Desktop
IgorPlugUSB.Unknown.2AD7E1EBF4
   Switch to mode: Mediamonkey par TLC
      Activation exclusive: MediaMonkey
      Si le bouton est appuy├® 1.0 secondes, aller ├á: Start/Connect MediaMonkey
      Start/Connect MediaMonkey
         MediaMonkey: Start MediaMonkey
         Speech: Speak: D├®marrage de m├®dia monkey
            u'D\xe9marrage de m\xe9dia monkey'
Task.Deactivated.Desktop
Task.Activated.EventGhost
Thanks
User avatar
Pako
Plugin Developer
Posts: 2294
Joined: Sat Nov 11, 2006 1:31 pm
Location: Czech Republic
Contact:

Re: MediaMonkey

Post by Pako »

I'm sorry, but described problem does not occur for me.
I do not know how I can invoke it.
Only in that case, I'll be able to fix it.

Pako
Post Reply