One quick question: Using SENDKEYS, how do you send the "Shift Key"?
Quote:that's excellent, it could be useful for a lot of things, in particular the "alternates" feature of VC, but to really be useful we would need to be able to create multiple lines of text. Do you know if there is a way to insert newline characters? I tried \r\n but it didn't do anything.
I can't get it to do multiple lines. I'm not sure if it's a limitation of the function (no new line parameter recognized), or if it's an issue with how the skin chooses to display notifications. It is also limited to 256 characters, and will scroll the text larger than the windows, just like the RSS feed.
So far I have "Help" which responds with:
"Say 'How Do I...' followed by the function you are trying to use to get detailed instructions or Say 'Commands' for a list of common commands"
How do I play a movie(video)(TV Show)(Music)(audio file)(mp3)(...)
"Say 'play' or 'select' to playback of the media file chosen"
Also includes questions like:
How do I select something, fast forward, rewind, skip ahead, skip back, stop, mute, turn on subtitles, view codec info etc.
"Commands" just returns a single command for each function in a list. There may be (and usually are) multiple acceptable commands, but I list only the most obvious ones. For instance, "Exit" is listed for exiting the program, but you could also say "Good bye" or "Good night" to get the same effect. The commands help will only list "Exit" due to the limited number of characters I have to work with.
-----------------------------------
Here's the spreadsheet I mentioned, help functions aren't listed yet, as well as a few experimental functions I'm playing with.
http://spreadsheets.google.com/ccc?key=0...oIcO#gid=0
You guys are free to edit this sheet, add functions you want mapped, suggest phrases, comment on any areas where I've hit a snag etc.
------------------------------------
@
Waffa
Thanks, I totally forgot about keyboard jumping. It should be possible to just use SendKey functions. I'll play around with it and see what I get.
-----------------------------------
Here's a bit of my xml so far, just copy and paste it between the beginning and end of 2 other command groups in the voicecommands.xml file.
Code:
<commandGroup name="XBMC Testing Functions">
<command name="Action(11)">
<phrase>info,details,data,summary,about</phrase>
</command>
<command name="Action(10)">
<phrase>Back,up,return</phrase>
</command>
<command name="Action(27)">
<phrase>Codec</phrase>
</command>
<command name="Action(25)">
<phrase>Subtitles,sub,subs,caption,show text</phrase>
</command>
<command name="Action(12)">
<phrase>pause,unpause,wait,hold on,hold u, just a sec,just a second, just a minute, rezoom, resume, be right back, I'm back</phrase>
</command>
<command name="Action(13)">
<phrase>stop,end,fuck this movie</phrase>
</command>
<command name="Mute">
<phrase>mute,silence,shut up</phrase>
</command>
<command name="Exit">
<phrase>Good bye,good night,exit,close x b m c, shutdown</phrase>
</command>
<command name="Action(79)">
<phrase>play,enter,start,begin,watch,o k</phrase>
</command>
<command name="Action(20)">
<phrase>forward</phrase>
</command>
<command name="Action(22)">
<phrase>jump forward</phrase>
</command>
<command name="Action(21)">
<phrase>back</phrase>
</command>
<command name="Action(23)">
<phrase>Jump Back</phrase>
</command>
<command name="execbuiltin(Action(fastforward))">
<phrase>Fast Forward</phrase>
</command>
<command name="execbuiltin(Action(rewind))">
<phrase>Rewind</phrase>
</command>
<command name="execbuiltin(Action(increaserating))">
<phrase>I like it, I love it</phrase>
</command>
<command name="execbuiltin(Action(decreaserating))">
<phrase>I don't like it, I hate it, it sucks, it blows</phrase>
</command>
<command name="execbuiltin(Action(select))">
<phrase>Select</phrase>
</command>
<command name="execbuiltin(EjectTray())">
<phrase>Open Tray, Open Drive, Close Tray, Close Drive</phrase>
</command>
</commandGroup>
<commandGroup name="Launch XBMC">
<command name="C:\XBMC_SVN\XBMC\XBMC.exe">
<phrase>x b m c, xbox media center, let's watch a movie, movies</phrase>
</command>
<command name="notepad">
<phrase>note pad</phrase>
</command>
</commandGroup>
<commandGroup name="XBMC Jumplists">
<command name="execbuiltin(Action(jumpsms2))">
<phrase>A</phrase>
</command>
</commandGroup>
<commandGroup name="XBMC Help">
<command name="execbuiltin(Notification(Voice Help,'To access help ask "How do I..." and the function you're trying to use or say List Commands for some frequently used voice commands.',35000))">
<phrase>Help</phrase>
</command>
<command name="execbuiltin(Notification(Voice Help,'Say Up Down Left or Right to move the cursor in that direction',15000))">
<phrase>How do I navigate, How do I move the cursor</phrase>
</command>
<command name="execbuiltin(Notification(Voice Help,'Say Play to begin playback of the selected media',15000))">
<phrase>How do I play a movie, how do I play movies, how do I play a TV show, how do I play TV, how do I play music, how do I play M P 3's, how do I play my media</phrase>
</command>
<command name="execbuiltin(Notification(Voice Help,'Say Fast forward, forward, jump forward, rewind, back, or jump back to move your progress in a video or music file',15000))">
<phrase>How do I fast forward, how do I rewind, how do I skip ahead, how do I replay</phrase>
</command>
<command name="execbuiltin(Notification(Voice Help,'Say Pause to pause the media and stop to return to the media selection screen',15000))">
<phrase>how do I stop, how do I pause</phrase>
</command>
<command name="execbuiltin(Notification(Voice Help,'Say Select to choose the highlighted menu, item, or file',15000))">
<phrase>how do I select, how do I pick, how do I choose</phrase>
</command>
<command name="execbuiltin(Notification(Voice Help,'Say Subs or Subtitles to enable subtitles in your video. You must have a local subtitles file for the movie or show for this to work',15000))">
<phrase>How do i turn on subtitles, how do I see subtitles, how do I turn on closed captioning</phrase>
</command>
<command name="execbuiltin(Notification(Voice Help,'Commands are Up Down Left Right Select Play Pause Stop Forward Back Jump-Forward Jump-Back Fast-Forward Rewind Info and Subtitles',45000))">
<phrase>Commands, List Commands</phrase>
</command>
</commandGroup>
This excludes some of the currently non-working functions, but anyone who can cut and paste can at least see what I'm up to and try it out.
The next things to do going forward are:
• Add lettered jumplists
• Add command function for any named button or menu in XBMC. If a user sees "Movies" it should go to movies, if the skin has a "Weather" menu, saying "Weather" should take them there. Basically, if the function or menu is already named by the skin, saying that name should return similar functionality for the sake of ease of use.