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 to send commands to EventGhost?

If you have a question or need help, this is the place to be.
Post Reply
PanteraGSTK
Posts: 25
Joined: Fri Feb 19, 2010 1:30 am

How to send commands to EventGhost?

Post by PanteraGSTK »

I'm using EventGhost 0.3.7.r1436, and I am trying to get an external progran (SageTV) to send commands to EG. How do I need to configure EG to receive commands from an external source? It would be easy if SageTV's screens and functions regestered as events, but they don't. The only thing that registers in eventghost is the window being activated or destroyed. If I could get SageTV actions (select TV, or movies, or whatever) to send a specific function to EG I'd be the happiest person ever...
BTW, I'm trying to get EG to send commands to my A/V receiver so the sound mode can change depending on what I choose in SageTV. I'd also like to expand this into lighting control (lights dim when I start a movie) and other things. Basically I want SageTV to tell EG what I want EG to tell other software/hardware to do.

Thoughts?
Beholder
Posts: 24
Joined: Sat Apr 18, 2009 3:39 pm

Re: How to send commands to EventGhost?

Post by Beholder »

What I would do is to configure Sage to somehow send some weird keystroke that EG would catch with its keyboard events plugin.
So.. On some action Sage presses for example ctrl+alt+shift+numpad* and then EG catches it and then does what it is supposed to do.

I configured my system with X-Fi Mode Changer this way and it works very well in conjunction with EG; fortunately, the mode changer has the ability to send hotkeys/keystrokes. If Sage does not have that ability.. well.. then I am writing in vain. Check the plugins for SageTv, there could be something..
User avatar
Livin
Experienced User
Posts: 792
Joined: Wed Oct 08, 2008 4:56 am

Re: How to send commands to EventGhost?

Post by Livin »

seems like a question to be asking on the Sage forum... likely many more experts on that app then here.
setup... XBMC, W7MC for DVR & Live OTA TV, JRMC for multi-zone audio, EG, MiCasaVerde Vera3, USB-UIRT IR receiver, Harmony remote, 5.2 home theater system
PanteraGSTK
Posts: 25
Joined: Fri Feb 19, 2010 1:30 am

Re: How to send commands to EventGhost?

Post by PanteraGSTK »

I did. I haven't gotten anything yet as this is not a function that sagetv supports. It has the ability to launch external applications with external commands (like if I launched from a command line). I was thinking about creating something in autohotkey or similar software that would make a .exe for sagetv to run when I need a specific action in eg to happen. The only problem is that anything like autohotkey can send hotkeys and things like that to an open window. I need it to be able to send commands to eg when it is in the system tray and there is a fullscreen window open.

Will what I'm trying to do even work with eg in the systray?
jonib
Plugin Developer
Posts: 1328
Joined: Thu Mar 26, 2009 9:33 pm
Location: Sweden

Re: How to send commands to EventGhost?

Post by jonib »

PanteraGSTK wrote:It has the ability to launch external applications with external commands (like if I launched from a command line). I was thinking about creating something in autohotkey or similar software that would make a .exe for sagetv to run when I need a specific action in eg to happen.
Check the -event EventGhost commandline option.

jonib
XBMC2 plugin to control XBMC. If you want to flatter me Image
PanteraGSTK
Posts: 25
Joined: Fri Feb 19, 2010 1:30 am

Re: How to send commands to EventGhost?

Post by PanteraGSTK »

jonib wrote:
PanteraGSTK wrote:It has the ability to launch external applications with external commands (like if I launched from a command line). I was thinking about creating something in autohotkey or similar software that would make a .exe for sagetv to run when I need a specific action in eg to happen.
Check the -event EventGhost commandline option.

jonib
I tried that yesterday, but I'm sure that I'm not formatting the event correctly.

I'd like to send something like: Keyboard.LShift+LCtrl+LAlt.
So I tried to send the command line eventghost.exe -event Keyboard.LShift+LCtrl+LAlt. I got nothing.

I'm not a programmer, so it is probobly something easy that I'm missing.
jonib
Plugin Developer
Posts: 1328
Joined: Thu Mar 26, 2009 9:33 pm
Location: Sweden

Re: How to send commands to EventGhost?

Post by jonib »

