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

Pages: [1]
1
VoxCommando Basics and Core Features / Re: {ENTER} not working
« on: February 17, 2014, 02:55:00 PM »
I just tested this on my A1 netbook w/ W7 Ultimate. For James's command to work, I had to add a pause of a good half a second after the Ctrl-F for it to have time to open the search window and enter the text fully.

But when I was simply entering the song name and {ENTER} within the main foobar window it worked fine. So, if you want to search a particular library, maybe you'd need to add longer VC.Pause actions to give the system more time.

Your original command also worked fine for me as is. Keep in mind that I do not have a Ctrl-L shortcut, so again it was just entering the song name and {Enter} in the main playlist.

Otherwise, who knows. Works fine for us on three different systems. :)

Hey guys, WOW. GREAT support here... thanks for that

I am going to check out Media Monkey for sure. I took a peak at the VC commands for that and the support is there.

Just for fun I did fix my issue kinda. This works:

Code: [Select]
<?xml version="1.0" encoding="utf-16"?>
<commandGroup open="False" name="3_query music" enabled="True" prefix="" priority="0" requiredProcess="" description="">
  <command id="993" name="play {1}" enabled="true" alwaysOn="False" confirm="False" requiredConfidence="0" loop="False" loopDelay="0" loopMax="" description="">
    <action>
      <cmdType>OSD.ShowText</cmdType>
      <cmdString>searching for {1} sir</cmdString>
      <cmdRepeat>1</cmdRepeat>
    </action>
    <action>
      <cmdType>Window.Focus</cmdType>
      <cmdString>Foobar2000</cmdString>
      <cmdRepeat>1</cmdRepeat>
    </action>
    <action>
      <cmdType>InputKeys.Send</cmdType>
      <cmdString>{LCONTROL}({L})</cmdString>
      <cmdRepeat>1</cmdRepeat>
    </action>
    <action>
      <cmdType>InputKeys.TextEntry</cmdType>
      <cmdString>{1}</cmdString>
      <cmdRepeat>1</cmdRepeat>
    </action>
    <action>
      <cmdType>VC.Pause</cmdType>
      <cmdString>1000</cmdString>
      <cmdRepeat>1</cmdRepeat>
    </action>
    <action>
      <cmdType>InputKeys.Send</cmdType>
      <cmdString>{ENTER}</cmdString>
      <cmdRepeat>1</cmdRepeat>
    </action>
    <action>
      <cmdType>Window.Focus</cmdType>
      <cmdString>Media Library Search</cmdString>
      <cmdRepeat>1</cmdRepeat>
    </action>
    <action>
      <cmdType>InputKeys.Send</cmdType>
      <cmdString>{LCONTROL}({A})</cmdString>
      <cmdRepeat>1</cmdRepeat>
    </action>
    <action>
      <cmdType>InputKeys.Send</cmdType>
      <cmdString>{BACKSPACE}</cmdString>
      <cmdRepeat>1</cmdRepeat>
    </action>
    <action>
      <cmdType>InputKeys.Send</cmdType>
      <cmdString>{ESC}</cmdString>
      <cmdRepeat>1</cmdRepeat>
    </action>
    <action>
      <cmdType>Window.Minimize</cmdType>
      <cmdString>Foobar2000</cmdString>
      <cmdRepeat>1</cmdRepeat>
    </action>
    <phrase>play</phrase>
    <payloadDictation>payloadDictation: Regular</payloadDictation>
  </command>
</commandGroup>

The new challenge I have is triggering it properly. AKA its working in the command builder, but not in TellVox. Anyway, you dont have to spend time on this. I think I am going to MM.  ;)

2
VoxCommando Basics and Core Features / Re: {ENTER} not working
« on: February 17, 2014, 11:22:50 AM »
hmmm, very strange. I have v 1.3.1. Ctrl+L is a library search. My system is Win 7 Ultimate.

the command wasnt working over the weekend. I will retry James xml

very very very strange. I know its on my end and not VC.

the actions work when I physically do them on the keyboard, but when I execute in VC, I get the foobar2000 search window and the payload in the field, but no {ENTER} to start the song.

