eg.TriggerEvent() help pls
Posted: Sat Jan 30, 2010 12:12 pm
first off, great software, very handy tool indeed.
im trying to code a small python script that will eventually open xbmc if its not already open, if it is open, it will close it.
this is the event i wish to trigger
<?xml version="1.0" encoding="UTF-8" ?>
<EventGhost Version="1194">
<Action>
XBMC.Quit()
</Action>
</EventGhost>"
and shows this in the logs
XBMC: Quit XBMC
when i try this as a macro ,
eg.TriggerEvent(" XBMC.Quit()")
this is what logs show;
Main.XBMC.Quit()
it seems to add the main prefix instead of the xbmc prefix, i guess im doing something wrong, but i hope someone can help me?
thanks in advance,
Dam0
im trying to code a small python script that will eventually open xbmc if its not already open, if it is open, it will close it.
this is the event i wish to trigger
<?xml version="1.0" encoding="UTF-8" ?>
<EventGhost Version="1194">
<Action>
XBMC.Quit()
</Action>
</EventGhost>"
and shows this in the logs
XBMC: Quit XBMC
when i try this as a macro ,
eg.TriggerEvent(" XBMC.Quit()")
this is what logs show;
Main.XBMC.Quit()
it seems to add the main prefix instead of the xbmc prefix, i guess im doing something wrong, but i hope someone can help me?
thanks in advance,
Dam0