Hey guys, I've learnt a lot in the last week or so. Thanks for all your help!
I would like to share the codes that I or the great members on the forums have made/refined to suit my needs, maybe be of interest to some of you.
"It's showtime"
When I want to watch a movie, this will change the output to "PC screen only" for some reason it's not "second screen" on my PC. You can edit the key inputs to suit you. Speaking of which, is there any way we can just input the screen name instead of inputting keys to manually press? (check the script).
So this does the following:
1- Change video output to 2nd screen (HDMI)
2- Sets audio output to (HDMI)
3- Starts XBMC
4- "Enjoy the show"
Then of course reverse+exit XBMC when finished.
<?xml version="1.0" encoding="utf-16"?>
<command id="560" name="Android On" enabled="true" alwaysOn="False" confirm="False" requiredConfidence="0" loop="False" loopDelay="0" loopMax="0" description="">
<action>
<cmdType>XJson.Raw</cmdType>
<cmdString>player.setspeed&&"playerid":1,"speed":2</cmdString>
<cmdRepeat>0</cmdRepeat>
</action>
<action>
<cmdType>XJson.Raw</cmdType>
<cmdString>player.setspeed&&"playerid":1,"speed":0</cmdString>
<cmdRepeat>1</cmdRepeat>
</action>
<action>
<cmdType>XJson.Raw</cmdType>
<cmdString>Input.ExecuteAction&&"action":"pause"</cmdString>
<cmdRepeat>0</cmdRepeat>
</action>
<action>
<cmdType>VC.Pause</cmdType>
<cmdString>200</cmdString>
<cmdRepeat>1</cmdRepeat>
</action>
<action>
<cmdType>XJson.SoftMute</cmdType>
<cmdString>0</cmdString>
<cmdRepeat>1</cmdRepeat>
</action>
<action>
<cmdType>VC.Pause</cmdType>
<cmdString>200</cmdString>
<cmdRepeat>1</cmdRepeat>
</action>
<event>AV.Mic.On</event>
</command>
Then Obviously when you let go of the button on VoxWav it will Unmute and Resume.
"Mic Off"
<?xml version="1.0" encoding="utf-16"?>
<command id="526" name="Android Off" enabled="true" alwaysOn="False" confirm="False" requiredConfidence="0" loop="False" loopDelay="0" loopMax="0" description="">
<action>
<cmdType>XJson.Raw</cmdType>
<cmdString>player.setspeed&&"playerid":1,"speed":0</cmdString>
<cmdRepeat>1</cmdRepeat>
</action>
<action>
<cmdType>VC.Pause</cmdType>
<cmdString>200</cmdString>
<cmdRepeat>0</cmdRepeat>
</action>
<action>
<cmdType>XJson.Raw</cmdType>
<cmdString>Input.ExecuteAction&&"action":"pause"</cmdString>
<cmdRepeat>0</cmdRepeat>
</action>
<action>
<cmdType>VC.Pause</cmdType>
<cmdString>300</cmdString>
<cmdRepeat>1</cmdRepeat>
</action>
<action>
<cmdType>XJson.SoftUnMute</cmdType>
<cmdString />
<cmdRepeat>1</cmdRepeat>
</action>
<event>AV.Mic.Off</event>
</command>
"Run Pandora"
This obviously runs the Pandora add-on
<?xml version="1.0" encoding="utf-16"?>
<command id="443" name="run Pandora" enabled="true" alwaysOn="False" confirm="False" requiredConfidence="0" loop="False" loopDelay="0" loopMax="0" description="">
<action>
<cmdType>Launch.RawParam</cmdType>
<cmdString>{path.pfx86}\XBMC\XBMC.exe</cmdString>
<cmdRepeat>1</cmdRepeat>
</action>
<action>
<cmdType>VC.Pause</cmdType>
<cmdString>2000</cmdString>
<cmdRepeat>1</cmdRepeat>
</action>
<action>
<cmdType>XJson.Raw</cmdType>
<cmdString>Addons.ExecuteAddon&&"addonid":"script.audio.pandora"</cmdString>
<cmdRepeat>1</cmdRepeat>
</action>
<phrase>run Pandora</phrase>
</command>
"Now Playing"
In movie mode, if I go to home screen or anything out of the Now Playing, it's a nightmare trying to get back to the player window! (maybe I haven't figured it out yet). This is just a simple mouse click to click on the side to get me to that window.
Remember you might have to change the mouse coordinates depending on your viewing resolution
<?xml version="1.0" encoding="utf-16"?>
<command id="291" name="now playing" enabled="true" alwaysOn="False" confirm="False" requiredConfidence="0" loop="False" loopDelay="0" loopMax="0" description="">
<action>
<cmdType>Mouse.MoveAbsolute</cmdType>
<cmdString>2000,150</cmdString>
<cmdRepeat>1</cmdRepeat>
</action>
<action>
<cmdType>Mouse.LeftClick</cmdType>
<cmdString />
<cmdRepeat>1</cmdRepeat>
</action>
<phrase>now playing</phrase>
</command>
That's all for now. Please feel free to suggest anyways to make these better. Especially the way it changes display output.
Cheers