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.
How to send commands to EventGhost?
-
PanteraGSTK
- Posts: 25
- Joined: Fri Feb 19, 2010 1:30 am
How to send commands to EventGhost?
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?
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?
Re: How to send commands to EventGhost?
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..
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..
Re: How to send commands to EventGhost?
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?
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?
Will what I'm trying to do even work with eg in the systray?
Re: How to send commands to EventGhost?
Check the -event EventGhost commandline option.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.
jonib
-
PanteraGSTK
- Posts: 25
- Joined: Fri Feb 19, 2010 1:30 am
Re: How to send commands to EventGhost?
I tried that yesterday, but I'm sure that I'm not formatting the event correctly.jonib wrote:Check the -event EventGhost commandline option.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.
jonib
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.
Re: How to send commands to EventGhost?
I just tried EventGhost.exe -e MyEventPanteraGSTK wrote:I tried that yesterday, but I'm sure that I'm not formatting the event correctly.
Code: Select all
Main.MyEventDo you have the Log only assigned and activated events unchecked?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.
jonib
-
PanteraGSTK
- Posts: 25
- Joined: Fri Feb 19, 2010 1:30 am
Re: How to send commands to EventGhost?
Yep. It is unchecked. What am I doing wrong?jonib wrote:I just tried EventGhost.exe -e MyEventPanteraGSTK wrote:I tried that yesterday, but I'm sure that I'm not formatting the event correctly.And got this in the log.Code: Select all
Main.MyEventDo you have the Log only assigned and activated events unchecked?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.
jonib
Re: How to send commands to EventGhost?
Did you try my example? other then that I don't know sorry,PanteraGSTK wrote:Yep. It is unchecked. What am I doing wrong?
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 Edit2: I have updated to r1436 and still works, I'm using WinXP 32bit, What version of Windows do you use?
jonib
-
PanteraGSTK
- Posts: 25
- Joined: Fri Feb 19, 2010 1:30 am
Re: How to send commands to EventGhost?
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.jonib wrote:Did you try my example? other then that I don't know sorry,PanteraGSTK wrote:Yep. It is unchecked. What am I doing wrong?
Edit: I just tried your example and it worked for me: doing EventGhost.exe -e Keyboard.LShift+LCtrl+LAlt resulted inHmm, I see I'm using an old version of EventGhost I'll update and see if it still works.Code: Select all
Main.Keyboard.LShift+LCtrl+LAlt
Edit2: I have updated to r1436 and still works, I'm using WinXP 32bit, What version of Windows do you use?
jonib
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...
Re: How to send commands to EventGhost?
My testing was with an open window so I could see the log, I just tried with EventGhost minimized and it worked fine also.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...
jonib
-
PanteraGSTK
- Posts: 25
- Joined: Fri Feb 19, 2010 1:30 am
Re: How to send commands to EventGhost?
Sweet. I'm excited to see if that works...jonib wrote:My testing was with an open window so I could see the log, I just tried with EventGhost minimized and it worked fine also.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...
jonib
Thanks again...
