Author Topic: OSD multi Line text  (Read 3062 times)

0 Members and 1 Guest are viewing this topic.

Diabl0570

  • $upporter
  • Jr. Member
  • *****
  • Posts: 29
  • Karma: 0
    • View Profile
OSD multi Line text
« 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

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


hope you can understand what i mean

Greats

Wanilton

  • $upporter
  • Hero Member
  • *****
  • Posts: 559
  • Karma: 6
    • View Profile
    • XBMC Brazil Forum
Re: OSD multi Line text
« Reply #1 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 !
« Last Edit: November 15, 2010, 10:02:49 AM by jitterjames »
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

  • $upporter
  • Jr. Member
  • *****
  • Posts: 29
  • Karma: 0
    • View Profile
Re: OSD multi Line text
« Reply #2 on: November 15, 2010, 09:25:07 AM »
Nope didn't worked
Thanks anyway!

Any one else who has a idee?

jitterjames

  • Administrator
  • Hero Member
  • *****
  • Posts: 7713
  • Karma: 116
    • View Profile
    • VoxCommando
Re: OSD multi Line text
« Reply #3 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...

Diabl0570

  • $upporter
  • Jr. Member
  • *****
  • Posts: 29
  • Karma: 0
    • View Profile
Re: OSD multi Line text
« Reply #4 on: November 15, 2010, 10:03:38 AM »
i though he wrote  \r, but now i see {cr}, gonne try it now ...

Diabl0570

  • $upporter
  • Jr. Member
  • *****
  • Posts: 29
  • Karma: 0
    • View Profile
Re: OSD multi Line text
« Reply #5 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!

jitterjames

  • Administrator
  • Hero Member
  • *****
  • Posts: 7713
  • Karma: 116
    • View Profile
    • VoxCommando
Re: OSD multi Line text
« Reply #6 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.
« Last Edit: November 16, 2010, 10:45:17 AM by jitterjames »

Diabl0570

  • $upporter
  • Jr. Member
  • *****
  • Posts: 29
  • Karma: 0
    • View Profile
Re: OSD multi Line text
« Reply #7 on: November 16, 2010, 12:04:38 PM »
thanks man you are the best!

gonne try it when i am home


THANKS XD