News:

HOT TIP! Commands and groups can be copied and pasted directly from your command editor to the forum, and vice versa. This makes sharing command XML on the forum much easier!

Main Menu

OSD multi Line text

Started by Diabl0570, November 15, 2010, 09:06:34 AM

Previous topic - Next topic

0 Members and 2 Guests are viewing this topic.

Diabl0570

hello,

i'm trying to get from media monkey 3 things:
1: Artist
2: Album
3: Song

and i want to show the result in a multi OSD line Like in Eventghost you can you \n or in de OSD action just type a enter in the text

i tried thing like

and also tried the \n and the hard enter in the parameter text.


hope you can understand what i mean

Greats

Wanilton

#1
Try {cr}
Results.Regex parameters   :(.*)
OSD.ShowText parameters   Title: {match.5}{cr}Artist: {match.7}{cr}Album: {match.8}{cr}Year: {match.10}

Edit by james: I tuned off smileys because it was screwing up the :( in the regex parameters !
www.xbmcbrasil.net
XBMC  Brazilian Community Forum - Admin
Windows 8.1 - XBMC Gotham Custom Plus - Aeon MQ 5
My Room Entertaiment´s
About me

Diabl0570

Nope didn't worked
Thanks anyway!

Any one else who has a idee?

jitterjames

Wanilton is giving you the correct solution.  make sure you are using a recent version like the one found in the first post here: http://voxcommando.com/forum/index.php?topic=314.0

{cr} is the correct method of doing multiple lines in OSD.  You can't put multiple OSD actions in a row or they will just overwrite each other.  You need to put them all on the same call.
OSD.Showtext   line1{cr} line2{cr} line3...

Diabl0570

i though he wrote  \r, but now i see {cr}, gonne try it now ...

Diabl0570

oke so the multi line OSD works,

my only problem now is that i don't know how i can get the Artist, Album, Song and Year in one variable.

so that i can write them in a multi line OSD like:
Artist: result(1){cr} Album: result(2){cr} Song: result(3) {cr} Year: result(4)

thanks in advanced!

jitterjames

#6
yes, Wanilton's answer was for XBMC which returns all the song info with a single command, and we then use regular expressions to break it up.  MediaMonkey only returns one at a time, so we need to store each in a user variable.  This is a new feature so anyone who is interested in storing variables can take a look at the attached group.

to store a variable we first use a command that returns information

then we store it with the command
Results.StoreLast     myVariableName

later to use the variable in OSD or TTS commands, instead of using {lastresult} we use {var.myVariableName}

the results will remain stored in the variable until you close VoxCommando, or overwrite the variable with new data.

Diabl0570

thanks man you are the best!

gonne try it when i am home


THANKS XD