Author Topic: Displaying phrase instead of value  (Read 4354 times)

0 Members and 1 Guest are viewing this topic.

pmdaniels73

  • $upporter
  • Sr. Member
  • *****
  • Posts: 118
  • Karma: 0
    • View Profile
Displaying phrase instead of value
« on: April 18, 2014, 06:23:26 PM »
I have my facebook account connected to my skype account. VC history shows when someone either goes off line or comes on line but it displays the value (I think) instead of the persons actual name. Is there any way to change this? I would post a screen shot for you but I have no clue how. I see there is no upload button so I would imagine there is a different way here of uploading things.

nime5ter

  • Administrator
  • Hero Member
  • *****
  • Posts: 1999
  • Karma: 61
    • View Profile
    • Getting Started with VoxCommando
Re: Displaying phrase instead of value
« Reply #1 on: April 18, 2014, 06:43:09 PM »
You can attach the image to your post, as you might attach a file to an email.

Click "additional options".
TIPS: POST VC VERSION #. Explain what you want VC to do. Say what you've tried & what happened, or post a video demo. Attach VC log. Link to instructions followed.  Post your command (xml)

pmdaniels73

  • $upporter
  • Sr. Member
  • *****
  • Posts: 118
  • Karma: 0
    • View Profile
Re: Displaying phrase instead of value
« Reply #2 on: April 18, 2014, 06:44:43 PM »
Thanks Naomi!

nime5ter

  • Administrator
  • Hero Member
  • *****
  • Posts: 1999
  • Karma: 61
    • View Profile
    • Getting Started with VoxCommando
Re: Displaying phrase instead of value
« Reply #3 on: April 20, 2014, 11:28:10 AM »
Unfortunately, it's not possible for us to see what kind of information you're receiving from Skype's facebook status notifications in this screenshot. You would have needed to rollover one of the facebook events, and then screen capture that image, so that we could see what kinds of payloads are generated by those events.

See: http://youtu.be/jwJAvKWxe_A?t=4m

I think that in the *next* VC2 update there will be an update to the Skype plugin, so if the event isn't currently providing the information you're looking for in its payloads, try looking into it again when the next release comes out (presumably, that will be 1.9.2.3). The update may or may not resolve that problem.

Again, though, the information you're seeking will be in the event's payloads, not in the event name itself.
« Last Edit: April 20, 2014, 11:38:19 AM by nime5ter »
TIPS: POST VC VERSION #. Explain what you want VC to do. Say what you've tried & what happened, or post a video demo. Attach VC log. Link to instructions followed.  Post your command (xml)

jitterjames

  • Administrator
  • Hero Member
  • *****
  • Posts: 7714
  • Karma: 116
    • View Profile
    • VoxCommando
Re: Displaying phrase instead of value
« Reply #4 on: April 20, 2014, 11:56:58 AM »
Events often have data attached to them in the form of payloads.  The skype events that you are showing will have several payloads attached to them which you can see by rolling over the event in the history window.

In the case of these particular events they will have 3 payloads

1 - Handle
2 - Display name
3 - Status

I believe handle is their Skype ID, which should never change and is the most useful for performing other actions.  Display name will probably be blank unless you have edited their contact info.

I think the value you are looking for is "Fullname" so I have updated the plugin to include this as the 4th payload in this event.  Download the attached dll file into your "..VC\Plugins\Skype" folder and and replace the existing "Skype.dll" file.

Now any command that is triggered by this event will be able to access the fullname value using {4}

Here is a group to demonstrate:
Code: [Select]
<?xml version="1.0" encoding="utf-16"?>
<!--VoxCommando 1.9.2.2-->
<commandGroup open="True" name="skype announce status" enabled="True" prefix="" priority="0" requiredProcess="" description="">
  <command id="745" name="skype announce status with fullname" enabled="true" alwaysOn="False" confirm="False" requiredConfidence="0" loop="False" loopDelay="0" loopMax="0" description="">
    <action>
      <cmdType>OSD.ShowText</cmdType>
      <params>
        <param>Skype: {4} is now {3}</param>
      </params>
      <cmdRepeat>1</cmdRepeat>
    </action>
    <action>
      <cmdType>TTS.Speak</cmdType>
      <params>
        <param>{4} is now {3}</param>
      </params>
      <cmdRepeat>1</cmdRepeat>
    </action>
    <event>Skype.OLS.*</event>
  </command>
</commandGroup>

pmdaniels73

  • $upporter
  • Sr. Member
  • *****
  • Posts: 118
  • Karma: 0
    • View Profile
Re: Displaying phrase instead of value
« Reply #5 on: April 20, 2014, 03:35:01 PM »
Awesome James! Thanks! Much appreciated!  ;D

