Page 1 of 1

Show windows with computer time

Posted: Mon Jul 30, 2012 7:52 am
by mywayfr
hello,
Somes time I need to know what is the current time while watching a movie(mediaplayer classic).
I don't find any source for that in Eventghost.
After searching on the net I've try this script:
#!/usr/bin/python
import time;

localtime = time.asctime( time.localtime(time.time()) )
print "Maintenant:", localtime

It works on the eventghost log, but I wish to show the result on the screen in first front.

Is that possible?

Many thanks, cheers :D

Re: Show windows with computer time

Posted: Mon Jul 30, 2012 11:04 am
by jonib
mywayfr wrote:Is that possible?
Of course.

Add eg.result = localtime after the print line in the Python script. Then add a Show OSD action right after the Python script with {eg.result} in the Text to display: area.

jonib

Re: Show windows with computer time

Posted: Mon Jul 30, 2012 11:14 am
by piert
OSD is your friend in this case.

You find your answer here:
http://www.eventghost.org/forum/viewtop ... f=2&t=2261

Good Luck

Re: Show windows with computer time

Posted: Tue Jul 31, 2012 2:27 am
by mywayfr
Many thanks for both of you :D

I will try those path

See you, cheers