xboxscene.org forums

OG Xbox Forums => XboxMediaCenter => Software Forums => XBMC Python Scripting Forum => Topic started by: bgbaster on July 26, 2005, 11:46:00 PM

Title: Xbmc Scripts
Post by: bgbaster on July 26, 2005, 11:46:00 PM
Hi,

I'h been trying to setup MCX to run from my XBOX
I want t o use the MCX remote to start the MS Media Center Extender
I have found the way to run script from the remote but have a problem to run default.xbe

I need a tip how can I run XBE files from the python scrips ?
Title: Xbmc Scripts
Post by: hempster on July 27, 2005, 11:45:00 AM
http://manual.xboxmediacenter.de/wakka.php...uiltInFunctions
Title: Xbmc Scripts
Post by: bgbaster on July 31, 2005, 01:21:00 AM
Ok,
Here is the deal

I have built this script to Wakeup The MCE PC and start MCX directly:

from socket import *
import xbmc

addr = ('192.168.0.111',8080)
pw = "\xFF\xFF\xFF\xFF\xFF\xFF\x00\x0F\xEA\xF0\x50\xEF\x00\x0F\xEA\xF0\x50\xEF\x00\x0F\xEA\xF0\x50\xEF\x00\x0F\xEA\xF0\x50\xEF\x00\x0F\xEA\xF0\x50\xEF\x00\x0F\xEA\xF0\x50\xEF\x00\x0F\xEA\xF0\x50\xEF\x00\x0F\xEA\xF0\x50\xEF\x00\x0F\xEA\xF0\x50\xEF\x00\x0F\xEA\xF0\x50\xEF\x00\x0F\xEA\xF0\x50\xEF\x00\x0F\xEA\xF0\x50\xEF\x00\x0F\xEA\xF0\x50\xEF\x00\x0F\xEA\xF0\x50\xEF\x00\x0F\xEA\xF0\x50\xEF\x00\x0F\xEA\xF0\x50\xEF"

clientsocket = socket(AF_INET, SOCK_DGRAM)
clientsocket.sendto(pw,addr)

executebuiltin('XBMC.RunXBE(E:\\XBOX Extention\\default.xbe)')


BUT , when the python run that script next respond was recieved
xbmc.log:
>>   Traceback (most recent call last):
>>   31-07-2005 09:08:07 INFO   File "Q:\scripts\autoexec.py", line 11, in ?
>>   31-07-2005 09:08:07 INFO
>>   31-07-2005 09:08:07 INFO executebuiltin('XBMC.RunXBE(E:\\XBOX
Extention\\default.xbe)')
>>  31-07-2005 09:08:07 INFO NameError
>>  31-07-2005 09:08:07 INFO :
>>   31-07-2005 09:08:07 INFO name 'executebuiltin' is not defined

I 'am running two weeks old XBMC build ,Any Ideas ?
Title: Xbmc Scripts
Post by: nuka1195 on July 31, 2005, 06:00:00 AM
xbmc.executebuiltin('XBMC.RunXBE(E:\\XBOX Extention\\default.xbe)')
Title: Xbmc Scripts
Post by: bgbaster on August 01, 2005, 10:33:00 AM
Great

10x