Automatic App switch

If you have a question or need help, this is the place to be.
Post Reply
themaster1
Experienced User
Posts: 132
Joined: Wed Feb 03, 2010 9:02 pm

Automatic App switch

Post by themaster1 » Tue Dec 27, 2011 2:52 pm

I am wondering if there is a possibility for eventghost to auto detect which software is running and switch to it so i can control it without displaying the OS menu.
I thought perhaps analyzing the front window every x seconds/minutes would be a solution, what do you think?

Dragon470
Experienced User
Posts: 203
Joined: Thu Feb 10, 2011 2:16 am

Re: Automatic App switch

Post by Dragon470 » Wed Dec 28, 2011 12:46 am

Simple, use the plugin "Task Create/Switch Events

themaster1
Experienced User
Posts: 132
Joined: Wed Feb 03, 2010 9:02 pm

Re: Automatic App switch

Post by themaster1 » Wed Dec 28, 2011 2:49 am

Right but how do you automate all this without using the OS menu, is the answer i'm looking for .

Dragon470
Experienced User
Posts: 203
Joined: Thu Feb 10, 2011 2:16 am

Re: Automatic App switch

Post by Dragon470 » Thu Dec 29, 2011 1:14 am

when the trigger from Task Create/Switch Events goes you just have it enable the correct folder of commands and disable the others. I use this for Foobar2000. I have two folders of the controls (they are exact set of commands but some have had to be modified). One is enabled (active window) when foobar2000 comes into focus and the other is disabled. When I loose focus of foobar2000 the other inactive folder is enabled and the other is disabled. So mine goes something like this

2011-12-28 19:11:28 EVENT: Task.Deactivated.Desktop
2011-12-28 19:11:28 EVENT: Task.Activated.foobar2000
2011-12-28 19:11:28 MACRO: Enable: Foobar2000_PC_Local_Active
2011-12-28 19:11:28 ACTION: Enable: Foobar2000_PC_Local_Active
2011-12-28 19:11:28 ACTION: Disable: Foobar2000_PC_Local_HTTP
2011-12-28 19:11:34 EVENT: Task.Deactivated.foobar2000
2011-12-28 19:11:34 MACRO: Disable: Foobar2000_PC_Local_Active
2011-12-28 19:11:34 ACTION: Disable: Foobar2000_PC_Local_Active
2011-12-28 19:11:34 ACTION: Enable: Foobar2000_PC_Local_HTTP
2011-12-28 19:11:34 EVENT: Task.Activated.EventGhost

themaster1
Experienced User
Posts: 132
Joined: Wed Feb 03, 2010 9:02 pm

Re: Automatic App switch

Post by themaster1 » Sat Feb 04, 2012 11:37 am

It's working if i use Task.Created.dvbviewer , i add this in the switch macro's

The effect now is that i can launch an app with the mouse and eventghost automatically switch to it, i have the control ;)

Picture:

Image

Post Reply