Author Topic: XBMC Commands  (Read 47153 times)

0 Members and 1 Guest are viewing this topic.

Wanilton

  • $upporter
  • Hero Member
  • *****
  • Posts: 559
  • Karma: 6
    • View Profile
    • XBMC Brazil Forum
Re: XBMC Commands
« Reply #30 on: March 31, 2011, 05:07:41 PM »
Thanks, good job, stepppedup;
Why you don´t use new version vox 0.882b...?? the logical features it´s great for solve your problems.
http://voxcommando.com/forum/index.php?action=dlattach;topic=443.0;attach=420
« Last Edit: March 31, 2011, 05:19:11 PM by Wanilton »
www.xbmcbrasil.net
XBMC  Brazilian Community Forum - Admin
Windows 8.1 - XBMC Gotham Custom Plus - Aeon MQ 5
My Room Entertaiment´s
About me

Wanilton

  • $upporter
  • Hero Member
  • *****
  • Posts: 559
  • Karma: 6
    • View Profile
    • XBMC Brazil Forum
Re: XBMC Commands
« Reply #31 on: March 31, 2011, 05:20:43 PM »
My Commands, look attached file, there are good examples use payloads...
in Music, search for Play music by (Artist), use 2 payloads...look this post
http://voxcommando.com/forum/index.php?topic=98.msg1697#msg1697 - reply 39
for understand use of command.
« Last Edit: March 31, 2011, 05:35:09 PM by Wanilton »
www.xbmcbrasil.net
XBMC  Brazilian Community Forum - Admin
Windows 8.1 - XBMC Gotham Custom Plus - Aeon MQ 5
My Room Entertaiment´s
About me

stepppedup

  • $upporter
  • Jr. Member
  • *****
  • Posts: 48
  • Karma: 0
    • View Profile
Re: XBMC Commands
« Reply #32 on: April 05, 2011, 06:45:08 AM »
.884 and above compatible only...

"Help" to generate your XBMC commands.  It also minimizes XBMC,and maximizes google chrome.

"Close Help" to close chrome, and maximize XBMC.
« Last Edit: April 05, 2011, 04:43:09 PM by stepppedup »

jitterjames

  • Administrator
  • Hero Member
  • *****
  • Posts: 7714
  • Karma: 116
    • View Profile
    • VoxCommando
Re: XBMC Commands
« Reply #33 on: April 05, 2011, 07:58:53 AM »
.884 and above compatible only...

"Help" to generate your XBMC commands.  It also minimizes XBMC,and maximizes google chrome.

"Close Help" to close chrome, and maximize XBMC.

Nice.  Glad to see that you upgraded to 0.884  I have a few question / comments.  First a comment, I would change the help phrase to something longer, and maybe add an alternate phrase.

"show help, show all commands, what can I say"

Single word commands are generally a bad idea and will come back to haunt you one day . :P  Same goes for your "Tab" command.  For a single key I might use a standard like "press tab", "press escape" etc.

Question: is it necessary to minimize xbmc and then maximize it later?  Is it not sufficient to just open and focus chrome? then close chrome and focus xbmc?  Seems to work for me, but maybe it depends on if you are using "true fullscreen" with xbmc?

Comments:
You don't need to focus voxcommando before calling the help command.  In fact you have a typo (missing the 'x') so that command isn't doing anything anyway, unless you have another program called "vocommando" running.  ;)

You might want to create a very similar command called "help with x b m c, help with media center" that only shows xbmc commands.

I'm not sure if it would be 100% reliable or not, but instead of closing chrome, you might want to close the tab, in case you already had other tabs open in chrome when you started.  I believe the best way to do this is with the new

inputkeys.send {control+w}
or with
sendkeys ^w

jitterjames

  • Administrator
  • Hero Member
  • *****
  • Posts: 7714
  • Karma: 116
    • View Profile
    • VoxCommando
Re: XBMC Commands
« Reply #34 on: April 05, 2011, 03:46:02 PM »
Here's a cool new command if you are using the Showcase view in Aeon.