PanteraGSTK wrote:I tried that yesterday, but I'm sure that I'm not formatting the event correctly.
I just tried EventGhost.exe -e MyEvent

Code: Select all

Main.MyEvent
And got this in the log.
I'd like to send something like: Keyboard.LShift+LCtrl+LAlt.
So I tried to send the command line eventghost.exe -event Keyboard.LShift+LCtrl+LAlt. I got nothing.
Do you have the Log only assigned and activated events unchecked?

jonib
XBMC2 plugin to control XBMC. If you want to flatter me Image
PanteraGSTK
Posts: 25
Joined: Fri Feb 19, 2010 1:30 am

Re: How to send commands to EventGhost?

Post by PanteraGSTK »

jonib wrote:
PanteraGSTK wrote:I tried that yesterday, but I'm sure that I'm not formatting the event correctly.
I just tried EventGhost.exe -e MyEvent

Code: Select all

Main.MyEvent
And got this in the log.
I'd like to send something like: Keyboard.LShift+LCtrl+LAlt.
So I tried to send the command line eventghost.exe -event Keyboard.LShift+LCtrl+LAlt. I got nothing.
Do you have the Log only assigned and activated events unchecked?

jonib
Yep. It is unchecked. What am I doing wrong?
jonib
Plugin Developer
Posts: 1328
Joined: Thu Mar 26, 2009 9:33 pm
Location: Sweden

Re: How to send commands to EventGhost?

Post by jonib »

PanteraGSTK wrote:Yep. It is unchecked. What am I doing wrong?
Did you try my example? other then that I don't know sorry,
Edit: I just tried your example and it worked for me: doing EventGhost.exe -e Keyboard.LShift+LCtrl+LAlt resulted in

Code: Select all

Main.Keyboard.LShift+LCtrl+LAlt 
Hmm, I see I'm using an old version of EventGhost I'll update and see if it still works.
Edit2: I have updated to r1436 and still works, I'm using WinXP 32bit, What version of Windows do you use?

jonib
XBMC2 plugin to control XBMC. If you want to flatter me Image
PanteraGSTK
Posts: 25
Joined: Fri Feb 19, 2010 1:30 am

Re: How to send commands to EventGhost?

Post by PanteraGSTK »

jonib wrote:
PanteraGSTK wrote:Yep. It is unchecked. What am I doing wrong?
Did you try my example? other then that I don't know sorry,
Edit: I just tried your example and it worked for me: doing EventGhost.exe -e Keyboard.LShift+LCtrl+LAlt resulted in

Code: Select all

Main.Keyboard.LShift+LCtrl+LAlt 
Hmm, I see I'm using an old version of EventGhost I'll update and see if it still works.
Edit2: I have updated to r1436 and still works, I'm using WinXP 32bit, What version of Windows do you use?

jonib
Same os as you. I'm going to try using your exact command and see how that works when I get home today. Thanks for messing with this for me.

I do have a question for you. When you are testing the commands is EG open or minimized to the tray? I really need this to work in the background so if EG is minimized and gets those commands I'll be in business. Thanks again...
jonib
Plugin Developer
Posts: 1328
Joined: Thu Mar 26, 2009 9:33 pm
Location: Sweden

Re: How to send commands to EventGhost?

Post by jonib »

PanteraGSTK wrote:I do have a question for you. When you are testing the commands is EG open or minimized to the tray? I really need this to work in the background so if EG is minimized and gets those commands I'll be in business. Thanks again...
My testing was with an open window so I could see the log, I just tried with EventGhost minimized and it worked fine also.

jonib
XBMC2 plugin to control XBMC. If you want to flatter me Image
PanteraGSTK
Posts: 25
Joined: Fri Feb 19, 2010 1:30 am

Re: How to send commands to EventGhost?

Post by PanteraGSTK »

jonib wrote:
PanteraGSTK wrote:I do have a question for you. When you are testing the commands is EG open or minimized to the tray? I really need this to work in the background so if EG is minimized and gets those commands I'll be in business. Thanks again...
My testing was with an open window so I could see the log, I just tried with EventGhost minimized and it worked fine also.

jonib
Sweet. I'm excited to see if that works...

Thanks again...
Post Reply