More > JRiver Media Center 20 for Windows

MC20.exe --- trying to rename it...

<< < (5/5)

glynor:

--- Quote from: DoubtingThomas on August 25, 2014, 12:40:37 pm ---An problem with using Windows message as I see in your example is that it's tied to a MC version.

--- End quote ---

Nope.  That's part-of the beauty.  It works as long as you target the right application.

In Girder, this is easy.  That's why I put:


--- Quote from: glynor on August 24, 2014, 02:46:02 pm ---Then, click the target button and use:

Match Invisible Tasks: Enabled
Substring Matching: Enabled

ClassName: MJFRAME
Executable: MEDIA CENTER

--- End quote ---

Note, in Executable, I said "Media Center" not "Media Center 20.exe".  With that, and Substring Matching enabled, it works right through versions, because "Media Center 20.exe" and "Media Center 19.exe" both match "Media Center*".  Internally, girder just searches active processes, selects the proper one using whatever search you've provided, and then gets the hWND address, which is what is used to actually do the SendMessage.

But, Windows Messages can only do so much.  They can call MCC commands easily enough.  But you can't do the regular Command Line switches you can use through MC20.exe or whatever.  And, if you're going to script it not through something like Girder with native SendMessage support, then it is no good, and you'd be better off just using MC20.exe or whatever (because you'll need to look up the hWND address yourself, which is nightmarish, and still have the overhead of launching a new process to do the SendMessage).

So... In essentially all cases except using Girder (or something like it) to send MCC commands, then MCcl.exe is a great solution.

BabyFace:

--- Quote from: glynor on August 25, 2014, 01:02:26 pm ---Nope.  That's part-of the beauty.  It works as long as you target the right application.

In Girder, this is easy.  That's why I put:

Note, in Executable, I said "Media Center" not "Media Center 20.exe".  With that, and Substring Matching enabled, it works right through versions, because "Media Center 20.exe" and "Media Center 19.exe" both match "Media Center*".  Internally, girder just searches active processes, selects the proper one using whatever search you've provided, and then gets the hWND address, which is what is used to actually do the SendMessage.

But, Windows Messages can only do so much.  They can call MCC commands easily enough.  But you can't do the regular Command Line switches you can use through MC20.exe or whatever.  And, if you're going to script it not through something like Girder with native SendMessage support, then it is no good, and you'd be better off just using MC20.exe or whatever (because you'll need to look up the hWND address yourself, which is nightmarish, and still have the overhead of launching a new process to do the SendMessage).

So... In essentially all cases except using Girder (or something like it) to send MCC commands, then MCcl.exe is a great solution.

--- End quote ---

Nice, I never knew Girder could do that.  My version of Girder is still the way old free version, but it looks like it has the dialogs to do that too.

BabyFace:
MCPlayIfNotPlaying.exe

LOL... I've written the same thing...

Navigation

[0] Message Index

[*] Previous page

Go to full version