Posts: 21
Joined: Dec 2011
Reputation:
0
I'm, trying to write my 1st script and would like some help to get it started. I have been a programmer for over 10 years. So once I'm started I'm sure the rest should come easily. If somone could provide me with a script that when run will just simply open the movie library, or even better if you can open a playlist let say its called mylist.xsp I would be very thankfull
Posts: 793
Joined: Oct 2010
Reputation:
17
Oddly, those are two entirely different things. When you say "open" a playlist, do you mean show the items in the playlist on screen, or start playing the playlist?
If you could tell us what the end goal of your addon is, we can probably do a better job of pointing you in the right direction
Posts: 21
Joined: Dec 2011
Reputation:
0
My end goal and i know people have talked about this is I'm trying to write an addon or script that when run from the home screen will Prompt the user for a password and if it is correct will show the movies that match a smart playlist
Thanks for your reply
Posts: 21
Joined: Dec 2011
Reputation:
0
Got the ActivateWindow working, needed to use "xbmc.executebuiltin('xbmc.activatewindow(VideoLibrary,special://videoplaylists/kids.xsp,return)')"
Posts: 793
Joined: Oct 2010
Reputation:
17
One of these days I'll learn to test stuff lol
No Idea why it would thing return is outside the function unless the spacing is off. I used 4 spaces in the example, so if you copy and pasted and used tab to indent something else, that might do it. Maybe bring return back up to the same line as the "if not" statement?