Author Topic: Minimize to Tray?  (Read 5231 times)

0 Members and 1 Guest are viewing this topic.

MiLO83

  • $upporter
  • Jr. Member
  • *****
  • Posts: 11
  • Karma: 0
    • View Profile
Minimize to Tray?
« on: October 09, 2011, 01:19:07 AM »
I can't seem to find how to minimize VoxCommando to the Trey instead of the Task Bar in Windows 7?

Also, I have tried to copy the "Play Movie" command and point it to XbmcPayloads\xbmcMusicVideos.xml to request Music Videos, but it doesn't work?
Does anybody have an idea how to voice control music videos in VoxCommando?

Thank you,
     - MiLO83

P.S - I bought the $35 full version a few days ago, and I suggest you do too!

Edited to attach XML (Which doesn't work)
« Last Edit: October 09, 2011, 05:40:03 AM by jitterjames »

jitterjames

  • Administrator
  • Hero Member
  • *****
  • Posts: 7713
  • Karma: 116
    • View Profile
    • VoxCommando
Re: Minimize to Trey?
« Reply #1 on: October 09, 2011, 05:38:09 AM »
try to double click the tray icon.  That should toggle the app visibility.

import the attached group by dragging the xml file into your command tree.

Thanks for supporting the software!
« Last Edit: October 09, 2011, 05:40:33 AM by jitterjames »

MiLO83

  • $upporter
  • Jr. Member
  • *****
  • Posts: 11
  • Karma: 0
    • View Profile
Re: Minimize to Tray?
« Reply #2 on: October 10, 2011, 08:44:46 PM »
This works GREAT!
Both Minimizing by double-clicking the trey icon, and also the xml you attached to your post!
Now I am wondering if it would be possible to play all music videos by artist?
I have trouble remembering which songs i have music videos for, but can remember the artists.
So something like "Computer play all music videos by X"?
I would create this command myself but i've only had the program a few days and right now its over my head.  :bonk
Thanks James!
    - MiLO

jitterjames

  • Administrator
  • Hero Member
  • *****
  • Posts: 7713
  • Karma: 116
    • View Profile
    • VoxCommando
Re: Minimize to Tray?
« Reply #3 on: October 10, 2011, 10:45:27 PM »
That's going to be a bit harder to set up.  You will need to use a smartplaylist, and generate a new payloadXML file specifically for artists of musicvideos.

1: Put the attached MTVbyArtist.xsp into the \smarts subfolder of VoxCommando.

2: Create the payloadxml file.

- make sure XBMC is running
- on the VC main menu click: GenXML >> Open Form
- go to the XBMC tab
- check that "Save to Folder" is set to XbmcPayloads (it should already be)
- at the bottom where is says cutsom scans paste the following
filename: mtvArtists.xml
SQL: queryvideodatabase(select distinct idartist,c10 from musicvideo join artistlinkmusicvideo ON musicvideo.idmvideo=artistlinkmusicvideo.idmvideo)

then click "Generate Custom"
then click "Save Settings" so you won't have to re-enter the information next time.

3: import the attached group.  (note the original music video command is in here so get rid of the old one)

save - restart
phew.  

*** note that my macro starts playing the playlist by sending an "enter" keypress.  If you have parent items enabled in XBMC that won't work because it'll end up selecting the ".." and going up a level.  You need to either disable parent items in XBMC or add an action to the macro to get it to go to the first item before selecting.
« Last Edit: October 10, 2011, 10:49:13 PM by jitterjames »

MiLO83

  • $upporter
  • Jr. Member
  • *****
  • Posts: 11
  • Karma: 0
    • View Profile
Re: Minimize to Tray?
« Reply #4 on: October 10, 2011, 11:51:58 PM »
I get found : 0.

Thanks for all your help. I am a rather advanced computer user so hopefully I will learn how to do this sort of stuff on my own quickly.  ;D
Oh and I tried both "SQL: queryvideodatabase(select distinct idartist,c10 from musicvideo join artistlinkmusicvideo ON musicvideo.idmvideo=artistlinkmusicvideo.idmvideo)"
AND "queryvideodatabase(select distinct idartist,c10 from musicvideo join artistlinkmusicvideo ON musicvideo.idmvideo=artistlinkmusicvideo.idmvideo)" the rather I got "Can't Connect"

  - MiLO

Wanilton

  • $upporter
  • Hero Member
  • *****
  • Posts: 559
  • Karma: 6
    • View Profile
    • XBMC Brazil Forum
Re: Minimize to Tray?
« Reply #5 on: October 11, 2011, 07:04:02 AM »
Well, in the GENXML, in field SQL, use only this:

queryvideodatabase(select distinct idartist,c10 from musicvideo join artistlinkmusicvideo ON musicvideo.idmvideo=artistlinkmusicvideo.idmvideo)

To generate the XML file, XBMC should be active, running...

In XBMC, check in Settings ->Option NETWORK ->
Allow Control XBMC via HTTP - SET ON
Set port : 8080

Username and password, equal in XBMC and voxcommando, for work, or set blank for 2 fields.

save, and try again







« Last Edit: October 11, 2011, 07:14:17 AM by Wanilton »
www.xbmcbrasil.net
XBMC  Brazilian Community Forum - Admin
Windows 8.1 - XBMC Gotham Custom Plus - Aeon MQ 5
My Room Entertaiment´s
About me

jitterjames

  • Administrator
  • Hero Member
  • *****
  • Posts: 7713
  • Karma: 116
    • View Profile
    • VoxCommando
Re: Minimize to Tray?
« Reply #6 on: October 11, 2011, 09:23:19 AM »
queryvideodatabase(select distinct idartist,c10 from musicvideo join artistlinkmusicvideo ON musicvideo.idmvideo=artistlinkmusicvideo.idmvideo)

that should work.  I've tested on Dharma and Eden.  Note that you need to have music videos scanned into your xbmc library properly.

I don't know how many music video artists you have but you could always create your own payloadList or payloadXML files and enter them manually.

@W: MiLO83 doesn't need to adjust his network settings.  As you can his in the screen capture his normal scans are all working fine.

MiLO83

  • $upporter
  • Jr. Member
  • *****
  • Posts: 11
  • Karma: 0
    • View Profile
Re: Minimize to Tray?
« Reply #7 on: October 11, 2011, 06:40:53 PM »


I'm getting Can't Connect?

I am using the October 6th Nightly Build of XBMC.
I will try the most recent nightly build and see if that works better.

Thanks for your time!
    - MiLO

EDIT: Right-Click the image and click "View Image" in Firefox to view full resolution :D
EDIT 2: I updated to last nights nightly build and have the same "can't connect" problem.
« Last Edit: October 11, 2011, 06:50:59 PM by MiLO83 »

jitterjames

  • Administrator
  • Hero Member
  • *****
  • Posts: 7713
  • Karma: 116
    • View Profile
    • VoxCommando
Re: Minimize to Tray?
« Reply #8 on: October 11, 2011, 07:20:16 PM »
the" can't connect" message is wrong. Sorry, my bad.  You are obviously connecting.  Some other error is being generated and I lazily assumed it would be a connection error.

Please open VC, open the GenXML form, try to run the custom query.

then close VC and send me the voxcommando.log

if you can also please send me your xbmc video database.

on my system it is located here:
C:\Users\james\AppData\Roaming\XBMC\userdata\Database\MyVideos56.db

replace james with your windows username
your filename number may not be 56.  I have a few different ones actually.  Please send me the most recently modified one if you have more than one called MyVideosXX.db

you can pm the file to me or email it if you want.

MiLO83

  • $upporter
  • Jr. Member
  • *****
  • Posts: 11
  • Karma: 0
    • View Profile
Re: Minimize to Tray?
« Reply #9 on: October 11, 2011, 07:45:50 PM »
Here are the Files you requested  ;D

edit by james: I deleted your attachment after downloading.
« Last Edit: October 11, 2011, 10:11:04 PM by jitterjames »

jitterjames

  • Administrator
  • Hero Member
  • *****
  • Posts: 7713
  • Karma: 116
    • View Profile
    • VoxCommando
Re: Minimize to Tray?
« Reply #10 on: October 11, 2011, 09:52:25 PM »
I think the problem is that you have 2 artists with different cases but they are showing up with the same ID.

idArtist   c10
3688   Rage Against The Machine
3688   Rage Against the Machine

I will fix the next version of VC to skip the duplicate rather than fail, but in the mean time you can probably correct the error by editing those, or removing one.

MiLO83

  • $upporter
  • Jr. Member
  • *****
  • Posts: 11
  • Karma: 0
    • View Profile
Re: Minimize to Tray?
« Reply #11 on: October 12, 2011, 12:04:05 PM »
Yup this was the problem!
As soon as I fixed the "the"'s to be all the same, everything went smooth as butter!

While we're on a roll, and I hope my suggestions are good ones,
Would it be possible to add an option to always start VoxCommando in "Prefix/Standby" mode?
It's the first thing I do every time I start VC, because sometimes I already have a movie/music playing.
THANKS SOOO MUCH!
    - MiLO

jitterjames

  • Administrator
  • Hero Member
  • *****
  • Posts: 7713
  • Karma: 116
    • View Profile
    • VoxCommando
Re: Minimize to Tray?
« Reply #12 on: October 12, 2011, 12:17:53 PM »
sure.  There are already two ways to do this.

Easy way:  start VoxCommando with the command line parameter like this:

Code: [Select]
VoxCommando.exe -standby
in the case of a shortcut you can edit the "target" field to look something like this

"D:\VoxTest\VoxCommando.exe" -standby

The other more fun way is to use the
Code: [Select]
VC.Loaded event to trigger a command with actions that set up things like this, and maybe give you a welcome message.