James> your code seemed to do the same but the library window closed because of the {ESC}

I am running on an Acer Aspire One netbook. Keyboard detects as standard PS/2

Did I mention strange...

I may just migrate to XBMC, I chose foobar because of the small footprint

-mike

3
VoxCommando Basics and Core Features / Re: {ENTER} not working
« on: February 17, 2014, 10:40:49 AM »
Hey nime5ter, I am using tellvox at the moment for payloads, so they are accurate. Here is the log.

thx
-mike

4
VoxCommando Basics and Core Features / {ENTER} not working
« on: February 17, 2014, 10:12:39 AM »
Hey guys,

I have been trying for days to get my search&play function to work in Foobar2000. I was able to get the search function to work, but I cannot get the song to play. I have tried [sendkeys] [inputkeys] [dxinput plugin] [carriage return {CR}] [tild ~]

Nothing seems to work except a hard [enter] by pressing the key. I have made sure that the window is focused, and I also shortened the macro and pressed enter and that works. So I am guessing its just the format.

Im not advanced enough yet to get into the [get xml] xml stuff. Think I need to do some reading for that, but a simple search and play will work for now.

edit: whoops, forgot the code...lol

Code: [Select]
<?xml version="1.0" encoding="utf-16"?>
<commandGroup open="False" name="3_query music" enabled="True" prefix="" priority="0" requiredProcess="" description="">
  <command id="980" name="search {1}" enabled="true" alwaysOn="False" confirm="False" requiredConfidence="0" loop="False" loopDelay="0" loopMax="" description="">
    <action>
      <cmdType>Window.Focus</cmdType>
      <cmdString>Foobar2000</cmdString>
      <cmdRepeat>1</cmdRepeat>
    </action>
    <action>
      <cmdType>InputKeys.Send</cmdType>
      <cmdString>{LCONTROL}({L})</cmdString>
      <cmdRepeat>1</cmdRepeat>
    </action>
    <action>
      <cmdType>SendKeys</cmdType>
      <cmdString>{1}</cmdString>
      <cmdRepeat>1</cmdRepeat>
    </action>
    <action>
      <cmdType>InputKeys.Send</cmdType>
      <cmdString>{ENTER}</cmdString>
      <cmdRepeat>1</cmdRepeat>
    </action>
    <phrase>play</phrase>
    <payloadDictation>payloadDictation: Regular</payloadDictation>
  </command>
</commandGroup>
thanks
-mike

5
VoxCommando Basics and Core Features / Re: Beaupa's learning thread
« on: February 17, 2014, 09:42:49 AM »
Hey nime5ter,

That code never even showed in the command builder for me, BUT, I have actually chosen a much safer way to get a semi-dialogue friendly code by using tts to announce the choices during the question, then using an event trigger for each.  ;D

I know that VC was never designed for dialogue, but as it grows I will hope that the dev considers branching in this direction because I see many users using VC for this purpose. A good start would be to allow (fix or whatever) confirmation to events and trigger other events as a result.

I am also chosen to post of my problems in a separate thread because I cant cleanup this one. No worries tho

-mike

6
VoxCommando Basics and Core Features / Re: Beaupa's learning thread
« on: February 13, 2014, 07:00:37 PM »
hmmm, well i did some more work and cleaned up the code a little

