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.

Create event from external app?

If you have a question or need help, this is the place to be.
Post Reply
User avatar
riro
Posts: 8
Joined: Thu Jan 08, 2009 4:35 pm
Location: Sweden
Contact:

Create event from external app?

Post by riro »

I want to create an event from an external app without using the -e parameter on the .exe-file.

Can someone point me in the right direction...?
(VB, C# or some other language)
User avatar
Pako
Plugin Developer
Posts: 2294
Joined: Sat Nov 11, 2006 1:31 pm
Location: Czech Republic
Contact:

Re: Create event from external app?

Post by Pako »

You can use the built-in ActiveX/COM server EventGhost and method TriggerEvent(PrintableString) or
TriggerEvent(PrintableString, Payload).
See EventGhost.vbs script in folder plugins/MediaMonkey.

Pako
User avatar
jinxdone
Plugin Developer
Posts: 443
Joined: Tue Jan 02, 2007 4:08 pm

Re: Create event from external app?

Post by jinxdone »

Or use TCP sockets and connect to the network receiver plugin. As a bonus you will get obiviously get network functionality at the same time.

To do it take a look at the network sender plugin's code and replicate exactly what it does. (It's pretty simple)
User avatar
jitterjames
Experienced User
Posts: 677
Joined: Thu Aug 13, 2009 4:36 pm
Location: Quebec, Canada
Contact:

Re: Create event from external app?

Post by jitterjames »

Pako wrote:You can use the built-in ActiveX/COM server EventGhost and method TriggerEvent(PrintableString) or
TriggerEvent(PrintableString, Payload).
See EventGhost.vbs script in folder plugins/MediaMonkey.

Pako
Is it possible to do this with c#

I have looked at the eventghost.vbs script, but i can't figure out how it translates
damage
Posts: 40
Joined: Thu Nov 27, 2008 6:39 pm

Re: Create event from external app?

Post by damage »

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

Re: Create event from external app?

Post by jitterjames »

I figure I need to create a reference to a com dll but I can't find the dll file anywhere in the eventghost directories.
Post Reply