From script to Visualization Mode
#1
Question 
Hi all! I am using XBMC since a few weeks and I love it. I found a script called 'MediaStream' and I liked the functionality but I find it very ugly so I altered the script so its 1080P, thats all working fine. I created my media.xml with links to some online radiostations (Digitally Imported, ETN.FM, SLAM!FM) and the music is playing fine after choosing the menu item.The only thing thats bugging me is that if I play music I want it to go to the Visualization Mode instead of staying in the plugin. I found out this is possible by pressing 'tab' on my keyboard which represents the "ToggleFullScreen" command. I want to do this automaticly tho but I can't find the right command to do this in python. I looked in lots of manualpages but I can't find it anywhere. I'm sure its very simple though... I hope someone can help me find the right command.

btw. I tried "ToggleFullScreen", "XBMC.ToggleFullScreen", "XBMC.FullScreen" but all i got is a "Incorrect Command" or something.
Reply
#2
import xbmc
xbmc.executebuiltin('ActivateWindow(12005)')

http://xbmc.sourceforge.net/python-docs/xbmc.html
executebuiltin(...)
executebuiltin(function) -- Execute a built in XBMC function.
http://wiki.xbmc.org/?title=List_of_Built_In_Functions
ActivateWindow(window[,dir,return]) - Opens the given window. The parameter window can either be the window's id
http://wiki.xbmc.org/?title=Window_IDs
fullscreenvideo WINDOW_FULLSCREEN_VIDEO 12005 2005 VideoFullScreen.xml
Reply
#3
Great, thank you so much! I will try that as soon as I get home. I will look at the Windows IDs to prevent future noob topics :X
Reply
#4
It works great now but I had to change the Window ID to 12006 instead of 12005 Smile Thanks again!
Reply
#5
Good to hear!
Oops, for some reason i thought you wanted to go fullscreen vid :S
HAHA Big Grin
ENJOY
Reply

Logout Mark Read Team Forum Stats Members Help
From script to Visualization Mode0