XBMC.ExecBuiltin     Skin.ToggleSetting(flattenshowcasemovies)
« Last Edit: April 05, 2011, 03:57:59 PM by jitterjames »

jitterjames

  • Administrator
  • Hero Member
  • *****
  • Posts: 7714
  • Karma: 116
    • View Profile
    • VoxCommando
Re: XBMC Commands
« Reply #35 on: April 05, 2011, 03:57:12 PM »
Wanilton, maybe M.Q. could suggest some other settings that we could adjust with voice commands (like the one above)?  I know some of them require the skin to be reset (for example toggle media cases on and off) but maybe there are others like this that are instant... :)

jitterjames

  • Administrator
  • Hero Member
  • *****
  • Posts: 7714
  • Karma: 116
    • View Profile
    • VoxCommando
Re: XBMC Commands
« Reply #36 on: April 05, 2011, 04:09:15 PM »
more commands using execbuiltin...

Skin.ToggleSetting(nomediaflags)

on the main menu:   Skin.ToggleSetting(lowermainmenu)

on showcase: Skin.ToggleSetting(showcasefixedlist)
but for this one you either need to leave showcase or reload the skin.

and for multiplex:   Skin.ToggleSetting(multiplexfixedlist)
and for landscape:  Skin.ToggleSetting(landscapefixedlist)

I'm not sure what this is:   Skin.ToggleSetting(flattenshowcasetvshows) or Skin.ToggleSetting(flattenshowcaseseasons) or Skin.ToggleSetting(flattenshowcasemusic)

I don't know if this requ

stepppedup

  • $upporter
  • Jr. Member
  • *****
  • Posts: 48
  • Karma: 0
    • View Profile
Re: XBMC Commands
« Reply #37 on: April 05, 2011, 05:01:22 PM »
Cool - much thanks for the suggestions, and catching the typo.

I updated the help commands - using "show help" and "help me".  I also have a couple of swear words in the version that I didn't upload, with the computer replying, "Is it really necessary to use that language? A simple "Help me" will work."

Re:  Question: is it necessary to minimize xbmc and then maximize it later?  Is it not sufficient to just open and focus chrome? then close chrome and focus xbmc?  Seems to work for me, but maybe it depends on if you are using "true fullscreen" with xbmc?

Yep - I'm running full-screen with XBMC, and I found this was the most dependable method to get my help screen up and running. 

Re:   instead of closing chrome, you might want to close the tab-

Good point, but this is on a dedicated HTPC on which I do no browsing. 



Wanilton

  • $upporter
  • Hero Member
  • *****
  • Posts: 559
  • Karma: 6
    • View Profile
    • XBMC Brazil Forum
Re: XBMC Commands
« Reply #38 on: April 05, 2011, 05:13:54 PM »
Wanilton, maybe M.Q. could suggest some other settings that we could adjust with voice commands (like the one above)?  I know some of them require the skin to be reset (for example toggle media cases on and off) but maybe there are others like this that are instant... :)

Ok James, I send one request for Marcos about suggest other settings, if I give return, i will inform here.
www.xbmcbrasil.net
XBMC  Brazilian Community Forum - Admin
Windows 8.1 - XBMC Gotham Custom Plus - Aeon MQ 5
My Room Entertaiment´s
About me

stepppedup

  • $upporter
  • Jr. Member
  • *****
  • Posts: 48
  • Karma: 0
    • View Profile
Re: XBMC Commands
« Reply #39 on: April 13, 2011, 08:55:35 PM »
Enable Debugging and Disable Debugging - very handy!

stepppedup

  • $upporter
  • Jr. Member
  • *****
  • Posts: 48
  • Karma: 0
    • View Profile
This uses Eventghost's timer function to broadcast and call a scan on both music and video library at 4 am.

Then at 5 am, Eventghost's timer function calls for XML to be generated.

I'm curious to see what the equivalent timer is within Vox, but I wanted to do the Eventghost to Vox as prep for another idea I've got....


Vox's xml is attached.


