MMWiki vs Online Script Help

Discussion about anything that might be of interest to MediaMonkey users.

Moderator: Gurus

MoDementia
Posts: 1321
Joined: Thu Jun 15, 2006 3:26 pm
Location: Geelong, Victoria, Australia

MMWiki vs Online Script Help

Post by MoDementia »

Is this page capable of producing this page?

I would like to start adding to the wiki pages (scripting information) but the wiki layout is a poor cousin of the script help file.

If not I would prefer to work on the script help file rather than the wiki, is this possible?

I started this process a while back but it lost momentum, with the MMWiki I was hoping to resurect it :)
Steegy
Posts: 3452
Joined: Sat Nov 05, 2005 7:17 pm

Post by Steegy »

Is this page capable of producing this page?
If someone writes a wiki bot for that, sure it would be possible.
For me ideally, the "online scripting help" would have a tree view on the left side (with objects and fields), and the wiki pages on the right (just like the web help but then with editable pages). That way no-one should have to compile a weekly help-file; all would be "online".
Maybe there are already solutions to do this though the MediaWiki system, or maybe other free/open solutions exist for that.


A page like this, I find much more confusing than the standard wiki/help pages, however it clearly contains more information.

Here's something I just tried:
Image
Or a live sample on the Wiki Sandbox (looks less nice though).
Extensions: ExternalTools, ExtractFields, SongPreviewer, LinkedTracks, CleanImport, and some other scripts (Need Help with Addons > List of All Scripts).
MoDementia
Posts: 1321
Joined: Thu Jun 15, 2006 3:26 pm
Location: Geelong, Victoria, Australia

Post by MoDementia »

Maybe I should have rephrased that question to

Is it possible to have an expandable tree like the web help file in wiki?
Steegy wrote:For me ideally, the "online scripting help" would have a tree view on the left side (with objects and fields), and the wiki pages on the right (just like the web help but then with editable pages)
I think I was asking for the same thing. :)

I did alot of searching today/night and couldn't find any examples of
1. Using frames in wiki
2 Using java navigation trees

Your examples look pretty good (and what I am trying to achieve with the other example) but already you have 2 versions that may not be usable as general "Templates"

I just finished a template version of the first example (bloody hell it was hard) but I will work on it some more tomorrow and try and incorporate what you have suggested. It's the same information just that the headings are a little vaguer so they can be used more generally but look standard.
MoDementia
Posts: 1321
Joined: Thu Jun 15, 2006 3:26 pm
Location: Geelong, Victoria, Australia

Post by MoDementia »

Had a closer look at your post and comparing the original with yours there isnt a lot of difference except in naming

Code: Select all

Scripting Object    Script Object
Value Name          Object Field
Value Type          Type Returned
Database Table      Table
Field Name          Table Field
Tracklist Column    Column Header

                    Example Data
                    Field Format
                    Hierarchy
Steegy
Posts: 3452
Joined: Sat Nov 05, 2005 7:17 pm

Post by Steegy »

and more importantly the layout (your latest layout is much improved).
Extensions: ExternalTools, ExtractFields, SongPreviewer, LinkedTracks, CleanImport, and some other scripts (Need Help with Addons > List of All Scripts).
MoDementia
Posts: 1321
Joined: Thu Jun 15, 2006 3:26 pm
Location: Geelong, Victoria, Australia

Post by MoDementia »

Bah you weren't suposed to see it till I worked how to get rid of the extra lines from null passed parameters :P

But I'm glad you like it better :)
MoDementia
Posts: 1321
Joined: Thu Jun 15, 2006 3:26 pm
Location: Geelong, Victoria, Australia

Post by MoDementia »

Release Candidate 1

Two Examples of how the template will look Given the correct parameters :)
Steegy
Posts: 3452
Joined: Sat Nov 05, 2005 7:17 pm

Post by Steegy »

In your 2nd example, shouldn't Value Type have SDBAlbum instead of Object? (then you don't need Members either).

SDBAlbum is indeed an Object, but String can also be an Object (in object oriented languages, which MediaMonkey is written in, but scripting is not). So saying that something is an Object doesn't give much information (if you're looking for less parameters, then you can remove this one).
Extensions: ExternalTools, ExtractFields, SongPreviewer, LinkedTracks, CleanImport, and some other scripts (Need Help with Addons > List of All Scripts).
MoDementia
Posts: 1321
Joined: Thu Jun 15, 2006 3:26 pm
Location: Geelong, Victoria, Australia

