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.
Changing focused application
Changing focused application
After some more playing around it seems EvenGhost only sees a program as 'activated' if it is clicked on by the mouse or when a program is 1st launched. A mere focus change to any program either by sendmessage or alt+tab does nothing. Any chance of someone writing a true 'window focus' plugin?
Crossed posted in the newbie thread where I already got much needed help. But I thought this maybe deserved it's own thread.
Crossed posted in the newbie thread where I already got much needed help. But I thought this maybe deserved it's own thread.
I think I may be having this same problem, but havenÔÇÖt come up with a solution. I run Meedio for all of my media activities except for TV and keep it loaded all of the time. I use Beyond TV for TV and launch it with either the TV button on my remote, or an icon within Meedio. Either way, a BeyondTV.activated event is created and EventGhost goes into that mode, but when I quit Beyond TV and all you see is Meedio on the screen, a Meedio.activated event isnÔÇÖt created. Therefore I am in Meedio with EventGhost configured for BeyondTV.
If I switch exclusive to Meedio with a BeyondTV.deactivated, or destroyed event, I end up with Meedio exclusive while Beyond TV is running because when I launch BeyondTV I get a combination of activated, created, and destroyed events all while it is still running.
Any suggestions?
Thanks,
Brian
If I switch exclusive to Meedio with a BeyondTV.deactivated, or destroyed event, I end up with Meedio exclusive while Beyond TV is running because when I launch BeyondTV I get a combination of activated, created, and destroyed events all while it is still running.
Any suggestions?
Thanks,
Brian
- Bitmonster
- Site Admin
- Posts: 2239
- Joined: Mon Feb 06, 2006 10:28 pm
How are you "quitting" BTV? Are you running the newest version of EventGhost (including the betas supplied on these forums)?aarb00 wrote:I think I may be having this same problem, but havenÔÇÖt come up with a solution. I run Meedio for all of my media activities except for TV and keep it loaded all of the time. I use Beyond TV for TV and launch it with either the TV button on my remote, or an icon within Meedio. Either way, a BeyondTV.activated event is created and EventGhost goes into that mode, but when I quit Beyond TV and all you see is Meedio on the screen, a Meedio.activated event isnÔÇÖt created. Therefore I am in Meedio with EventGhost configured for BeyondTV.
If I switch exclusive to Meedio with a BeyondTV.deactivated, or destroyed event, I end up with Meedio exclusive while Beyond TV is running because when I launch BeyondTV I get a combination of activated, created, and destroyed events all while it is still running.
Any suggestions?
Thanks,
Brian
There are two ways I can quit. One is the hit the ÔÇ£CloseÔÇØ button on my Firefly. The other is to quit by pushing ÔÇ£OKÔÇØ on the Firefly while on the ÔÇ£Exit Beyond TVÔÇØ selection of the Beyond TV GUI.
If I use the ÔÇ£CloseÔÇØ button, I can put a command to enable ÔÇ£MeedioÔÇØ, but if I just exit in Beyond TVÔÇÖs GUI, I am stuck. I would like it to work both ways for ease of use.
If I use the ÔÇ£CloseÔÇØ button, I can put a command to enable ÔÇ£MeedioÔÇØ, but if I just exit in Beyond TVÔÇÖs GUI, I am stuck. I would like it to work both ways for ease of use.
I created a script in AutoHotKey that recognizes Beyond TV quitting. What should I put in the script, and how do I get EventGhost to recognize it. I looked through the various tools, but I am not sure which one to use.Bitmonster wrote:The easiest solution would be, if BeyondTV could be configured to launch some kind of "shutdown .BAT" on exit, that could be used to trigger an event.
- Bitmonster
- Site Admin
- Posts: 2239
- Joined: Mon Feb 06, 2006 10:28 pm
- Bitmonster
- Site Admin
- Posts: 2239
- Joined: Mon Feb 06, 2006 10:28 pm
It seems I have just found a way to get the events working for such problematic applications. This is also related to this bug:
http://www.eventghost.org/forum/viewtopic.php?t=209
I hope in some days we have a better Task plug-in.
http://www.eventghost.org/forum/viewtopic.php?t=209
I hope in some days we have a better Task plug-in.
Please post software-related questions in the forum - PMs will only be answered, if really private, thanks!
I was just looking for that. I bet BTV has such an option.Bitmonster wrote:It seems I have just found a way to get the events working for such problematic applications. This is also related to this bug:
http://www.eventghost.org/forum/viewtopic.php?t=209
I hope in some days we have a better Task plug-in.
- Bitmonster
- Site Admin
- Posts: 2239
- Joined: Mon Feb 06, 2006 10:28 pm
Meedio also has an option to don't show up in the taskbar. But even if you turn this off and Medio is visible in the taskbar, Windows doesn't generate events for it.
But it seems to be possible to write a hook, that is called on every keyboard focus change. And it looks like this even works for applications like Trillian. But I have to explore it a bit more.
But it seems to be possible to write a hook, that is called on every keyboard focus change. And it looks like this even works for applications like Trillian. But I have to explore it a bit more.
Please post software-related questions in the forum - PMs will only be answered, if really private, thanks!
Here is my AutoHotKey script in case someone needs it for reference.
Loop
{
WinWaitActive, Beyond TV
WinWaitClose, Beyond TV
Run, "C:\Program Files\EventGhost\EventGhost.exe" -e QuitBeyondTV
WinActivate, Meedio
}
There maybe better ways of doing this, but it does work.
Now I can use the Main.QuitBeyondTV() event to activate my Meedio exclusive.
The only downside to this process is that the script is always running and takes up a few K of RAM. This program however uses 50 MB less RAM than the Firefly software so I come out ahead.
If anyone has a better idea to detect Beyond TV closing, or Meedio becoming activated please let me know.
Thank you.
Loop
{
WinWaitActive, Beyond TV
WinWaitClose, Beyond TV
Run, "C:\Program Files\EventGhost\EventGhost.exe" -e QuitBeyondTV
WinActivate, Meedio
}
There maybe better ways of doing this, but it does work.
Now I can use the Main.QuitBeyondTV() event to activate my Meedio exclusive.
The only downside to this process is that the script is always running and takes up a few K of RAM. This program however uses 50 MB less RAM than the Firefly software so I come out ahead.
If anyone has a better idea to detect Beyond TV closing, or Meedio becoming activated please let me know.
Thank you.