Show Posts

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.


Messages - Gixan

Pages: [1]
1
Thank you, I'll attempt the latter, making a confirmation group that activates at the start of command and stops and the end.

2
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).
Thank you for your time and sorry I took so long to respond.
Code: [Select]
<?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>&lt;div\sclass="default-2-3"&gt;(.*?)"&gt;(.*?)&lt;/a&gt;&lt;/h4&gt;&lt;div\sclass="teaser-content"&gt;&lt;div\sclass="field\sfield-name-field-body-medium\sfield-type-text-long\sfield-label-hidden"&gt;</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}&amp;&amp;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>&lt;div\sclass="default-2-3"&gt;(.*?)"&gt;(.*?)&lt;/a&gt;&lt;/h4&gt;&lt;div\sclass="teaser-content"&gt;&lt;div\sclass="field\sfield-name-field-body-medium\sfield-type-text-long\sfield-label-hidden"&gt;</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.

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.
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.

3
I've been scouring the forums for at least an hour now, maybe I missed it, but I haven't found what I am looking for. I want Vox to ask my a question after I told it a command and wait for a yes or no reply, if yes then complete another command. My aim is for Vox to check the 5 latest updates in League of Legends, which I'm able to do, but the dilemma I'm facing is that after Vox tells me the first update, I want it to ask me if I want to hear the 2nd update, 3rd update and so on. I've tried to make 2 commands, 1 consisting of scraping, regex, TTS, you know.. then tells me the first update and finally activates VC.TriggerEvent, I made the 2nd command called "Event leaguecheck1" which has a logic block with if you say Yes, it will scrape, regex, and give you the 2nd match/2nd newest update, but it either doesn't active the command at all or just doesn't listen to my "Yes". Is the name of the command wrong? I don't know, maybe I made a mistake along the way. If I could make a folder that actives at the end of my first command, but doing things for 5 updates and other games I want to check updates for seems a bit, messy.
Here are screenshots of my commands, hopefully it makes my situation a bit clearer.

According to the wiki I have to inform you of these details:
I'm using VoxCommando 2.103 not VoxCommandoSP.
Thank you for you time and if you want me to post the XML, I'll look up how and do it.


Pages: [1]