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.
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
-e {EventName} causes EvenGhost to unhide
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.
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
Works fine here. What version are you using? What is the exact command line you're using?
- Jeff
- Jeff
Re: -e {EventName} causes EvenGhost to unhide
I am using 3.6.1449
I am calling it from SageTV using the ExecuteProcess() command. The actual command looks like:
This should equate to:I also tried:
I will test just using a batch file to do it and see what happens. Maybe Sage is the problem.
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)Code: Select all
eventghost.exe -e findXBMCCode: Select all
eventghost.exe -hide -e findXBMC-
jsonnabend
- Experienced User
- Posts: 127
- Joined: Wed Apr 23, 2008 7:35 pm
Re: -e {EventName} causes EvenGhost to unhide
Try minimizing EG to the tray and then run the command from a command prompt. That's a quick way to test.
- Jeff
- Jeff
Re: -e {EventName} causes EvenGhost to unhide
Use the -n network interface, this seems to occur when the GUI and backend are not the same user account.
Re: -e {EventName} causes EvenGhost to unhide
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.
Re: -e {EventName} causes EvenGhost to unhide
Are you running Sage as a service?
Are you connecting on a remote Client?
Placeshifter? MVP?
Are you connecting on a remote Client?
Placeshifter? MVP?
Re: -e {EventName} causes EvenGhost to unhide
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?
Re: -e {EventName} causes EvenGhost to unhide
In your services (administrative tools) have the SageTVService run as whatever username and password you use with EventGhost and and SageTVClient.
Re: -e {EventName} causes EvenGhost to unhide
It is already set that way.CollinR wrote:In your services (administrative tools) have the SageTVService run as whatever username and password you use with EventGhost and and SageTVClient.
- Bitmonster
- Site Admin
- Posts: 2239
- Joined: Mon Feb 06, 2006 10:28 pm
Re: -e {EventName} causes EvenGhost to unhide
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.CollinR wrote:Use the -n network interface, this seems to occur when the GUI and backend are not the same user account.
Please post software-related questions in the forum - PMs will only be answered, if really private, thanks!
Re: -e {EventName} causes EvenGhost to unhide
So it's just:
then?
Do I need to turn on some network interface within evenghost for the -n switch to work?
Code: Select all
eventghost.exe -n findxbmcDo I need to turn on some network interface within evenghost for the -n switch to work?
Re: -e {EventName} causes EvenGhost to unhide
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
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
Re: -e {EventName} causes EvenGhost to unhide
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.
Re: -e {EventName} causes EvenGhost to unhide
That worked. When doing that command in Sage I realized my error for using the -e syntax. I needed to use: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.
Code: Select all
ExecuteProcess("C:\\Program Files\\EventGhost\\EventGhost.exe", java_lang_String_split("-e,findxbmc", ","), null, null)