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

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

Moderator: Gurus

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

Postby Thanasis » Sat Apr 07, 2012 4:12 am

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?

Postby Thanasis » Sun Apr 08, 2012 1:00 am

Any ideas people?
Thanasis
 
Posts: 84
Joined: Sun Aug 28, 2011 2:53 am

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

Postby LoveSoldier » Sun Apr 08, 2012 11:22 pm

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
LoveSoldier
 

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

Postby Thanasis » Tue Apr 10, 2012 3:31 am

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
Thanasis
 
Posts: 84
Joined: Sun Aug 28, 2011 2:53 am

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

Postby mcow » Wed Apr 11, 2012 12:36 am

This was addressed, with no good resolution, here.
mcow
 
Posts: 440
Joined: Sun Sep 21, 2008 9:35 pm
Location: Cupertino, California

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

Postby Thanasis » Fri Apr 13, 2012 2:37 am

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
Thanasis
 
Posts: 84
Joined: Sun Aug 28, 2011 2:53 am


Return to Addons developer forum

Who is online

Users browsing this forum: No registered users and 3 guests