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.

-e {EventName} causes EvenGhost to unhide

If you have a question or need help, this is the place to be.
Post Reply
kricker
Experienced User
Posts: 147
Joined: Thu Oct 12, 2006 5:49 am
Contact:

-e {EventName} causes EvenGhost to unhide

Post by kricker »

EG vs 3.6.1449

I am trying to send a running instance of Eventghost a command using the -e switch. The command works, but EvenGhost restores itself from the tray. I am wanting to send a command to have EvenGhost switch between 2 different apps without seeing EG.
jsonnabend
Experienced User
Posts: 127
Joined: Wed Apr 23, 2008 7:35 pm

Re: -e {EventName} causes EvenGhost to unhide

Post by jsonnabend »

Works fine here. What version are you using? What is the exact command line you're using?

- Jeff
kricker
Experienced User
Posts: 147
Joined: Thu Oct 12, 2006 5:49 am
Contact:

Re: -e {EventName} causes EvenGhost to unhide

Post by kricker »

I am using 3.6.1449

I am calling it from SageTV using the ExecuteProcess() command. The actual command looks like:

Code: Select all

ExecuteProcess("C:\\Program Files\\EventGhost\\EventGhost.exe","-e findXBMC", null, null)
This should equate to:

Code: Select all

eventghost.exe -e findXBMC
I also tried:

Code: Select all

eventghost.exe -hide -e findXBMC
I will test just using a batch file to do it and see what happens. Maybe Sage is the problem.
jsonnabend
Experienced User
Posts: 127
Joined: Wed Apr 23, 2008 7:35 pm

Re: -e {EventName} causes EvenGhost to unhide

Post by jsonnabend »

Try minimizing EG to the tray and then run the command from a command prompt. That's a quick way to test.

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

Re: -e {EventName} causes EvenGhost to unhide

Post by CollinR »

Use the -n network interface, this seems to occur when the GUI and backend are not the same user account.
kricker
Experienced User
Posts: 147
Joined: Thu Oct 12, 2006 5:49 am
Contact:

Re: -e {EventName} causes EvenGhost to unhide

Post by kricker »

I did try from a command prompt and it worked fine. EventGhost did not unhide. I also realized I was trying to call a macro and not an event, so I made the proper event and placed it in my macro. I've posted on the Sage forums since it appears to be an issue with the ExecuteProcess() command. I haven't tried the network interface yet, but I don't understand how the GUI and backend would be under different users.
CollinR
Experienced User
Posts: 265
Joined: Tue Sep 05, 2006 7:16 am
Location: Oklahoma
Contact:

Re: -e {EventName} causes EvenGhost to unhide

Post by CollinR »

Are you running Sage as a service?

Are you connecting on a remote Client?

Placeshifter? MVP?
kricker
Experienced User
Posts: 147
Joined: Thu Oct 12, 2006 5:49 am
Contact:

Re: -e {EventName} causes EvenGhost to unhide

Post by kricker »

I am running Sage as a service. But I am running the client on the same local computer. Everything is run on the same PC. Do you think it is because I am using the Sage service?
CollinR
Experienced User
Posts: 265
Joined: Tue Sep 05, 2006 7:16 am
Location: Oklahoma
Contact:

Re: -e {EventName} causes EvenGhost to unhide

Post by CollinR »

In your services (administrative tools) have the SageTVService run as whatever username and password you use with EventGhost and and SageTVClient.
kricker
Experienced User
Posts: 147
Joined: Thu Oct 12, 2006 5:49 am
Contact:

Re: -e {EventName} causes EvenGhost to unhide

Post by kricker »

CollinR wrote:In your services (administrative tools) have the SageTVService run as whatever username and password you use with EventGhost and and SageTVClient.
It is already set that way.
User avatar
Bitmonster
Site Admin
Posts: 2239
Joined: Mon Feb 06, 2006 10:28 pm

Re: -e {EventName} causes EvenGhost to unhide

Post by Bitmonster »

CollinR wrote:Use the -n network interface, this seems to occur when the GUI and backend are not the same user account.
This might be the reason. The -e option works through COM and this is limited to the current user session. -n will work over all boundaries.
Please post software-related questions in the forum - PMs will only be answered, if really private, thanks!
kricker
Experienced User
Posts: 147
Joined: Thu Oct 12, 2006 5:49 am
Contact:

Re: -e {EventName} causes EvenGhost to unhide

Post by kricker »

So it's just:

Code: Select all

eventghost.exe -n findxbmc
then?

Do I need to turn on some network interface within evenghost for the -n switch to work?
CollinR
Experienced User
Posts: 265
Joined: Tue Sep 05, 2006 7:16 am
Location: Oklahoma
Contact:

Re: -e {EventName} causes EvenGhost to unhide

Post by CollinR »

Yes you need to enable both the network sender and reciever plugins.

You will use this syntax

eventghost.exe -n 127.0.0.1:1024 1234 findxbmc

Thats

-n (network interface)
127.0.0.1 (loopback, you can sub the IP of the machine, local or remote)
:1024 (network port configured in the plugins)
1234 (password configured in the plugins, must match)
findxbmc (event to trigger)

Your event will come through as TCP.findxbmc
kricker
Experienced User
Posts: 147
Joined: Thu Oct 12, 2006 5:49 am
Contact:

Re: -e {EventName} causes EvenGhost to unhide

Post by kricker »

Thank you for the info. Right now I'm calling a batch file from Sage to do it and it's working fine. I'll try this and see what it does though.
kricker
Experienced User
Posts: 147
Joined: Thu Oct 12, 2006 5:49 am
Contact:

Re: -e {EventName} causes EvenGhost to unhide

Post by kricker »

kricker wrote:Thank you for the info. Right now I'm calling a batch file from Sage to do it and it's working fine. I'll try this and see what it does though.
That worked. When doing that command in Sage I realized my error for using the -e syntax. I needed to use:

Code: Select all

ExecuteProcess("C:\\Program Files\\EventGhost\\EventGhost.exe", java_lang_String_split("-e,findxbmc", ","), null, null)
This code properly sends the arguments.
Post Reply