Author Topic: RoboB - Robo Browser  (Read 41431 times)

0 Members and 9 Guests are viewing this topic.

nime5ter

  • Administrator
  • Hero Member
  • *****
  • Posts: 1999
  • Karma: 61
    • View Profile
    • Getting Started with VoxCommando
Re: RoboB - Robo Browser
« Reply #105 on: January 31, 2015, 08:42:24 PM »
OK, but have you tried the command xml I posted above?

The pattern you're showing above

Code: [Select]
[ masterItemLabel\>(.*?)< ]
isn't quite correct, based on what I'm seeing in your log. The one in the command I posted should be.
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)

Tripper

  • Jr. Member
  • **
  • Posts: 11
  • Karma: 0
    • View Profile
Re: RoboB - Robo Browser
« Reply #106 on: January 31, 2015, 10:56:20 PM »
yes I loaded the xml you posted ... same result ... im sorry if i wasn't clear ... :(

nime5ter

  • Administrator
  • Hero Member
  • *****
  • Posts: 1999
  • Karma: 61
    • View Profile
    • Getting Started with VoxCommando
Re: RoboB - Robo Browser
« Reply #107 on: February 01, 2015, 08:45:13 AM »
OK. I'm afraid you'll have to run the new version of the command again and send us another log so that we can try to understand why the new regex hasn't solved the problem for you.
« Last Edit: February 01, 2015, 09:21:21 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)

Tripper

  • Jr. Member
  • **
  • Posts: 11
  • Karma: 0
    • View Profile
Re: RoboB - Robo Browser
« Reply #108 on: February 01, 2015, 09:48:56 AM »
This morning I installed a clean version of vox and ran all the suggestions that were previously made unfortunately the results on my pc are the same. I am attaching my complete vox and a log i hope this will help
Is it possible that i have a permissions issue with my vox folder?
I have it running in the Documents folder on my pc and i have allowed it access to the network
Also the user and pass have not changed on the Our Groceries website
*I want this to work but im starting to believe my system is set up in a way that it wont ... :\

[attachments deleted to protect user info --nime5ter]
« Last Edit: February 01, 2015, 02:02:36 PM by nime5ter »

nime5ter

  • Administrator
  • Hero Member
  • *****
  • Posts: 1999
  • Karma: 61
    • View Profile
    • Getting Started with VoxCommando
Re: RoboB - Robo Browser
« Reply #109 on: February 01, 2015, 10:38:06 AM »
The log shows that the old command was used, rather than the one I posted here: http://voxcommando.com/forum/index.php?topic=843.msg17250#msg17250

I recommend you delete the old "update payload XML master list" command first. Just that one command. You can leave the other Our Groceries commands.

Then copy and paste the version that I posted earlier in this thread into your tree instead. Save the tree. Close it. And try again.

Edit: I have taken a look also at the command tree you posted. It shows the old command, not the revised command that I posted.
« Last Edit: February 01, 2015, 11:00:14 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)

nime5ter

  • Administrator
  • Hero Member
  • *****
  • Posts: 1999
  • Karma: 61
    • View Profile
    • Getting Started with VoxCommando
Re: RoboB - Robo Browser
« Reply #110 on: February 01, 2015, 12:49:59 PM »
The problem that you're having with the one Our Groceries command is because your computer has IE 8 installed, and older versions of Internet Explorer handle html tag attributes differently. http://stackoverflow.com/questions/7927905/internet-explorer-innerhtml-outputs-attributes-without-quotes

There are two possible fixes:

1. The command that I posted should work correctly with the IE 8 that you have installed. I'm not sure why it's not showing up in the tree if you pasted it in and saved etc.

2. The other option is to update the version of Internet Explorer installed on your machine.

Do one, or the other, but not both. The command xml I posted earlier is correct for IE8 or earlier. If you choose to update to IE 11, then stick with using the original command xml.
« Last Edit: February 01, 2015, 12:55:55 PM 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)

Tripper

  • Jr. Member
  • **
  • Posts: 11
  • Karma: 0
    • View Profile
