News:

HOT TIP! In the command editor, you can ctrl-click and drag an item to create a copy of it.

Main Menu

Show Volume setting

Started by Foggy, January 20, 2011, 03:51:18 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Foggy

Hi,

Is it possible to have a command that shows the existing volume setting.

Best wishes.

jitterjames

can you be more specific?  system volume?  MM, iTunes, or XBMC?

Foggy

Hi James,

Yes - Sorry.

XBMC

System volume.


Best wishes.

jitterjames

see the attached

Foggy

Cool, Thank you very much.

Best wishes.

Foggy

I meant to add that I do try to understand the examples that you post in the hope it will help me in the future.

However XBMC volume went straight over my head :)

Once again, thank you & Best wishes.

jitterjames

there are a lot of different things going on there!  You need to know about the xbmc http api commands to know about the command GetVolume()

then you need to know what is being returned (you can see this by mousing over the command history for the action that sent the getVolume command.

then you need to know a bit about regular expressions.  We use regular expressions to extract the volume because xbmc is returning extra text that we don't want.

then we show the info.  If you look at the "what artist is this" commands you will see that they work basically the same way.

:)