Post by MoDementia »

It is based on what I remember when I started scripting.
Determining what I could do with it once I read it eg

Number + Number = Number

SDB.MessageBox "String = '" & String & "'", mtError, Array(mbOK)

String = objSongData.Object.Member

If it returns a Number or a String I can use it directly
If it is an Object it requires further manipulation i.e. with a member or a for..next etc.

The members row is off the Value Name parameter so it isn't an additional one :)
rovingcowboy
Posts: 14163
Joined: Sat Oct 25, 2003 7:57 am
Location: (Texas)
Contact:

Post by rovingcowboy »

MoDementia wrote:It is based on what I remember when I started scripting.
Determining what I could do with it once I read it eg

Number + Number = Number

SDB.MessageBox "String = '" & String & "'", mtError, Array(mbOK)

String = objSongData.Object.Member

If it returns a Number or a String I can use it directly
If it is an Object it requires further manipulation i.e. with a member or a for..next etc.

The members row is off the Value Name parameter so it isn't an additional one :)

i been meaning to ask you? but what the sam hill is going on? you done confounded and confiddled me as much with this stuff you put here and in the wiki, as i did with you with the skinning.? we're even now right cause i have no idea what this stuff is for? :o :-?


:-?
roving cowboy / keith hall. My skins http://www.mediamonkey.com/forum/viewto ... =9&t=16724 for some help check on Monkey's helpful messages at http://www.mediamonkey.com/forum/viewto ... 4008#44008 MY SYSTEMS.1.Jukebox WinXp pro sp 3 version 3.5 gigabyte mb. 281 GHz amd athlon x2 240 built by me.) 2.WinXP pro sp3, vers 2.5.5 and vers 3.5 backup storage, shuttle 32a mb,734 MHz amd athlon put together by me.) 3.Dell demension, winxp pro sp3, mm3.5 spare jukebox.) 4.WinXp pro sp3, vers 3.5, dad's computer bought from computer store. )5. Samsung Galaxy A51 5G Android ) 6. amd a8-5600 apu 3.60ghz mm version 4 windows 7 pro bought from computer store.
MoDementia
Posts: 1321
Joined: Thu Jun 15, 2006 3:26 pm
Location: Geelong, Victoria, Australia

Post by MoDementia »

rovingcowboy wrote: i been meaning to ask you? but what the sam hill is going on? you done confounded and confiddled me as much with this stuff you put here and in the wiki, as i did with you with the skinning.? we're even now right cause i have no idea what this stuff is for? :o :-?


:-?
If you can answer this question correctly I'll fill you in :P
rovingcowboy
Posts: 14163
Joined: Sat Oct 25, 2003 7:57 am
Location: (Texas)
Contact:

Post by rovingcowboy »

MoDementia wrote:
rovingcowboy wrote: i been meaning to ask you? but what the sam hill is going on? you done confounded and confiddled me as much with this stuff you put here and in the wiki, as i did with you with the skinning.? we're even now right cause i have no idea what this stuff is for? :o :-?


:-?
If you can answer this question correctly I'll fill you in :P

i don't need to know then if you want to play 64 million dollar questions.


but there is no question there to answer bex already answered them for you.
roving cowboy / keith hall. My skins http://www.mediamonkey.com/forum/viewto ... =9&t=16724 for some help check on Monkey's helpful messages at http://www.mediamonkey.com/forum/viewto ... 4008#44008 MY SYSTEMS.1.Jukebox WinXp pro sp 3 version 3.5 gigabyte mb. 281 GHz amd athlon x2 240 built by me.) 2.WinXP pro sp3, vers 2.5.5 and vers 3.5 backup storage, shuttle 32a mb,734 MHz amd athlon put together by me.) 3.Dell demension, winxp pro sp3, mm3.5 spare jukebox.) 4.WinXp pro sp3, vers 3.5, dad's computer bought from computer store. )5. Samsung Galaxy A51 5G Android ) 6. amd a8-5600 apu 3.60ghz mm version 4 windows 7 pro bought from computer store.
Post Reply