News:

HOT TIP! Commands and groups can be copied and pasted directly from your command editor to the forum, and vice versa. This makes sharing command XML on the forum much easier!

Main Menu

Local Movies

Started by Haddood, March 27, 2015, 01:10:31 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Haddood

here is a revised version of Local Movies posted here http://voxcommando.com/forum/index.php?topic=1140.msg9577#msg9577 that works with VC v.2
it is very simple command... if I find time I am planning on adding show times (for seven days), theatres, director ...etc.

I limited the list to ten movies ... as if you are in big city the list can grow super long


<?xml version="1.0" encoding="utf-16"?>
<!--VoxCommando 2.1.4.2-->
<command id="176" name="local movies today" enabled="true" alwaysOn="False" confirm="False" requiredConfidence="0" loop="False" loopDelay="0" loopMax="0" description="">
  <action>
    <cmdType>Scrape</cmdType>
    <params>
      <param>http://www.imdb.com/showtimes/location/CA/{M:Variables.PostalCode}</param>
    </params>
    <cmdRepeat>1</cmdRepeat>
  </action>
  <action>
    <cmdType>Results.RegExSingle</cmdType>
    <params>
      <param>&lt;h3\sclass="lister-item-header"&gt;.*?&lt;a\shref="/.*?&gt;(.*?)&lt;/a&gt;</param>
    </params>
    <cmdRepeat>1</cmdRepeat>
  </action>
  <action>
    <cmdType>Results.MatchConcat</cmdType>
    <params>
      <param>{CR}</param>
      <param>10</param>
    </params>
    <cmdRepeat>1</cmdRepeat>
  </action>
  <action>
    <cmdType>OSD.ShowText</cmdType>
    <params>
      <param>{LastResult}</param>
    </params>
    <cmdRepeat>1</cmdRepeat>
  </action>
  <phrase>local movies today</phrase>
</command>
When Voice command gets tough, use hand gestures