pmdaniels73

  • $upporter
  • Sr. Member
  • *****
  • Posts: 118
  • Karma: 0
    • View Profile
Re: Displaying phrase instead of value
« Reply #6 on: April 20, 2014, 07:02:31 PM »
Hey James. I replaced the dll file. VC history is now showing the real name / full name as payload 4 just like you said. I drug an even showing online into the edit tree and set it up as TTS.Speak {4} is {3} with {3} being the "online" payload. I am probably wrong but I though that with this that anyone who comes online would trigger the command to tell me that the particular person is now online? Is this possible or did I just do something wrong?


jitterjames

  • Administrator
  • Hero Member
  • *****
  • Posts: 7714
  • Karma: 116
    • View Profile
    • VoxCommando
Re: Displaying phrase instead of value
« Reply #7 on: April 20, 2014, 07:11:13 PM »
Did you try using the XML command that I posted?

pmdaniels73

  • $upporter
  • Sr. Member
  • *****
  • Posts: 118
  • Karma: 0
    • View Profile
Re: Displaying phrase instead of value
« Reply #8 on: April 20, 2014, 07:24:43 PM »
Sorry James. NO I did not. Holiday's around a bunch of loud mouths driving me a little crazy. I did copy and paste it to my tree though and all is good now. Thanks a lot man. I truly appreciate it.

jitterjames

  • Administrator
  • Hero Member
  • *****
  • Posts: 7714
  • Karma: 116
    • View Profile
    • VoxCommando
Re: Displaying phrase instead of value
« Reply #9 on: April 20, 2014, 07:40:24 PM »
Try to compare what you did, to what I did , in order to figure out where you went wrong.  This is one of the best ways to learn.

Also, if you have created a command that is not working the first thing you should do is post the XML from your command (or group if it involves more than one command).  Most of the time this will tell us more than a screen capture.  My guess is that you got the event wrong but your screen captures don't show us this.

pmdaniels73

  • $upporter
  • Sr. Member
  • *****
  • Posts: 118
  • Karma: 0
    • View Profile
Re: Displaying phrase instead of value
« Reply #10 on: April 24, 2014, 09:49:50 PM »
Hey James! All things are good now with being notified when someone comes online or goes offline. Another thing that I have been trying to figure out is to get a tts response when I get a new message. I am trying accomplish this when someone from facebook sends me a message and it goes through to my skype. I have it set up per your instructions on your youtube video I have listed below. Everything works perfectly except I am not getting a tts response until I actually click on the specific contact who sent the message from my skype screen.


nime5ter

  • Administrator
  • Hero Member
  • *****
  • Posts: 1999
  • Karma: 61
    • View Profile
    • Getting Started with VoxCommando
Re: Displaying phrase instead of value
« Reply #11 on: April 24, 2014, 10:08:51 PM »
TIPS: POST VC VERSION #. Explain what you want VC to do. Say what you've tried & what happened, or post a video demo. Attach VC log. Link to instructions followed.  Post your command (xml)

pmdaniels73

  • $upporter
  • Sr. Member
  • *****
  • Posts: 118
  • Karma: 0
    • View Profile
Re: Displaying phrase instead of value
« Reply #12 on: April 24, 2014, 10:29:25 PM »
Code: [Select]
<?xml version="1.0" encoding="utf-16"?>
<command id="492" name="chat" enabled="true" alwaysOn="False" confirm="False" requiredConfidence="0" loop="False" loopDelay="0" loopMax="0" description="">
  <action>
    <cmdType>TTS.Speak</cmdType>
    <cmdString>{2} says {4}</cmdString>
    <cmdRepeat>1</cmdRepeat>
  </action>
  <action>
    <cmdType>OSD.ShowText</cmdType>
    <cmdString>{2} Says {4}</cmdString>
    <cmdRepeat>1</cmdRepeat>
  </action>
  <event>Skype.Chat.*</event>
</command>

jitterjames

  • Administrator
  • Hero Member
  • *****
  • Posts: 7714
  • Karma: 116
    • View Profile
    • VoxCommando
Re: Displaying phrase instead of value
« Reply #13 on: April 25, 2014, 08:20:22 AM »
What version of Skype are you using?

jitterjames

  • Administrator
  • Hero Member
  • *****
  • Posts: 7714
  • Karma: 116
    • View Profile
    • VoxCommando
Re: Displaying phrase instead of value
« Reply #14 on: April 25, 2014, 08:38:42 AM »
Thank-you for posting your XML.

I did some tests here with the oldest version of Skype I could find (Skype 6.9.0.106) that would still support FB and it doesn't work here either.

It is Skype/Facebook's fault.  That is just how it works, whether by design or by accident, and there is nothing we can do to fix it.  :bigno
« Last Edit: April 25, 2014, 08:43:05 AM by jitterjames »