Set Variable in C# and Read it from MM. Possible?

This forum is for questions / discussions regarding development of addons / tweaks for MediaMonkey for Windows 4.

Moderators: Gurus, Addon Administrators

Thanasis
Posts: 84
Joined: Sun Aug 28, 2011 2:53 am

Set Variable in C# and Read it from MM. Possible?

Post by Thanasis »

Hi guys. Is it possible?

Thanks
Thanasis
Posts: 84
Joined: Sun Aug 28, 2011 2:53 am

Re: Set Variable in C# and Read it from MM. Possible?

Post by Thanasis »

Any ideas people?
LoveSoldier

Re: Set Variable in C# and Read it from MM. Possible?

Post by LoveSoldier »

Hmmm, I don't think so.
How about using the Registry?
I don't know C#, but if you can set a Reg value, MM can read it.

Peace and Love
Thanasis
Posts: 84
Joined: Sun Aug 28, 2011 2:53 am

Re: Set Variable in C# and Read it from MM. Possible?

Post by Thanasis »

Hi Love Soldier.

Your registry idea is good but not suitable for Media Monkey Portable if you are thinking about a serious script.....

.COM methods and VB studio 20xx anyone?

Take care
mcow
Posts: 834
Joined: Sun Sep 21, 2008 9:35 pm
Location: Cupertino, California

Re: Set Variable in C# and Read it from MM. Possible?

Post by mcow »

This was addressed, with no good resolution, here.
Thanasis
Posts: 84
Joined: Sun Aug 28, 2011 2:53 am

Re: Set Variable in C# and Read it from MM. Possible?

Post by Thanasis »

Hello mcow....

Good to see you here as well.

Yes I managed to use COM methods to talk between scripts but like you said in your other thread, "the COM model exposes SDB.Objects() as a method rather than as an object reference."

Your idea about setting the ComServerUIActive True and False is the only solution here together with writing in registry (not the best for portable versions) and flat files.

My idea goes like this.

Code: Select all

 If COM SERVER is ON then it means that the COM SERVER is trying to tell you something. 
So Open the File and read the variables 
I am trying to workaround in C#. Meanwhile if you have something better please kick in !!!

Take care
Post Reply