xboxscene.org forums

Author Topic: Xbmc Scripts  (Read 172 times)

bgbaster

  • Archived User
  • Newbie
  • *
  • Posts: 3
Xbmc Scripts
« 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 ?
Logged

hempster

  • Archived User
  • Newbie
  • *
  • Posts: 1
Xbmc Scripts
« Reply #1 on: July 27, 2005, 11:45:00 AM »

Logged

bgbaster

  • Archived User
  • Newbie
  • *
  • Posts: 3
Xbmc Scripts
« Reply #2 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 ?
Logged

nuka1195

  • Archived User
  • Sr. Member
  • *
  • Posts: 290
Xbmc Scripts
« Reply #3 on: July 31, 2005, 06:00:00 AM »

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

bgbaster

  • Archived User
  • Newbie
  • *
  • Posts: 3
Xbmc Scripts
« Reply #4 on: August 01, 2005, 10:33:00 AM »

Great

10x
Logged