Eventghost XML (thanks to Jitter James' solution over in the EG Forum):

<?xml version="1.0" encoding="UTF-8" ?>
<EventGhost Version="1486">
    <Macro Name="4 am timer">
        <Action Name="4  am">
            Timer.TimerAction(u'Scan both every day', 0, 1, 1.0, u'', False, True, 2, u'04:00:00')
        </Action>
        <Action Name="Broadcaster: Broadcast: event Both">
            BroadcastListener.Broadcast(u'event', u'Both&amp;&amp;payload1&amp;&amp;payload2', 33000)
        </Action>
    </Macro>

    <Macro Name="5 am timer">
        <Action Name="5  am">
            Timer.TimerAction(u'GenXML every day', 0, 1, 1.0, u'', False, True, 2, u'05:00:00')
        </Action>
        <Action Name="Broadcaster: Broadcast: event GenXMLALL">
            BroadcastListener.Broadcast(u'event', u'GenXMLALL&amp;&amp;payload1&amp;&amp;payload2', 33000)
        </Action>
    </Macro>
</EventGhost>



Cheers!

jitterjames

  • Administrator
  • Hero Member
  • *****
  • Posts: 7714
  • Karma: 116
    • View Profile
    • VoxCommando


I'm curious to see what the equivalent timer is within Vox, but I wanted to do the Eventghost to Vox as prep for another idea I've got....



Vox's event timer is super simple.  You can't set a specific time or anything, just a delay in seconds. [UPDATE 2013: this is no longer the case! You *can* set a specific time using VC.SetEventTimer. Be careful with old threads ...]

What are you passing payload1 and payload2 for?
« Last Edit: September 18, 2014, 04:41:33 PM by nime5ter »

stepppedup

  • $upporter
  • Jr. Member
  • *****
  • Posts: 48
  • Karma: 0
    • View Profile
Re: XBMC Commands
« Reply #42 on: April 15, 2011, 12:20:38 AM »
Nothing currently, but there's something that I'm mulling over for another function using the eg timer - > vox event  and would need the payload.

Gotta go tweak on XBMC to see if it's possible before I go there though ....

maxwel

  • Jr. Member
  • **
  • Posts: 39
  • Karma: 1
    • View Profile
Re: XBMC Commands
« Reply #43 on: February 16, 2014, 05:34:45 PM »
James,

My intention is to inform you that there has been a change for those who are using version 11, I'm using a computer to 10.1 and another computer version 11, that to help the Marcos, get the details right in Aeonmq2 skin.

Basically the function is the same, just change the call the ActiveWindow, in version 11, work this way:

Example new command for Tv Show in Eden
ActivateWindow(Videos,TvShowTitles,return)
No more VideoLibrary

For movies in Eden
ActivateWindow(Videos,MovieTitles,return)
Others examples;
ActivateWindow(Videos,Files,return)
ActivateWindow(Videos,Root)
ActivateWindow(Videos,Addons,return)

Music not changed yet



and this way work ok in Eden Version.

Wanilton




Hi guy,

Can someone please help me, i'm looking for commands ( show my video addons and show my music addons )! i m using frodo.

Thanks guys

jitterjames

  • Administrator
  • Hero Member
  • *****
  • Posts: 7714
  • Karma: 116
    • View Profile
    • VoxCommando
Re: XBMC Commands
« Reply #44 on: February 16, 2014, 10:44:23 PM »
Code: [Select]
<?xml version="1.0" encoding="utf-16"?>
<command id="153" name="test audio video addons" enabled="true" alwaysOn="False" confirm="False" requiredConfidence="0" loop="False" loopDelay="0" loopMax="0" description="">
  <action>
    <cmdType>XJson.Raw</cmdType>
    <cmdString>GUI.ActivateWindow&amp;&amp;"window": "video", "parameters": [ "addons://sources/video" ]</cmdString>
    <cmdRepeat>1</cmdRepeat>
  </action>
  <action>
    <cmdType>XJson.Raw</cmdType>
    <cmdString>GUI.ActivateWindow&amp;&amp;"window": "music", "parameters": [ "addons://sources/audio" ]</cmdString>
    <cmdRepeat>1</cmdRepeat>
  </action>
</command>