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.

send eg.result via network

If you have a question or need help, this is the place to be.
Post Reply
brotbuexe
Posts: 19
Joined: Wed Feb 21, 2007 8:40 pm

send eg.result via network

Post by brotbuexe »

Hi,

is it possible to send the {eg.result} via network sender/receiver to output it on another eventghost?

I want to use it to remote control applications for example spotify and I want the informations back (actual song, etc.)

Sven
User avatar
jitterjames
Experienced User
Posts: 677
Joined: Thu Aug 13, 2009 4:36 pm
Location: Quebec, Canada
Contact:

Re: send eg.result via network

Post by jitterjames »

yes, you could use network send/receive but it would be much easier with the broadcast plugin. (not part of standard install for some reason).

call it with a simple python script.
User avatar
jitterjames
Experienced User
Posts: 677
Joined: Thu Aug 13, 2009 4:36 pm
Location: Quebec, Canada
Contact:

Re: send eg.result via network

Post by jitterjames »

here's the python script if you use network send/receive

Code: Select all

myeventname = "testEventName"
mypayload = "My payload is this..."

#or pass the eg.result in either part
#myeventname = eg.result
#mypayload = eg.result

eg.plugins.NetworkSender.Map(myeventname+u" '"+mypayload+u"'")
and this is the event that is generated.
TCP.testEventName 'My payload is this...' ['127.0.0.1', u'withoutRelease']

the stuff at the end is generated by the plugin - I don't 'know if it would cause problems, but the broadcast plugin doesn't add that stuff afaik.

J
brotbuexe
Posts: 19
Joined: Wed Feb 21, 2007 8:40 pm

Re: send eg.result via network

Post by brotbuexe »

the broadcast plugin would be nice, but I have to send to different subnets, so I try the scripting with network sender.
User avatar
Pako
Plugin Developer
Posts: 2294
Joined: Sat Nov 11, 2006 1:31 pm
Location: Czech Republic
Contact:

Re: send eg.result via network

Post by Pako »

Perhaps this modification it would be useful for you.
Pako
Post Reply