Author Topic: payloads  (Read 1276 times)

0 Members and 1 Guest are viewing this topic.

Kalle

  • $upporter
  • Hero Member
  • *****
  • Posts: 2319
  • Karma: 47
    • View Profile
payloads
« on: February 01, 2011, 07:15:35 AM »
Hi James,

what is the difference between the payload "only phrases" and "" value, Phrases "?


My USB-UIRT has arrived and works fine with VC.
I would like to control my TV channels of the HD box with VC + Event Ghost directly and try to create a payload. Is there a possibility a payload to address directly in VC? I mean phrases without trigger. The normal way would "trigger (go to)" - "payload (Channel 1 ..)", i need only" Channel 1 ..) " in a payloadlist

Greetings Kalle
« Last Edit: February 01, 2011, 07:24:14 AM by Kalle »
***********  get excited and make things  **********

jitterjames

  • Administrator
  • Hero Member
  • *****
  • Posts: 7713
  • Karma: 116
    • View Profile
    • VoxCommando
Re: payloads
« Reply #1 on: February 01, 2011, 07:37:38 AM »
using only phrases would return the phrase as a payload.  Pairs return the value.

If you edit an xmlpayload file you will see two column, value on the left and phrase on the right.

If you have a payload pair, like movies, the value might be the path and filename and the phrase would be the name of the movie.

If you set it to phrases only and say find movie "avatar" then {1} will be equal to "avatar"

If you set it to pairs and say "find movie "avatar" then {1} will be equal to "c:\video\movies\avatar.avi"

You always need to have a phrase in your command.  You cannot have a command "avatar" if avatar is in a payload, you need to say "play avatar" etc.

But for channel 1 you can make "channel" the phrase and "1" the payload.  Even if you could use payloads by themselves it would probably lead to false commands or other confusion.

Kalle

  • $upporter
  • Hero Member
  • *****
  • Posts: 2319
  • Karma: 47
    • View Profile
Re: payloads
« Reply #2 on: February 01, 2011, 07:49:40 AM »
using only phrases would return the phrase as a payload.  Pairs return the value.

If you edit an xmlpayload file you will see two column, value on the left and phrase on the right.

If you have a payload pair, like movies, the value might be the path and filename and the phrase would be the name of the movie.

If you set it to phrases only and say find movie "avatar" then {1} will be equal to "avatar"

If you set it to pairs and say "find movie "avatar" then {1} will be equal to "c:\video\movies\avatar.avi"

You always need to have a phrase in your command.  You cannot have a command "avatar" if avatar is in a payload, you need to say "play avatar" etc.

But for channel 1 you can make "channel" the phrase and "1" the payload.  Even if you could use payloads by themselves it would probably lead to false commands or other confusion.

Ok, thanks
I have understood. I is better i take for each channel one phrase, so that I can speak directly with his name "NBC " or "Pro7" or "SAT1" etc.
***********  get excited and make things  **********