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.

Command line issues

If you have a question or need help, this is the place to be.
Post Reply
chefbennyj
Posts: 1
Joined: Thu Apr 24, 2014 4:39 pm

Command line issues

Post by chefbennyj »

Hello,

Recently I have created a small media browser 3 client, console utility which reads events from the Server and then runs an eventghost commmand line, for a member on mediabrowser3.com

Works great!... well kind of....

I seem to be having issues with my commmand line parameters.

Here is an image of the EventGhost set up:


Image


I could post the entire VB.Net code here, but that would be pointless... I think.

the issue is I can't get the event to trigger from my commandline:


The code in the commandline I have so far is:

Code: Select all

"{root to EventGhost Folder}\EventGhost.exe"  -e SmartLinc: Screne  Lights.On 
Perhaps I am missing quotes somewhere. I am not sure.

by the way I have the little app running as administator, which I found was causing issues at first.

Thank you a head of time. I have spent a long time on this already, it was supposed to take an hour, it has taken a couple days.

Ben
Last edited by chefbennyj on Fri Apr 25, 2014 11:40 am, edited 1 time in total.
kkl
Experienced User
Posts: 317
Joined: Wed May 04, 2011 9:32 pm

Re: Command line issues

Post by kkl »

See http://www.eventghost.org/docs/_sources/commandline.txt for command line syntax. For events, it is:
.. cmdoption:: -event <eventname> [<payload> ...]

If you issue:

Code: Select all

eventghost.exe cmdoption:: -event "SmartLinc: Scene Lights.On"
(note the quotation marks since you're using spaces in your event)
you'll get this event:
Main.SmartLinc: Scene Lights.On

That's what you will drag from the log pane over to your macro that you wish to trigger. In your example, you're not using a payload.

Edit: cmdoption:: is optional
Post Reply