Page 1 of 1

More than one instance of EventGhost

Posted: Sun Jun 13, 2010 12:17 pm
by Ironman1965
It would be excellent if you could code EventGhost to run more than one instance. I use it to control a HTPC and use timers to check for program statuses etc. The only way I can do this is to run more than one copy of EG. I've figured out a way to do this but it becomes unstable after a period of time. Native ability to run in multiple instance with separate configurations for each would be sweet.

Re: More than one instance of EventGhost

Posted: Sun Jun 13, 2010 1:30 pm
by stottle
I have to be honest, my reaction is that you should be able to have a single configuration do what you need. Part of the benefit of EG is the ability to watch for events so you don't have to run a bunch of timers, and there are built in Timers as well.

Using more than one EG is also going to be more error prone, as you would need to make sure events/responses are in the right config for the right instance.

Can you elaborate on a use-case that requires multiple configs?

Brett

Re: More than one instance of EventGhost

Posted: Mon Jun 14, 2010 12:44 am
by Ironman1965
I have one EG running a looped timer to check for Zoom Player, MeediOS, WMP, Desktop Remote, and Gyration Music server. Depending on which program is running it will turn on or off a LCD Display, load or unload a particular Desktop Remote, enable or disable Gyration Music Server etc. The other is strictly for remote controlling hardware and software. If I recall correctly using single EG for all functions, EG got bogged down with the timer events as there are two and they are quite long and complex. The response for remote events became sluggish and unpredictable.

Re: More than one instance of EventGhost

Posted: Mon Jun 14, 2010 12:55 am
by stottle
But don't those programs produce start/stop events that can be used instead of timers? I know zoom player, meedios and WMP do. If you use the events instead of timers, you won't be using as many resources.

Brett

Re: More than one instance of EventGhost

Posted: Mon Jun 14, 2010 2:11 am
by Ironman1965
So how would you tie those events into EG? I don't really see how I could have achieved the result I was looking for any other way.

eg

Loading MeediOS causes EG to close ZP, ZP's Desktop Remote, and or WMP, Disable the Gyration Media Server and load the MeediOS Desktop Remote. Playing a movie closes MeediOS's DTR and loads ZP's DTR. Stopping movie closes ZP's DTR and MeediOS's DTR reloads. Closing MeediOS closes MeediOS's DTR, Powers off the LCD Display and re-enables the Gyration Media Server allowing music to be played from the remote's LCD like a MP3 player.

I can get the previously mentioned programs to execute events on load or exit but that won't take away much of the load from the timers. If there was a way to just execute an EG event without loading another clone EG that could work as I could use a batch file to execute commands but the EG command line causes EG to load another clone instance which is not practical.

Re: More than one instance of EventGhost

Posted: Mon Jun 14, 2010 3:09 am
by stottle
Ironman1965 wrote:So how would you tie those events into EG? I don't really see how I could have achieved the result I was looking for any other way.
Something isn't clear here. If you can't tie the events into EG, how is another instance going to help? If I understand correctly (which is seeming less likely!), you have a bunch of timers set to check for programs starting and stopping. If one of those checks returns true, you have EG run a macro. So if you can trigger off of EG's event that the program starts/stops, you don't need the timers to tell you. And you save the timer resources.

Are the timers the problem, or is something else?
Ironman1965 wrote:I can get the previously mentioned programs to execute events on load or exit but that won't take away much of the load from the timers.
This is where I'm confused. Why not?
Ironman1965 wrote:If there was a way to just execute an EG event without loading another clone EG that could work as I could use a batch file to execute commands but the EG command line causes EG to load another clone instance which is not practical.
Have you tried this and seen the bad performance? When you trigger an event from EG's command line, it checks if an instance is already running and if so, the event is passed to the already running instance over COM. I've never used that much, but since the COM instance is already created, I wouldn't expect the performance to be that bad.

Brett

Re: More than one instance of EventGhost

Posted: Sat Jun 26, 2010 11:04 pm
by Ironman1965
Maybe you know more about these programs than I do. I checked Zoom Player's events and it allows a program to be run on open and close. Can't find any feature in WMP for events and searching the net only shows stuff beyond my ability/knowledge. Sending a command line event doesn't work as you describe. Here's my 2 configs. Maybe you have some suggestions.