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.

Switching between applications using one button.

If you have a question or need help, this is the place to be.
Post Reply
ijourneaux
Experienced User
Posts: 102
Joined: Wed Feb 17, 2010 2:20 am

Switching between applications using one button.

Post by ijourneaux »

I would like to use a button on my MCE remote to shut down one applicaiton and start up a second. Then use the same button to shut down the second application and start up the first. I need to shut down the application when switching as it uses too much CPU.

Another better way would be start up the second application when you exit the first application normally. and do the reverse when
you exit the second application. So that either one or the other is always up

I think I can accomplish the first approach with the state macros in XBMC but whated to ask incase someone had already done this or had a more elegant solution.

Take Care all.
User avatar
Livin
Experienced User
Posts: 792
Joined: Wed Oct 08, 2008 4:56 am

Re: Switching between applications using one button.

Post by Livin »

If I understand you correctly, here's the way...

you can set EG to detect when 2nd app launches and automatically close the first app.

Example:

Task.Activated.App2
Find Window: App1
Close
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
ijourneaux
Experienced User
Posts: 102
Joined: Wed Feb 17, 2010 2:20 am

Re: Switching between applications using one button.

Post by ijourneaux »

I was originally hoping to accomplish it using jsut one button on the remote "Switch APP" but using your approach I came up with the obvious 2 button solution that actually works better than I was originally thinking.
User avatar
Livin
Experienced User
Posts: 792
Joined: Wed Oct 08, 2008 4:56 am

Re: Switching between applications using one button.

Post by Livin »

you want to "toggle" between apps... that is no problem it will just take a few extra steps.

look for App1
if it exists, Jump to CloseApp1Macro (set to not come back)
if it does not exist
look for App2
if it exists, close it
open App1

CloseApp1Macro:
look for App1
close it
open App2
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
Post Reply