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.

restoring focus to the last active window

If you have a question or need help, this is the place to be.
Post Reply
baruchno
Posts: 8
Joined: Thu Sep 03, 2009 10:03 pm

restoring focus to the last active window

Post by baruchno »

Hi, i'm trying to control windows 7 media center without stealing the focus (or stealing and restoring it right back without anyone notice)
Is there an example for a python script to find the last deactivated task and bring it to front ???


Tx!
lhwidget
Posts: 3
Joined: Thu Jul 22, 2010 7:05 pm

Re: restoring focus to the last active window

Post by lhwidget »

I don't know if you can find the last/previously active window, but you can use the "Find Window Action", then add a "Bring to Front" action if you know which program you want to bring into focus (ie, it will always bring the same program to the front).
baruchno
Posts: 8
Joined: Thu Sep 03, 2009 10:03 pm

Re: restoring focus to the last active window

Post by baruchno »

I'm looking for something more general that can be implemented to other apps that do not have a plugin like Boxee and MCE

if anyone has any clue please reveal it

Tx.
lhwidget
Posts: 3
Joined: Thu Jul 22, 2010 7:05 pm

Re: restoring focus to the last active window

Post by lhwidget »

Those are general actions, found under Add an action/Window. As far as I know, they will work with any program. They aren't specific to an application with a plugin.
Post Reply