Notice: This forum has been recovered from an old backup, so some content, links, and dates may be outdated. The forum is currently read-only while we restore sign-in and registration functionality. Details

If you find this forum valuable and would like to help keep it online, donations to help cover hosting and domain costs are greatly appreciated, but never expected. You can support the forum through Buy Me a Coffee or Ko-fi. Thank you for helping preserve the EventGhost community.

Simple popup display message?

If you have a question or need help, this is the place to be.
Post Reply
therealbiglou
Experienced User
Posts: 126
Joined: Sat May 19, 2012 4:33 am

Simple popup display message?

Post by therealbiglou »

I have Tasker on my Android device sending EventGhost the body of text messages to the webserver plugin via HTTP GET. I was wondering if there was an Event ghost plugin that could display this event name (the text body) in a simple popup box.

If anyone knows how to do this, I would be over appreciative!
jonib
Plugin Developer
Posts: 1328
Joined: Thu Mar 26, 2009 9:33 pm
Location: Sweden

Re: Simple popup display message?

Post by jonib »

I use the EventGhost\Show OSD action to display some texts from events, like new email, it's not an popup box more of a popup text.

jonib
XBMC2 plugin to control XBMC. If you want to flatter me Image
therealbiglou
Experienced User
Posts: 126
Joined: Sat May 19, 2012 4:33 am

Re: Simple popup display message?

Post by therealbiglou »

How would I go about including the text from an event in Show OSD?

For instance, the event from a recent text is named: "HTTP.ESPN NHL - LOS Goal 8:00 OT - LOS 3 STL 2 - Goal scored by Slava Voynov(Wristshot 29 ft) assisted by Anze Kopitar and Justin Williams []" and I would like everything after the HTTP. prefix to be displayed.

Is there a way to make variables from an event and then use that variable name in Show OSD?
therealbiglou
Experienced User
Posts: 126
Joined: Sat May 19, 2012 4:33 am

Re: Simple popup display message?

Post by therealbiglou »

Additionally, I'm testing out Show OSD with a test message and it does not appear on top of Windows Media Center in full screen. Is there a way I can force that?
jonib
Plugin Developer
Posts: 1328
Joined: Thu Mar 26, 2009 9:33 pm
Location: Sweden

Re: Simple popup display message?

Post by jonib »

therealbiglou wrote:How would I go about including the text from an event in Show OSD?

For instance, the event from a recent text is named: "HTTP.ESPN NHL - LOS Goal 8:00 OT - LOS 3 STL 2 - Goal scored by Slava Voynov(Wristshot 29 ft) assisted by Anze Kopitar and Justin Williams []" and I would like everything after the HTTP. prefix to be displayed.

Is there a way to make variables from an event and then use that variable name in Show OSD?
Sure just put one(or several) of the examples below in the text field.
Use {eg.event.suffix} to get the last part of the event string (after the first dot).
Use {eg.event.payload} to get the content of the event.
There are some more options here.
Additionally, I'm testing out Show OSD with a test message and it does not appear on top of Windows Media Center in full screen. Is there a way I can force that?
I don't know how WMC creates its fullscreen window, but some programs mostly games use a special way to create the window and need special code to show text or graphics from a external program. And I'm not sure EventGhost has anything like that.

Edit: For WMC there might be a way to send the message as a notification? I know XBMC has that, don't know anything about WMC.

jonib
XBMC2 plugin to control XBMC. If you want to flatter me Image
therealbiglou
Experienced User
Posts: 126
Joined: Sat May 19, 2012 4:33 am

Re: Simple popup display message?

Post by therealbiglou »

Thanks for your help. Everything is working great. However, after further reasearch, it looks like it will be impossible to push these messages in front of a full screen WMC.

It looks like my fun little pet project has come to an end. :(
jonib
Plugin Developer
Posts: 1328
Joined: Thu Mar 26, 2009 9:33 pm
Location: Sweden

Re: Simple popup display message?

Post by jonib »

therealbiglou wrote:Thanks for your help. Everything is working great. However, after further reasearch, it looks like it will be impossible to push these messages in front of a full screen WMC.
I did a quick search and found this New Plugin - MC Message pop-up maybe it could work?
It looks like my fun little pet project has come to an end. :(
Only if you give up. :twisted:

jonib
XBMC2 plugin to control XBMC. If you want to flatter me Image
therealbiglou
Experienced User
Posts: 126
Joined: Sat May 19, 2012 4:33 am

Re: Simple popup display message?

Post by therealbiglou »

Well, I guess I haven't given up... but the internet isn't making it very easy on me. It turns out that the forum administrator had removed and disabled all downloads... and that's after I discovered another developer actually turned that script into an EG plugin!!!

I was able to track down the developer and am awaiting a reply on whether he still has the plugin for me to use.
krambriw
Plugin Developer
Posts: 2570
Joined: Sat Jun 30, 2007 2:51 pm
Location: Stockholm, Sweden
Contact:

Re: Simple popup display message?

Post by krambriw »

You could try something like this with a macro and a python script:

Code: Select all

from win32gui import MessageBox

eg.event.suffix_copy = eg.event.suffix
eg.event.payload_copy = eg.event.payload

MessageBox(0, eg.event.payload_copy , eg.event.suffix_copy, 0)

Then drag & drop the event in the macro you would like to display in the message box
therealbiglou
Experienced User
Posts: 126
Joined: Sat May 19, 2012 4:33 am

Re: Simple popup display message?

Post by therealbiglou »

Unfortunately, this will not display messages on top of a full-screen WMC.
w84no1
Posts: 1
Joined: Wed May 22, 2013 8:16 pm

Re: Simple popup display message?

Post by w84no1 »

You can do it without EG. When I was using MCE, I used http://vmccontroller.codeplex.com/. It creates a webserver and you can use a browser to connect and control your Media Center.

Code: Select all

http://mcecomputer:40510/msgbox "caption" "message" <timeout seconds>
I was using it to display caller id info when someone called my google voice number.
Post Reply