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.

How do I write a macro to trigger from payload of an event?

If you have a question or need help, this is the place to be.
Post Reply
nzdreamer55
Posts: 10
Joined: Sat Jan 04, 2014 5:33 pm

How do I write a macro to trigger from payload of an event?

Post by nzdreamer55 »

Hello everyone,

I am trying to use the command line option to create an event within eventghost that I can then use to trigger a macro within eventghost. Right now I know I can use the following:

-event <eventname> [<payload> ...]
Issues the event <eventname> in the currently running EventGhost instance. Optionally you can specify one or more <payload> strings, that will be added to the event in the eg.event.payload field.

I would like to parse out the payload so that I know the event created is specific to the commandline option. I tried writing the commandline like this:

eventghost.exe -e <System.WokeByUserIntervention> [<USBUIRTACTION>]

But it didn't work.

when I tried like this

eventghost.exe -event System.WokeByUserIntervention USB Fire

In eventghost I got this

Process.Created.EventGhost

I'm trying to build on what was posted here

viewtopic.php?f=2&t=5963

Thanks for any help you can give me

-S

PS: Is there a way to have the restart or shutdown action of windows trigger an event that I can link to a macro?
blaher
Experienced User
Posts: 487
Joined: Thu Nov 17, 2011 1:27 am

Re: How do I write a macro to trigger from payload of an eve

Post by blaher »

nzdreamer55 wrote:PS: Is there a way to have the restart or shutdown action of windows trigger an event that I can link to a macro?
http://www.eventghost.org/forum/viewtop ... f=2&t=5535
Post Reply