Author Topic: Skype plugin questions  (Read 6066 times)

0 Members and 1 Guest are viewing this topic.

nime5ter

  • Administrator
  • Hero Member
  • *****
  • Posts: 1999
  • Karma: 61
    • View Profile
    • Getting Started with VoxCommando
Re: Skype plugin questions
« Reply #15 on: May 24, 2015, 08:52:41 AM »
It's a Skype bug that James will probably be able to work around programmatically when he has the time.

In the meantime, you should be able to use the error generated by the first event trigger to make sure that your command works properly.

That is, you can use the fact that Skype.Answer fails with the first event, like so:

Code: [Select]
<?xml version="1.0" encoding="utf-16"?>
<!--VoxCommando 2.1.4.5-->
<command id="598" name="Workaround Skype bug" enabled="true" alwaysOn="False" confirm="False" requiredConfidence="0" loop="False" loopDelay="0" loopMax="0" description="">
  <action>
    <cmdType>Skype.Answer</cmdType>
    <params />
    <cmdRepeat>1</cmdRepeat>
  </action>
  <if ifBlockDisabled="False" ifNot="True">
    <ifType>LastActionSuccess</ifType>
    <ifParams>&amp;&amp;</ifParams>
    <then>
      <action>
        <cmdType>VC.StopMacro</cmdType>
        <params />
        <cmdRepeat>1</cmdRepeat>
      </action>
    </then>
    <else>
      <action>
        <cmdType>Results.SetVar</cmdType>
        <params>
          <param>setyourvariables etc.</param>
        </params>
        <cmdRepeat>1</cmdRepeat>
      </action>
    </else>
  </if>
  <event>Skype.clsRinging.cltIncomingP2P</event>
</command>
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: Skype plugin questions
« Reply #16 on: May 24, 2015, 11:18:14 AM »
OK.  Actually the first action not working was due to a mistake on my part.  I had to reverse the order of two lines of code.  :bonk

I don't know why Skype generates the event twice in a row though.

I will fix both issues in the next release.

Haddood

  • $upporter
  • Hero Member
  • *****
  • Posts: 688
  • Karma: 22
    • View Profile
Re: Skype plugin questions
« Reply #17 on: May 24, 2015, 02:39:54 PM »
Thanks ... As usual your support is beyond the usual :)
When Voice command gets tough, use hand gestures