Code: [Select]
<?xml version="1.0" encoding="utf-16"?>
<commandGroup open="False" name="3_music on" enabled="False" prefix="" priority="0" requiredProcess="" description="">
  <command id="974" name="music?" enabled="true" alwaysOn="False" confirm="False" requiredConfidence="0" loop="False" loopDelay="0" loopMax="0" description="">
    <action>
      <cmdType>OSD.ShowText</cmdType>
      <cmdString>Hard drive music sir?</cmdString>
      <cmdRepeat>1</cmdRepeat>
    </action>
    <action>
      <cmdType>VC.TellVox</cmdType>
      <cmdString>?what type of music</cmdString>
      <cmdRepeat>1</cmdRepeat>
    </action>
    <phrase>music</phrase>
  </command>
  <command id="975" name="Hard Drive Music" enabled="true" alwaysOn="False" confirm="True" requiredConfidence="0" loop="False" loopDelay="0" loopMax="0" description="">
    <action>
      <cmdType>OSD.ShowText</cmdType>
      <cmdString>Playing your hard drive music sir, enjoy</cmdString>
      <cmdRepeat>1</cmdRepeat>
    </action>
    <action>
      <cmdType>VC.TriggerEvent</cmdType>
      <cmdString>launch foobar</cmdString>
      <cmdRepeat>1</cmdRepeat>
    </action>
    <phrase>?what type of music</phrase>
  </command>
  <command id="977" name="Launch Foobar" enabled="true" alwaysOn="False" confirm="False" requiredConfidence="0" loop="False" loopDelay="0" loopMax="0" description="">
    <action>
      <cmdType>Launch</cmdType>
      <cmdString>C:\Program Files\foobar2000\foobar2000.exe</cmdString>
      <cmdRepeat>1</cmdRepeat>
    </action>
    <event>launch foobar</event>
  </command>
  <command id="978" name="youtube?" enabled="true" alwaysOn="False" confirm="False" requiredConfidence="0" loop="False" loopDelay="0" loopMax="0" description="">
    <action>
      <cmdType>OSD.ShowText</cmdType>
      <cmdString>Youtube then sir?</cmdString>
      <cmdRepeat>1</cmdRepeat>
    </action>
    <action>
      <cmdType>VC.TellVox</cmdType>
      <cmdString>?launch youtube</cmdString>
      <cmdRepeat>1</cmdRepeat>
    </action>
    <event>Confirm.Cancel.Hard Drive Music</event>
  </command>
  <command id="979" name="launching youtube" enabled="true" alwaysOn="False" confirm="True" requiredConfidence="0" loop="False" loopDelay="0" loopMax="0" description="">
    <action>
      <cmdType>OSD.ShowText</cmdType>
      <cmdString>launching youtube</cmdString>
      <cmdRepeat>1</cmdRepeat>
    </action>
    <action>
      <cmdType>VC.TriggerEvent</cmdType>
      <cmdString>youtube playlist</cmdString>
      <cmdRepeat>1</cmdRepeat>
    </action>
    <phrase>?launch youtube</phrase>
  </command>
  <command id="980" name="youtube playlist" enabled="true" alwaysOn="False" confirm="False" requiredConfidence="0" loop="False" loopDelay="0" loopMax="0" description="">
    <action>
      <cmdType>Launch.OpenURL</cmdType>
      <cmdString>http://www.youtube.com/?gl=CA</cmdString>
      <cmdRepeat>1</cmdRepeat>
    </action>
    <event>youtube playlist</event>
  </command>
</commandGroup>


I have a very strange problem. Everything works except the action of launching youtube,... AND if I run the command in the command builder with confirmation it works!!? I dunno if this is a bug or if I am doing something wrong.

Thats it for tonight

-mike

7
VoxCommando Basics and Core Features / Re: Beaupa's learning thread
« on: February 13, 2014, 12:47:01 PM »
Totally my bad. For some weird reason it looked like only your one "music" command had the command confirmation box checked. I have no idea why. I blame my migraine.  :bonk :bonk

So ... getting back to your first question: VC doesn't require confirmation if you are using an event to trigger it.

http://voxcommando.com/forum/index.php?topic=772.msg6094#msg6094

So it also won't generate the event that you're trying to use to trigger the other command.

Again, sorry for the confusion!

But maybe all that will help someone else.  :biglaugh

lol, no worries

...and yeah I figured yesturday that I could use the vc.tellvox command. I was just confirming exactly what was in that post, and again I missed searching for it.

thanks again
-mike

8
VoxCommando Basics and Core Features / Re: Beaupa's learning thread
« on: February 13, 2014, 12:09:06 PM »
OK, lemme pick your brain and you could tell me how you would write this:

say: music
VC prompt: hard drive music?
(say yes) = launch program
(say no) = VC prompt: how about youtube?

