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.

Is there a way to detect when a program starts and stops?

If you have a question or need help, this is the place to be.
Post Reply
LaTropa64
Posts: 5
Joined: Thu Apr 09, 2009 7:33 pm

Is there a way to detect when a program starts and stops?

Post by LaTropa64 »

I want a set of macros to only work when a certain program is running and is the active window. Is there any way for EventGhost to detect this so I can set up an event that will enable/disable the macros?


edit: I found the answer. I guess I should have searched a little harder. :)

Configuration > Add Plugin > Other > Task Create/Switch Events
LaTropa64
Posts: 5
Joined: Thu Apr 09, 2009 7:33 pm

Re: Is there a way to detect when a program starts and stops?

Post by LaTropa64 »

My next question though I really can't find the answer for... is it possible to temporarily disable and reenable the HID service without restarting the computer?

I use Vista Media Center and want to leave HID active for that, but I also use XBMC and want it to be disabled when I start XBMC so I can map some of the extra keys that I currently cannot use since they normally launch VMC (recorded tv, guide, live tv, etc.)
Bartman
Plugin Developer
Posts: 881
Joined: Sun Feb 12, 2006 9:03 am

Re: Is there a way to detect when a program starts and stops?

Post by Bartman »

the command utility net.exe can start and stop services. Not sure about UAC since you net admin priveliges for that.
Post Reply