xboxscene.org forums

Author Topic: Rev 5908: Calling A Python Script With Arguments From A Skin  (Read 202 times)

asteron

  • Archived User
  • Newbie
  • *
  • Posts: 27
Rev 5908: Calling A Python Script With Arguments From A Skin
« on: February 24, 2007, 12:53:00 PM »

CODE
XBMC.RunScript(Q:\skin\Project Mayhem III\extras\fontcolor.py)


which makes the script bring up its own GUI, you can just have a button in the skin with label 'Purple Font' call:

CODE
XBMC.RunScript(Q:\skin\Project Mayhem III\extras\fontcolor.py,FFFF00FF)


And have the script just process the color from the argument.

This should simplify the python alot and keep the GUI in the skin where it belongs and is easy to change.

Scripters can follow the following guide on the wiki to using arguments http://www.xboxmedia...cript_Arguments

Skinners should take note of the updated XBMC.RunScript definition here
http://www.xboxmedia...lt_In_Functions
Logged