(say yes) = launch url
(say no) = VC tts OK then I wont


-mike

PS: olympic canadian mens hockey is on soon, so I will be disappearing and having afew drinks so I may not reply right away :)

9
VoxCommando Basics and Core Features / Re: Beaupa's learning thread
« on: February 13, 2014, 12:02:53 PM »
Thanks for the reply nime5ter :)

Quote
If something is triggering a "confirm.foobar" event, it is not happening based on anything in this command group. Nothiing in this group will trigger either the confirm.foobar event OR the confirm.youtube event.

OK, im not a pro, but lets follow this

[trigger] music>[event](confirm prompt)>yes=confirm.foobar>launches foobar

[trigger] music>[event](confirm prompt)>no>=confirm.cancel.foobar>[event]youtube(prompt)>yes=confirm.youtube

this is where my problem is... even though the event youtube is checked as confirm, confirm.youtube [event] does not show (populate, trigger, however you say it)

you made another reply and im too slow... lol lemme read that one

-mike

10
VoxCommando Basics and Core Features / Beaupa's learning thread
« on: February 13, 2014, 10:54:06 AM »
hey guys, I hope its ok with the admin to have a single thread with all my questions as I learn. If not you can just delete and I will post a thread for each.

Can someone look at
Code: [Select]
<?xml version="1.0" encoding="utf-16"?>
<commandGroup open="False" name="3_music on" enabled="False" prefix="" priority="0" requiredProcess="" description="">
  <command id="940" name="confirm.foobar" enabled="true" alwaysOn="False" confirm="False" requiredConfidence="0" loop="False" loopDelay="0" loopMax="0" description="">
    <action>
      <cmdType>VC.DisableGroup*</cmdType>
      <cmdString>1</cmdString>
      <cmdRepeat>1</cmdRepeat>
    </action>
    <action>
      <cmdType>OSD.ShowText</cmdType>
      <cmdString>Hard drive music sir?</cmdString>
      <cmdRepeat>1</cmdRepeat>
    </action>
    <action>
      <cmdType>TTS.Speak</cmdType>
      <cmdString>Hard drive music sir?</cmdString>
      <cmdRepeat>1</cmdRepeat>
    </action>
    <event>confirm.foobar</event>
  </command>
  <command id="973" name="confirm.youtube" enabled="true" alwaysOn="False" confirm="False" requiredConfidence="0" loop="False" loopDelay="0" loopMax="0" description="">
    <action>
      <cmdType>OSD.ShowText</cmdType>
      <cmdString>Launching youtube playlist sir.</cmdString>
      <cmdRepeat>1</cmdRepeat>
    </action>
    <action>
      <cmdType>TTS.Speak</cmdType>
      <cmdString>Launching youtube playlist sir.</cmdString>
      <cmdRepeat>1</cmdRepeat>
    </action>
    <event>confirm.youtube</event>
  </command>
  <command id="941" name="foobar" enabled="true" alwaysOn="False" confirm="True" requiredConfidence="0" loop="False" loopDelay="0" loopMax="0" description="">
    <action>
      <cmdType>OSD.ShowText</cmdType>
      <cmdString>Starting your hard drive playlist,... enjoy</cmdString>
      <cmdRepeat>1</cmdRepeat>
    </action>
    <action>
      <cmdType>TTS.SpeakSync</cmdType>
      <cmdString>Starting your hard drive playlist,... enjoy</cmdString>
      <cmdRepeat>1</cmdRepeat>
    </action>
    <action>
      <cmdType>Launch</cmdType>
      <cmdString>C:\Users\mike\Desktop\mikesmusic\mikesmusic.fpl</cmdString>
      <cmdRepeat>1</cmdRepeat>
    </action>
    <action>
      <cmdType>Window.Focus</cmdType>
      <cmdString>foobar2000</cmdString>
      <cmdRepeat>1</cmdRepeat>
    </action>
    <phrase>music</phrase>
  </command>
  <command id="951" name="youtube*" enabled="true" alwaysOn="False" confirm="True" requiredConfidence="0" loop="False" loopDelay="0" loopMax="0" description="">
    <action>
      <cmdType>OSD.ShowText</cmdType>
      <cmdString>Youtube then sir?</cmdString>
      <cmdRepeat>1</cmdRepeat>
    </action>
    <action>
      <cmdType>TTS.Speak</cmdType>
      <cmdString>Youtube then sir?</cmdString>
      <cmdRepeat>1</cmdRepeat>
    </action>
    <event>Confirm.Cancel.foobar</event>
  </command>
