ShowOSD multiline

Do you have questions about writing plugins or scripts in Python? Meet the coders here.
Post Reply
vuego
Experienced User
Posts: 70
Joined: Wed Jan 17, 2007 9:22 pm
Location: Sweden

ShowOSD multiline

Post by vuego » Wed Apr 23, 2008 9:05 pm

Hi I have a simple question.
I'm trying to make ShowOSD using two lines.

I tried:

Code: Select all

eg.plugins.EventGhost.ShowOSD("Message A", None, (255, 255, 255), (0, 0, 0), 1, (20, 20), 0, 3.0)
eg.plugins.EventGhost.ShowOSD("Message B", None, (255, 255, 255), (0, 0, 0), 1, (20, 160), 0, 3.0)
But it shows only Message B.

Code: Select all

eg.plugins.EventGhost.ShowOSD("Message A\r\nMessage B", None, (255, 255, 255), (0, 0, 0), 1, (20, 20), 0, 3.0)
CrLf is ignored.

What else can I try?

Thanks

Xenon
Posts: 1
Joined: Thu Jan 31, 2008 9:50 am
Location: Cologne, Germany

Re: ShowOSD multiline

Post by Xenon » Sun May 04, 2008 1:18 pm

Hi vuego,

I'm using EventGhost for quite a while and as I'm using EG to display songinformations, I would like multiline support too. Especially when the combination of artist and title results in a very long string.
Altough I'm a python newbie, I looked around in ShowOSD.py and it seems to me, that this currently can't be done via ShowOSD. Right now I'm trying to extend this script according to my needs. But it would be great, if a coder better than me would implement this.
Meanwhile you can use the OSDMenu. It's not so easy to configure this for such a simple case. But it's surely possible.

User avatar
Bitmonster
Site Admin
Posts: 2239
Joined: Mon Feb 06, 2006 10:28 pm

Re: ShowOSD multiline

Post by Bitmonster » Wed May 07, 2008 1:33 pm

0.3.6.1397 has multiline OSD support.
Please post software-related questions in the forum - PMs will only be answered, if really private, thanks!

vuego
Experienced User
Posts: 70
Joined: Wed Jan 17, 2007 9:22 pm
Location: Sweden

Re: ShowOSD multiline

Post by vuego » Sat May 10, 2008 6:38 pm

Thanks alot Bitmonster

This user support is why I like EventGhost so much and also the reason I made a donation. Keep up the good work :)

Post Reply