VoxCommando Forum

Help and Support (Using VoxCommando) => MediaMonkey => Topic started by: Diabl0570 on November 15, 2010, 09:06:34 AM

Title: OSD multi Line text
Post by: Diabl0570 on November 15, 2010, 09:06:34 AM
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
(http://img593.imageshack.us/img593/4733/capturerx.png)
and also tried the \n and the hard enter in the parameter text.


hope you can understand what i mean

Greats
Title: Re: OSD multi Line text
Post by: Wanilton on November 15, 2010, 09:15:59 AM
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 !
Title: Re: OSD multi Line text
Post by: Diabl0570 on November 15, 2010, 09:25:07 AM
Nope didn't worked
Thanks anyway!

Any one else who has a idee?
Title: Re: OSD multi Line text
Post by: jitterjames on November 15, 2010, 09:59:03 AM
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...
Title: Re: OSD multi Line text
Post by: Diabl0570 on November 15, 2010, 10:03:38 AM
i though he wrote  \r, but now i see {cr}, gonne try it now ...
Title: Re: OSD multi Line text
Post by: Diabl0570 on November 16, 2010, 09:04:16 AM
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!
Title: Re: OSD multi Line text
Post by: jitterjames on November 16, 2010, 10:26:09 AM
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.
Title: Re: OSD multi Line text
Post by: Diabl0570 on November 16, 2010, 12:04:38 PM
thanks man you are the best!

gonne try it when i am home


THANKS XD