</commandGroup>


and explain why the initial event [confirm.foobar] triggers an event, but the event [youtube] does not? Is it because VC only creates confirmation events for actions, and not events? If you trigger the script using "music" you will see what I mean.

btw, I know that I can fix most of these questions by taking a different (simpler) approach, but I want to learn the program in and out so I can eventually do advanced stuff.

thanks guys
-mike

11
General Discussion / Re: confirm within the command builder?
« on: February 06, 2014, 10:39:57 AM »
Good Morning, that youtube video was very helpful. You were absolutely right. I had no idea that VC could trigger via events. Thats why I missed that, cause I dont want you guys thinking that I am not searching here.

Last night I found a webpage with a list of events (I do not mean the actions, the actual events) all I remember is the page had labeled it for more advanced VC users or something. Anyway, that page was helpful in understanding too. I lost the page, so if anyone knows the page I mean please relink it :)

back to work for me

btw, I think I am going to restart my xml and just use TTS, Once I have things tweaked I will invest in a better voice...lol

thanks guys
-mike

12
General Discussion / Re: confirm within the command builder?
« on: February 05, 2014, 06:26:21 PM »
This video will show you a "how to" create a command with confirmation step by step.

http://www.youtube.com/watch?v=_D17Zk1MMZQ


Thank you Kalle, Ive seen that before. The only thing is that your video does not show how to branch the "no/cancel" command. I even spent a day experimenting with logic IF actions and that wasnt working for me. The above post does work. Just figuring how the event is tied to the command.

-mike

13
General Discussion / Re: confirm within the command builder?
« on: February 05, 2014, 05:47:22 PM »
mini update: your update seemed to work. ill keep ya posted... and THANK YOU :)

Yup, that worked like a charm. Could you please try to explain to me how the Confirm.Cancel event triggers on the Open File command? Is it just vox reading the Confirm.Cancel value in top down sequence? I cant see how the two are related, but it works LMAO

its been a long day
-mike

another edit: maybe they are just related because of the "do this or that" group?

14
General Discussion / Re: confirm within the command builder?
« on: February 05, 2014, 05:40:56 PM »
Thanks for the reply nime5ter. I tried looking at it your way and it still wont work. I may have not explained proper so I'll do a full example. Keep in mind this is just what I want to happen and not my actual events because im doing something wrong... haha

I say "play my tune"
vox says "OK sir, i will play your music, standby"  (this is a file in .mp3 format)
vox opens a browser to youtube and starts
vox says "is that all sir?" (file in mp3 format)

[its at this point I need the confirm yes/no]

if yes vox "OK, ill be here if you need me" (file mp3) > to standby
if no vox "No problem, what else?" (file mp3) > to on

This is the best example I can give. Now alot of people would probably say just buy the TTS voice, but its actually pretty quick to import the mp3s.

I tried your example but the (no/cancel) event would not trigger using Confirm.Cancel.Launch.OpenFile[path to my mp3]

Still plugging away but my head hurts lol
-mike

15
General Discussion / confirm within the command builder?
« on: February 05, 2014, 02:46:11 PM »
Hey guys, very new vox user here that is trying to learn the ropes. I cannot afford any new TTS voices atm so I have come up with a workaround by making my own via mp3. I would like vox to do the following:

open file> confirm> [if yes] do something [if no] do something else

It seems simple enough, but I have been searching and watching videos and I only see confirm>execute

Im pretty sure im just missing a command here or syntax. I even tried storing a "choice.confirm" event as a payload and that didnt seem to work. Its been two days now so I thought I would post. Any help is appreciated.

-mike

Pages: [1]