Re: RoboB - Robo Browser
« Reply #111 on: February 01, 2015, 01:32:46 PM »
We have success .... I upgraded to IE 11 after having to upgrade windows7 to SP1
I ran the Update payload XML  and it scanned and retuned
OSD.ShowText:Created PayloadXML with 50 items.
info: OK
so as of this point im realy excited ... lol

Thank you for your patience and Excelent tech support ... :)
« Last Edit: February 01, 2015, 06:40:36 PM by Tripper »

nime5ter

  • Administrator
  • Hero Member
  • *****
  • Posts: 1999
  • Karma: 61
    • View Profile
    • Getting Started with VoxCommando
Re: RoboB - Robo Browser
« Reply #112 on: February 01, 2015, 06:31:35 PM »
Thanks for the update. Glad the problem is resolved for you.
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)

tyebeach

  • Jr. Member
  • **
  • Posts: 19
  • Karma: 0
    • View Profile
Re: RoboB - Robo Browser
« Reply #113 on: April 14, 2015, 02:24:40 PM »
Whenever I try to add an item to my list I receive these 4 errors. I have attached a screen shot.

Has anyone seen this before?

tyebeach

  • Jr. Member
  • **
  • Posts: 19
  • Karma: 0
    • View Profile
Re: RoboB - Robo Browser
« Reply #114 on: April 14, 2015, 03:53:53 PM »
OK I see now. I thought I had clicked to save my password, but apparently not.

sweefer

  • Jr. Member
  • **
  • Posts: 15
  • Karma: 0
    • View Profile
Re: RoboB - Robo Browser
« Reply #115 on: June 05, 2015, 12:59:12 PM »
While there is a XML code for the shopping list to add but not to read the list before or delete individual elements . or I'm blind


But really great thing, great praise

 :P ::confused

jitterjames

  • Administrator
  • Hero Member
  • *****
  • Posts: 7714
  • Karma: 116
    • View Profile
    • VoxCommando
Re: RoboB - Robo Browser
« Reply #116 on: June 05, 2015, 01:35:56 PM »
but not to read the list before or delete individual elements .

To read the list before what?

The idea behind this is to add items throughout your day if you think of them, and then to remove the items from the list using your phone, while you are shopping.  At least, that is how I use it.

I believe Kalle came up with a way to delete items but I'm not sure if it is posted on the forum or not.

PegLegTV

  • $upporter
  • Sr. Member
  • *****
  • Posts: 497
  • Karma: 43
    • View Profile
Re: RoboB - Robo Browser
« Reply #117 on: June 05, 2015, 04:02:58 PM »
I made group of commands that will read an Ourgroceries list we use it to add all of our meal options for the next two weeks and then we can just ask "what meals do we have" and it will read the list and show an OSD of the list, then do a little math to line the meal item up with the right Tag "Span | #" then it will create OurgroceriesMEALS.xml

OurgroceriesMEALS.xml is used for the "Remove {1} from the list" command  so you say "Remove Cheese Burgers and French Fries from the meals list" and it will click that item on the list so it becomes crossed out, (you could probably have it click "Delete all crossed-off items.." if you wanted to delete them but its nice to just look through the list and see what meals sounds good when making the next groceries list ;))

OurgroceriesMEALS.xml is also used for a fun command "What should I make for supper", this command will randomly select an item from the OurgroceriesMEALS.xml, used for those nights when asked what do you want for supper and everyone says "I don't know"


With the "Meals for the week", "Remove {1} from the list", "Login to meals list" you will need to replace "URL for OURGROCERIES.COM Meals list" with the url of your "Meals list"

