Opening Windows and Dialogs: Difference between revisions

From Official Kodi Wiki
Jump to navigation Jump to search
>Ronie
No edit summary
>Ronie
No edit summary
Line 1: Line 1:
{{Incomplete}}
You can use the ActivateWindow() [[List_of_Built_In_Functions|Built In Function]] to open a certain [[Window_IDs|Window]].


You can [Activate a Window] or run a [Built In Function], or specify one of the [Actions].
This command can be assigned to a [[Button_control|button]] in a skin or mapped to a key in your [[Keymap.xml|Keymap]].


Below are valid secondary parameters for the applicable [[Window IDs]]
'''Example:'''
*This will take you directly to the settings section of xbmc:
  ActivateWindow(Settings)
 
 
Some windows even allow you to jump directly to a sub-section of that window.


'''Example:'''
'''Example:'''
*You want a button in your skin or on your remote taking you directly to the movie listing you let that button do
*If you want a button in your skin or on your remote to take you directly to the movie listing, you let that button do:
   ActivateWindow(VideoLibrary,MovieTitles)
   ActivateWindow(VideoLibrary,MovieTitles)


==='''Videolibrary:'''===
 
{|  
 
Below is a list of the available sub-sections in the Video- and MusicLibrary.
 
==='''VideoLibrary:'''===
{| border="1" cellpadding="2" cellspacing="0"
|-
|-
|VideoLibrary ||videodb://
|VideoLibrary ||videodb://
|-
|-
|  
|   || 
|-
|-
|Movies ||videodb://1/
|Movies ||videodb://1/
Line 36: Line 45:
|RecentlyAddedMovies ||videodb://4/
|RecentlyAddedMovies ||videodb://4/
|-
|-
|  
|   || 
|-
|-
|TvShows ||videodb://2/
|TvShows ||videodb://2/
Line 52: Line 61:
|RecentlyAddedEpisodes ||videodb://5/
|RecentlyAddedEpisodes ||videodb://5/
|-
|-
|  
|   || 
|-
|-
|MusicVideos ||videodb://3/
|MusicVideos ||videodb://3/
Line 70: Line 79:
|RecentlyAddedMusicVideos ||videodb://6/
|RecentlyAddedMusicVideos ||videodb://6/
|-
|-
|  
|   || 
|-
|-
|Playlists ||special://videoplaylists/
|Playlists ||special://videoplaylists/
Line 78: Line 87:




'''musiclibrary:'''<br>
==='''MusicLibrary'''===
musiclibrary,musicdb://1/ (music library root)<br>
{| border="1" cellpadding="2" cellspacing="0"
genres<br>
|-
artists<br>
|MusicLibrary ||musicdb://
albums<br>
|-
songs<br>
| &nbsp; ||&nbsp;
top100<br>
|-
top100songs<br>
|Genres ||musicdb://1/
top100albums<br>
|-
recentlyaddedalbums<br>
|Artists ||musicdb://2/
recentlyplayedalbums<br>
|-
compilations<br>
|Albums ||musicdb://3/
playlists<br>
|-
years<br>
|Songs ||musicdb://4/
singles<br>
|-
 
|Top100 ||musicdb://5/
special://musicplaylists/<br>
|-
plugin://music/<br>
|Top100Songs ||musicdb://5/1/
lastfm://<br>
|-
shout://<br>
|Top100Albums ||musicdb://5/2/
|-
|RecentlyAddedAlbums ||musicdb://6/
|-
|RecentlyPlayedAlbums ||musicdb://7/
|-
|Compilations ||musicdb://8/
|-
|Years ||musicdb://9/
|-
|Singles ||musicdb://10/
|-
| &nbsp; ||&nbsp;
|-
|Playlists ||special://musicplaylists/
|-
|Plugins ||plugin://music/
|-
| &nbsp; ||&nbsp;
|-
| &nbsp; ||lastfm://
|-
| &nbsp; ||shout://
|}


[[category:Customization]]
[[category:Customization]]

Revision as of 19:38, 16 May 2010

You can use the ActivateWindow() Built In Function to open a certain Window.

This command can be assigned to a button in a skin or mapped to a key in your Keymap.

Example:

  • This will take you directly to the settings section of xbmc:
 ActivateWindow(Settings)


Some windows even allow you to jump directly to a sub-section of that window.

Example:

  • If you want a button in your skin or on your remote to take you directly to the movie listing, you let that button do:
 ActivateWindow(VideoLibrary,MovieTitles)


Below is a list of the available sub-sections in the Video- and MusicLibrary.

VideoLibrary:

VideoLibrary videodb://
   
Movies videodb://1/
MovieGenres videodb://1/1/
MovieTitles videodb://1/2/
MovieYears videodb://1/3/
MovieActors videodb://1/4/
MovieDirectors videodb://1/5/
MovieStudios videodb://1/6/
MovieCountries videodb://1/7/
MovieSets videodb://1/8/
RecentlyAddedMovies videodb://4/
   
TvShows videodb://2/
TvShowGenres videodb://5/1/
TvShowTitles videodb://5/2/
TvShowYears videodb://5/3/
TvShowActors videodb://5/4/
TvShowStudios videodb://5/5/
RecentlyAddedEpisodes videodb://5/
   
MusicVideos videodb://3/
MusicVideoGenres videodb://3/1/
MusicVideoTitles videodb://3/2/
MusicVideoYears videodb://3/3/
MusicVideoArtists videodb://3/4/
MusicVideoDirectors videodb://3/5/
MusicVideoStudios videodb://3/6/
RecentlyAddedMusicVideos videodb://6/
   
Playlists special://videoplaylists/
Plugins plugin://video/


MusicLibrary

MusicLibrary musicdb://
   
Genres musicdb://1/
Artists musicdb://2/
Albums musicdb://3/
Songs musicdb://4/
Top100 musicdb://5/
Top100Songs musicdb://5/1/
Top100Albums musicdb://5/2/
RecentlyAddedAlbums musicdb://6/
RecentlyPlayedAlbums musicdb://7/
Compilations musicdb://8/
Years musicdb://9/
Singles musicdb://10/
   
Playlists special://musicplaylists/
Plugins plugin://music/
   
  lastfm://
  shout://