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.
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?
-
therealbiglou
- Experienced User
- Posts: 126
- Joined: Sat May 19, 2012 4:33 am
Simple popup display message?
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!
If anyone knows how to do this, I would be over appreciative!
Re: Simple popup display message?
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
jonib
-
therealbiglou
- Experienced User
- Posts: 126
- Joined: Sat May 19, 2012 4:33 am
Re: Simple popup display message?
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?
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?
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?
Re: Simple popup display message?
Sure just put one(or several) of the examples below in the text field.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?
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.
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.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?
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
-
therealbiglou
- Experienced User
- Posts: 126
- Joined: Sat May 19, 2012 4:33 am
Re: Simple popup display message?
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.
It looks like my fun little pet project has come to an end.
Re: Simple popup display message?
I did a quick search and found this New Plugin - MC Message pop-up maybe it could work?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.
Only if you give up.It looks like my fun little pet project has come to an end.
jonib
-
therealbiglou
- Experienced User
- Posts: 126
- Joined: Sat May 19, 2012 4:33 am
Re: Simple popup display message?
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.
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?
You could try something like this with a macro and a python script:
Then drag & drop the event in the macro you would like to display in the message box
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)
My released plugins
https://drive.google.com/drive/folders/ ... y01eVBKeHM
https://drive.google.com/drive/folders/ ... y01eVBKeHM
-
therealbiglou
- Experienced User
- Posts: 126
- Joined: Sat May 19, 2012 4:33 am
Re: Simple popup display message?
Unfortunately, this will not display messages on top of a full-screen WMC.
Re: Simple popup display message?
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.
I was using it to display caller id info when someone called my google voice number.
Code: Select all
http://mcecomputer:40510/msgbox "caption" "message" <timeout seconds>