Author Topic: Requesting plugin support for Pinup Popper  (Read 7837 times)

0 Members and 1 Guest are viewing this topic.

rablack97

  • $upporter
  • Sr. Member
  • *****
  • Posts: 100
  • Karma: 0
    • View Profile
Re: Requesting plugin support for Pinup Popper
« Reply #30 on: September 25, 2018, 02:02:49 PM »
Thank you Kalle,

I will try this today.

I also tried the mapping function and this works pretty well, might be crude but it works, instead of using dictation i used an all games xml for the phrase reference and the command looks for like phrases in the mapping. If there is an easier way to display the results, please advise, mainly for informational purposes.

Didn't know if there is a way to generate/update the mapping table based on the imported XML.  I was also have a VOX friendly speech field in the popper software to reference as well as a payload xml.

Code: [Select]
<?xml version="1.0" encoding="utf-16"?>
<!--VoxCommando 2.2.4.0-->
<command id="291" name="newcommandname" enabled="true" alwaysOn="False" confirm="False" requiredConfidence="0" loop="False" loopDelay="0" loopMax="0" description="">
  <action>
    <cmdType>Map.Query</cmdType>
    <params>
      <param>select fromKey from VPTables where fromKey LIKE "%{1}%"</param>
    </params>
    <cmdRepeat>1</cmdRepeat>
  </action>
  <if ifBlockDisabled="False" ifNot="False">
    <ifType>(A)==(B)</ifType>
    <ifParams>{#M}&amp;&amp;1</ifParams>
    <then>
      <action>
        <cmdType>OSD.ShowText</cmdType>
        <params>
          <param>{Match.1}</param>
        </params>
        <cmdRepeat>1</cmdRepeat>
      </action>
      <action>
        <cmdType>TTS.Speak</cmdType>
        <params>
          <param>I found one table matching your search, {Match.1}</param>
        </params>
        <cmdRepeat>1</cmdRepeat>
      </action>
    </then>
    <else>
      <action>
        <cmdType />
        <params />
        <cmdRepeat>1</cmdRepeat>
      </action>
    </else>
  </if>
  <if ifBlockDisabled="False" ifNot="False">
    <ifType>(A)==(B)</ifType>
    <ifParams>{#M}&amp;&amp;2</ifParams>
    <then>
      <action>
        <cmdType>OSD.ShowText</cmdType>
        <params>
          <param>{Match.1}{CR}{Match.2}</param>
        </params>
        <cmdRepeat>1</cmdRepeat>
      </action>
      <action>
        <cmdType>TTS.Speak</cmdType>
        <params>
          <param>I found two tables matching your search, {Match.1} and {Match.2}</param>
        </params>
        <cmdRepeat>1</cmdRepeat>
      </action>
    </then>
    <else />
  </if>
  <if ifBlockDisabled="False" ifNot="False">
    <ifType>(A)==(B)</ifType>
    <ifParams>{#M}&amp;&amp;3</ifParams>
    <then>
      <action>
        <cmdType>OSD.ShowText</cmdType>
        <params>
          <param>{Match.1}{CR}{Match.2}{CR}{Match.3}</param>
        </params>
        <cmdRepeat>1</cmdRepeat>
      </action>
      <action>
        <cmdType>TTS.Speak</cmdType>
        <params>
          <param>I found three tables matching your search,{Match.1},{Match.2},{Match.3}</param>
        </params>
        <cmdRepeat>1</cmdRepeat>
      </action>
    </then>
    <else />
  </if>
  <if ifBlockDisabled="False" ifNot="False">
    <ifType>(A)==(B)</ifType>
    <ifParams>{#M}&amp;&amp;4</ifParams>
    <then>
      <action>
        <cmdType>OSD.ShowText</cmdType>
        <params>
          <param>{Match.1}{CR}{Match.2}{CR}{Match.3}{CR}{Match.4}</param>
        </params>
        <cmdRepeat>1</cmdRepeat>
      </action>
    </then>
    <else />
  </if>
  <phrase>Find</phrase>
  <payloadFromXML phraseOnly="True" use2partPhrase="False" phraseConnector="by" Phrase2wildcard="anyone" optional="False">\\MKX-PC\Voxcommando\vpPayloads\VPtables.xml</payloadFromXML>
</command>

There's 3 screens on my cabinet, didnt dawn on me to just move the OSD to a non-ratated screen, so that problem is solved  :bonk

Making some really positive headway, this is making the cabinet, more interactive and easier to naviagte.


Kalle

  • $upporter
  • Hero Member
  • *****
  • Posts: 2320
  • Karma: 47
    • View Profile
Re: Requesting plugin support for Pinup Popper
« Reply #31 on: September 25, 2018, 02:21:32 PM »
My command doesn’t need the dictation, it use the pupgames.xml. So you can say: „Play pinball Marvel“ and it will show you on OSD all alternates and read it aloud. Then you can say for example „option 3“ for the third alternate.
It doesn‘t execute anything at the moment - in other words - it is only a example how you can work with alternates.
I hope you like it  ;)
***********  get excited and make things  **********

rablack97

  • $upporter
  • Sr. Member
  • *****
  • Posts: 100
  • Karma: 0
    • View Profile
Re: Requesting plugin support for Pinup Popper
« Reply #32 on: September 25, 2018, 02:23:57 PM »
TY so much, looking forward to testing  :)

rablack97

  • $upporter
  • Sr. Member
  • *****
  • Posts: 100
  • Karma: 0
    • View Profile
Re: Requesting plugin support for Pinup Popper
« Reply #33 on: September 26, 2018, 02:26:03 PM »
ok i have the alternate function working, and also added the launch command to launch the option selected.  TY Kalle for your suggested solution.

Kalle

  • $upporter
  • Hero Member
  • *****
  • Posts: 2320
  • Karma: 47
    • View Profile
Re: Requesting plugin support for Pinup Popper
« Reply #34 on: September 26, 2018, 02:43:31 PM »
 8)
***********  get excited and make things  **********