Page 14 of 15

Re: MediaMonkey

Posted: Tue Jun 12, 2012 2:08 pm
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..

Re: MediaMonkey

Posted: Wed Jul 04, 2012 4:30 am
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

Re: MediaMonkey

Posted: Thu Jul 19, 2012 8:00 am
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

Re: MediaMonkey

Posted: Sat Jul 21, 2012 10:41 pm
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 ...

Re: MediaMonkey

Posted: Mon Jul 23, 2012 7:19 am
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'

Re: MediaMonkey

Posted: Mon Jul 23, 2012 9:47 pm
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

Re: MediaMonkey

Posted: Tue Jul 24, 2012 6:46 am
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 :)

Re: MediaMonkey

Posted: Sun Feb 10, 2013 2:23 pm
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.

Re: MediaMonkey

Posted: Mon Feb 11, 2013 9:35 am
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

Re: MediaMonkey

Posted: Mon Feb 11, 2013 10:34 am
by nonob
Thanks, so i wait now :)

Re: MediaMonkey

Posted: Mon Feb 11, 2013 6:47 pm
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

Re: MediaMonkey

Posted: Tue Feb 12, 2013 7:24 pm
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 .

Re: MediaMonkey

Posted: Wed Feb 13, 2013 7:45 am
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

Re: MediaMonkey

Posted: Wed Feb 13, 2013 7:42 pm
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

Re: MediaMonkey

Posted: Thu Feb 14, 2013 7:19 am
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