Thank you, I'll attempt the latter, making a confirmation group that activates at the start of command and stops and the end.
VoxCommando supports plugins for a wide variety of programs and devices. Contact us if you want to create your own.
This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
Show posts MenuQuote from: nime5ter on November 14, 2014, 08:20:13 AMThank you for your time and sorry I took so long to respond.
Yes, please post your xml. There's a link in my signature for that wiki page, but it's pretty simple: just select (click on) your "league update" group, copy it (ctrl-c or right-click 'copy'), then paste it into your next post within a code box (the # symbol creates code tags).
<?xml version="1.0" encoding="utf-16"?>
<!--VoxCommando 2.1.0.3-->
<commandGroup open="True" name="League update check" enabled="True" prefix="" priority="0" requiredProcess="" description="">
<command id="338" name="League update check" enabled="true" alwaysOn="False" confirm="False" requiredConfidence="0" loop="False" loopDelay="0" loopMax="0" description="">
<action>
<cmdType>Scrape</cmdType>
<params>
<param>http://euw.leagueoflegends.com/</param>
</params>
<cmdRepeat>1</cmdRepeat>
</action>
<action>
<cmdType>RegExTool.Open</cmdType>
<params>
<param>True</param>
</params>
<cmdRepeat>0</cmdRepeat>
</action>
<action>
<cmdType>Results.RegEx</cmdType>
<params>
<param><div\sclass="default-2-3">(.*?)">(.*?)</a></h4><div\sclass="teaser-content"><div\sclass="field\sfield-name-field-body-medium\sfield-type-text-long\sfield-label-hidden"></param>
</params>
<cmdRepeat>1</cmdRepeat>
</action>
<action>
<cmdType>TTS.speak</cmdType>
<params>
<param>{Match.1.2}</param>
</params>
<cmdRepeat>1</cmdRepeat>
</action>
<action>
<cmdType>OSD.ShowText</cmdType>
<params>
<param>{Match.1.2}</param>
</params>
<cmdRepeat>1</cmdRepeat>
</action>
<action>
<cmdType>VC.TriggerEvent</cmdType>
<params>
<param>Event leagueconfirm1</param>
</params>
<cmdRepeat>1</cmdRepeat>
</action>
<phrase>Any new updates in, whats the latest update in, what's new in</phrase>
<phrase>league, lol, league of legends</phrase>
</command>
<command id="339" name="Event leagueconfirm1" enabled="true" alwaysOn="False" confirm="False" requiredConfidence="0" loop="False" loopDelay="0" loopMax="0" description="">
<action>
<cmdType>TTS.speak</cmdType>
<params>
<param>Shall I tell you the previous update?</param>
</params>
<cmdRepeat>1</cmdRepeat>
</action>
<if ifBlockDisabled="False" ifNot="False">
<ifType>(A)Contains(B)</ifType>
<ifParams>{1}&&Yes</ifParams>
<then>
<action>
<cmdType>scrape</cmdType>
<params>
<param>http://euw.leagueoflegends.com/</param>
</params>
<cmdRepeat>1</cmdRepeat>
</action>
<action>
<cmdType>Results.RegEx</cmdType>
<params>
<param><div\sclass="default-2-3">(.*?)">(.*?)</a></h4><div\sclass="teaser-content"><div\sclass="field\sfield-name-field-body-medium\sfield-type-text-long\sfield-label-hidden"></param>
</params>
<cmdRepeat>1</cmdRepeat>
</action>
<action>
<cmdType>TTS.Speak</cmdType>
<params>
<param>{Match.2.2}</param>
</params>
<cmdRepeat>1</cmdRepeat>
</action>
<action>
<cmdType>OSD.ShowText</cmdType>
<params>
<param>{Match.2.2}</param>
</params>
<cmdRepeat>1</cmdRepeat>
</action>
</then>
<else>
<action>
<cmdType>TTS.Speak</cmdType>
<params>
<param>As you wish</param>
</params>
<cmdRepeat>1</cmdRepeat>
</action>
</else>
</if>
<payloadList>Yes, No</payloadList>
</command>
</commandGroup>Quote... Alright. I couldn't help but entertain myself over coffee this morning.I have tried both of them out, thank you, but anytime I say "yes" whether is was after "What's new from Reuter's" or after a different command it gives me the next headline. Is there a way for VC to only give me the next headline after the command "What's new from Reuter's", if not I could change it to more specific phrase like "Yes, tell me the next headline from Reuter's". The "Tell me more about headline number {x}" command you linked me to is brilliant, I'll have to have it, thank you.
There are multiple methods to do the kind of thing you want to do. Starting with the Reuters example I posted above, I've created two variations that could be used to have VC read one headline at a time and then wait for confirmation before supplying the next.
Both of these require enabling the Python plugin in order to keep a count of what headline we're on.
Version 1 scrapes the site each time, so it's not as efficient in that sense, but it has just two commands.
Version 2 scrapes the site once and stores results in a payload xml file. It has three commands. (Not that 2 vs. 3 matters really, I'm just pointing it out.)
There are other ways this could be done.
...If you try these out, it's probably best to only copy one into your tree at each time since they use similar voice commands.
