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.

eg.TriggerRemoteEvent

If you have a question or need help, this is the place to be.
Post Reply
jsonnabend
Experienced User
Posts: 127
Joined: Wed Apr 23, 2008 7:35 pm

eg.TriggerRemoteEvent

Post by jsonnabend »

Is there a way to trigger a remote event in a Python script (like eg.triggerevent for local events)?

TIA

- Jeff
CollinR
Experienced User
Posts: 265
Joined: Tue Sep 05, 2006 7:16 am
Location: Oklahoma
Contact:

Re: eg.TriggerRemoteEvent

Post by CollinR »

Use the network sender plugin, on the other end use the network reciever.


Works great too BTW! Every PC I own is interlinked like this.
jsonnabend
Experienced User
Posts: 127
Joined: Wed Apr 23, 2008 7:35 pm

Re: eg.TriggerRemoteEvent

Post by jsonnabend »

No can-do on that, I'm afraid. I want to setup a ping responder, of sorts, and I won't know the sender's IP until the incoming event is received (it's payload item 0). I need to use code to send the response back to the requesting host.

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

Re: eg.TriggerRemoteEvent

Post by Bitmonster »

There is no official way, but you can use currently in 0.3.5:

Code: Select all

from NetworkSend import NetworkSend
NetworkSend(host, port, password, eventString, payload=None)
Please post software-related questions in the forum - PMs will only be answered, if really private, thanks!
User avatar
Bitmonster
Site Admin
Posts: 2239
Joined: Mon Feb 06, 2006 10:28 pm

Re: eg.TriggerRemoteEvent

Post by Bitmonster »

@Pako
Wasn't there just a post from you here? Do you have deleted it yourself or has the forum software killed it?
Please post software-related questions in the forum - PMs will only be answered, if really private, thanks!
User avatar
Pako
Plugin Developer
Posts: 2294
Joined: Sat Nov 11, 2006 1:31 pm
Location: Czech Republic
Contact:

Re: eg.TriggerRemoteEvent

Post by Pako »

jsonnabend wrote:No can-do on that, I'm afraid. I want to setup a ping responder, of sorts, and I won't know the sender's IP until the incoming event is received (it's payload item 0). I need to use code to send the response back to the requesting host.
Maybe help this:
http://www.eventghost.org/forum/viewtopic.php?f=5&t=678
Pako
jsonnabend
Experienced User
Posts: 127
Joined: Wed Apr 23, 2008 7:35 pm

Re: eg.TriggerRemoteEvent

Post by jsonnabend »

Pako wrote:
jsonnabend wrote:No can-do on that, I'm afraid. I want to setup a ping responder, of sorts, and I won't know the sender's IP until the incoming event is received (it's payload item 0). I need to use code to send the response back to the requesting host.
Maybe help this:
http://www.eventghost.org/forum/viewtopic.php?f=5&t=678
Pako
Very cool. I'll play with that tonight.

- Jeff
Post Reply