MEALS
Code: [Select]
<?xml version="1.0" encoding="utf-16"?>
<!--VoxCommando 2.2.0.1-->
<commandGroup open="True" name="Meals" enabled="True" prefix="" priority="0" requiredProcess="" description="">
  <command id="1051" name="Meals for the week" enabled="true" alwaysOn="False" confirm="False" requiredConfidence="0" loop="False" loopDelay="0" loopMax="0" description="">
    <action>
      <cmdType>PayloadXML.Clear</cmdType>
      <params>
        <param>payloads\OurgroceriesMEALS.xml</param>
      </params>
      <cmdRepeat>1</cmdRepeat>
    </action>
    <action>
      <cmdType>RoboB.Select</cmdType>
      <params>
        <param>Meals</param>
      </params>
      <cmdRepeat>1</cmdRepeat>
    </action>
    <action>
      <cmdType>RoboB.Navigate</cmdType>
      <params>
        <param>URL for OURGROCERIES.COM Meals list</param>
      </params>
      <cmdRepeat>1</cmdRepeat>
    </action>
    <action>
      <cmdType>RoboB.Wait</cmdType>
      <params />
      <cmdRepeat>1</cmdRepeat>
    </action>
    <action>
      <cmdType>RoboB.ElementByID</cmdType>
      <params>
        <param>listDiv</param>
      </params>
      <cmdRepeat>1</cmdRepeat>
    </action>
    <action>
      <cmdType>RoboB.Show</cmdType>
      <params />
      <cmdRepeat>0</cmdRepeat>
    </action>
    <action>
      <cmdType>RoboB.GetHTML</cmdType>
      <params />
      <cmdRepeat>1</cmdRepeat>
    </action>
    <action>
      <cmdType>Results.RegEx</cmdType>
      <params>
        <param>&lt;div\sclass="item\sdraggable.*?"&gt;.*?&lt;span\sclass="value"&gt;(.*?)&lt;/span</param>
      </params>
      <cmdRepeat>1</cmdRepeat>
    </action>
    <action>
      <cmdType>OSD.SetFontSize</cmdType>
      <params>
        <param>30</param>
      </params>
      <cmdRepeat>1</cmdRepeat>
    </action>
    <action>
      <cmdType>OSD.ShowText</cmdType>
      <params>
        <param>Meals for the week:</param>
      </params>
      <cmdRepeat>1</cmdRepeat>
    </action>
    <action>
      <cmdType>OSD.AddText</cmdType>
      <params>
        <param>{Match.{i}}</param>
      </params>
      <cmdRepeat>{#M}</cmdRepeat>
    </action>
    <action>
      <cmdType>TTS.SpeakSync</cmdType>
      <params>
        <param>lets see, you have </param>
      </params>
      <cmdRepeat>1</cmdRepeat>
    </action>
    <action>
      <cmdType>TTS.SpeakSync</cmdType>
      <params>
        <param>{Match.{i}}</param>
      </params>
      <cmdRepeat>{#M}</cmdRepeat>
    </action>
    <action>
      <cmdType>TTS.Speak</cmdType>
      <params>
        <param>those all sound so good | I'm so glad I don't have to choose</param>
      </params>
      <cmdRepeat>1</cmdRepeat>
    </action>
    <loop>
      <loopParams>
        <from>1</from>
        <to>{#M}</to>
      </loopParams>
      <loopActions>
        <action>
          <cmdType>PY.ExecString</cmdType>
          <params>
            <param>result={j}*3+7</param>
          </params>
          <cmdRepeat>1</cmdRepeat>
        </action>
        <action>
          <cmdType>PayloadXML.AddPair</cmdType>
          <params>
            <param>payloads\OurgroceriesMEALS.xml</param>
            <param>{LastResult}</param>
            <param>{Match.{j}}</param>
            <param>True</param>
          </params>
          <cmdRepeat>1</cmdRepeat>
        </action>
      </loopActions>
    </loop>
    <action>
      <cmdType>Group.Rebuild</cmdType>
      <params>
        <param>Meals</param>
      </params>
      <cmdRepeat>1</cmdRepeat>
    </action>
    <phrase>What meals do we have, whats for supper, whats for diner</phrase>
  </command>
  <command id="1035" name="Remove {1} from the list" enabled="true" alwaysOn="False" confirm="False" requiredConfidence="0" loop="False" loopDelay="0" loopMax="0" description="">
    <action>
      <cmdType>Results.SetVar</cmdType>
      <params>
        <param>1</param>
        <param>{PF.1}</param>
      </params>
      <cmdRepeat>1</cmdRepeat>
    </action>
    <action>
      <cmdType>TTS.Speak</cmdType>
      <params>
        <param>one moment Please, While I Remove {Var.1} from your list</param>
      </params>
      <cmdRepeat>1</cmdRepeat>
    </action>
    <action>
      <cmdType>RoboB.Select</cmdType>
      <params>
        <param>OurGroceries Meals</param>
      </params>
      <cmdRepeat>1</cmdRepeat>
    </action>
    <action>
      <cmdType>RoboB.Show</cmdType>
      <params />
      <cmdRepeat>0</cmdRepeat>
    </action>
    <action>
      <cmdType>VC.Pause</cmdType>
      <params>
        <param>1800</param>
      </params>
      <cmdRepeat>1</cmdRepeat>
    </action>
    <action>
      <cmdType>RoboB.Wait</cmdType>
      <params />
      <cmdRepeat>1</cmdRepeat>
    </action>
    <action>
      <cmdType>RoboB.ElementByTag</cmdType>
      <params>
        <param>SPAN</param>
        <param>{1}</param>
      </params>
      <cmdRepeat>1</cmdRepeat>
    </action>
    <action>
      <cmdType>RoboB.Click</cmdType>
      <params />
      <cmdRepeat>1</cmdRepeat>
    </action>
    <action>
      <cmdType>VC.Pause</cmdType>
      <params>
        <param>1000</param>
      </params>
      <cmdRepeat>1</cmdRepeat>
    </action>
    <action>
      <cmdType>PayloadXML.Clear</cmdType>
      <params>
        <param>payloads\OurgroceriesMEALS.xml</param>
      </params>
      <cmdRepeat>1</cmdRepeat>
    </action>
    <action>
      <cmdType>RoboB.Select</cmdType>
      <params>
        <param>Meals</param>
      </params>
      <cmdRepeat>1</cmdRepeat>
    </action>
    <action>
      <cmdType>RoboB.Navigate</cmdType>
      <params>
        <param>URL for OURGROCERIES.COM Meals list</param>
      </params>
      <cmdRepeat>1</cmdRepeat>
    </action>
    <action>
      <cmdType>RoboB.Wait</cmdType>
      <params />
      <cmdRepeat>1</cmdRepeat>
    </action>
    <action>
      <cmdType>RoboB.ElementByID</cmdType>
      <params>
        <param>listDiv</param>
      </params>
      <cmdRepeat>1</cmdRepeat>
    </action>
    <action>
      <cmdType>RoboB.GetHTML</cmdType>
      <params />
      <cmdRepeat>1</cmdRepeat>
    </action>
    <action>
      <cmdType>Results.RegEx</cmdType>
      <params>
        <param>&lt;div\sclass="item\sdraggable"&gt;.*?&lt;span\sclass="value"&gt;(.*?)&lt;/span</param>
      </params>
      <cmdRepeat>1</cmdRepeat>
    </action>
    <loop>
      <loopParams>
        <from>1</from>
        <to>{#M}</to>
      </loopParams>
      <loopActions>
        <action>
          <cmdType>PY.ExecString</cmdType>
          <params>
            <param>result={j}*3+7</param>
          </params>
          <cmdRepeat>1</cmdRepeat>
        </action>
        <action>
          <cmdType>PayloadXML.AddPair</cmdType>
          <params>
            <param>payloads\OurgroceriesMEALS.xml</param>
            <param>{LastResult}</param>
            <param>{Match.{j}}</param>
            <param>True</param>
          </params>
          <cmdRepeat>1</cmdRepeat>
        </action>
      </loopActions>
    </loop>
    <action>
      <cmdType>OSD.ShowText</cmdType>
      <params>
        <param>{Var.1} was removed from your list</param>
      </params>
      <cmdRepeat>1</cmdRepeat>
    </action>
    <action>
      <cmdType>TTS.SpeakSync</cmdType>
      <params>
        <param>I Removed {Var.1} from your list</param>
      </params>
      <cmdRepeat>1</cmdRepeat>
    </action>
    <action>
      <cmdType>Group.Rebuild</cmdType>
      <params>
        <param>Meals</param>
      </params>
      <cmdRepeat>1</cmdRepeat>
    </action>
    <phrase>Remove</phrase>
    <payloadFromXML phraseOnly="False" use2partPhrase="False" phraseConnector="by" Phrase2wildcard="anyone" optional="False">payloads\OurgroceriesMEALS.xml</payloadFromXML>
    <phrase>from the list</phrase>
  </command>
  <command id="1062" name="Login to meals list" enabled="true" alwaysOn="False" confirm="False" requiredConfidence="0" loop="False" loopDelay="0" loopMax="0" description="">
    <action>
      <cmdType>RoboB.Select</cmdType>
      <params>
        <param>Meals</param>
      </params>
      <cmdRepeat>1</cmdRepeat>
    </action>
    <action>
      <cmdType>RoboB.SetWinSize</cmdType>
      <params>
        <param>800</param>
        <param>600</param>
      </params>
      <cmdRepeat>1</cmdRepeat>
    </action>
    <action>
      <cmdType>RoboB.Navigate</cmdType>
      <params>
        <param>URL for OURGROCERIES.COM Meals list</param>
      </params>
      <cmdRepeat>1</cmdRepeat>
    </action>
    <action>
      <cmdType>RoboB.Show</cmdType>
      <params />
      <cmdRepeat>0</cmdRepeat>
    </action>
    <phrase>refresh Our Meals list</phrase>
  </command>
  <command id="1052" name="What should I make for supper" enabled="true" alwaysOn="False" confirm="False" requiredConfidence="0" loop="False" loopDelay="0" loopMax="0" description="">
    <action>
      <cmdType>PayloadXML.GetRandomP</cmdType>
      <params>
        <param>payloads\OurgroceriesMEALS.xml</param>
      </params>
      <cmdRepeat>1</cmdRepeat>
    </action>
    <action>
      <cmdType>OSD.ShowText</cmdType>
      <params>
        <param>{Match.1}</param>
      </params>
      <cmdRepeat>1</cmdRepeat>
    </action>
    <action>
      <cmdType>TTS.Speak</cmdType>
      <params>
        <param>maybe, {Match.1} | oh Yummy, I would say {Match.1} | How About {Match.1}</param>
      </params>
      <cmdRepeat>1</cmdRepeat>
    </action>
    <phrase>What should I make for supper</phrase>
  </command>
</commandGroup>


I didn't make a voice command for adding meals because Regular diction wouldn't work well with this and, It would probably be best if you used two payloads or more so you would probably need a payload for the main course of the meal and a payload for the sides and maybe deserts or appitizers, depending on how you would want to add the items, other wise you could end up with a payload that never seems to end because there are so many different combinations of meals and sides alone

after adding new items to your list you need to ask "what meals do we have" before using "Remove {1} from the list" and "What should I make for supper",
« Last Edit: July 25, 2015, 10:44:35 PM by PegLegTV »

Kalle

  • $upporter
  • Hero Member
  • *****
  • Posts: 2320
  • Karma: 47
    • View Profile
Re: RoboB - Robo Browser
« Reply #118 on: June 06, 2015, 06:21:08 AM »
While there is a XML code for the shopping list to add but not to read the list before or delete individual elements . or I'm blind


But really great thing, great praise

 :P ::confused


Hi Marco,


hier ist meine "our groceries" in deutsch.
Kopiere die "VcCollection_RoboB Our Groceries.xml" in deinen VC command tree und die "groceries.xml" in den payload Ordner von VC.
In dem command "open list" musst Du noch dein API-Schlüssel für OurGroceries eintragen.
Die "groceries.xml" enthält nur einige Waren - hier kannst Du weiter Waren eintragen, aber der Eintrag "zznichtentfernen" darf nicht geändert oder entfernt werden!


Demovideo: www.youtube.com/watch?v=Tpqj0cUtQBw

Viel Spaß beim testen,
Kalle
« Last Edit: June 06, 2015, 02:33:35 PM by Kalle »
***********  get excited and make things  **********

sweefer

  • Jr. Member
  • **
  • Posts: 15
  • Karma: 0
    • View Profile
Re: RoboB - Robo Browser
« Reply #119 on: June 07, 2015, 09:44:30 AM »
Super Tutorial, vielen dank es klappt alles  :)