DonationCoder.com forum
 
Read-only archive. This is a static copy of the DonationCoder.com forum. Reading and searching work as before; logging in, posting and private messages do not.
Archive of 2026-10-21 · About this archive · Main site

Author Topic: restoring last active window  (Read 4,931 times)

rob0t

  • Supporting Member
  • Joined in 2010
  • **
  • Posts: 10
restoring last active window
« on: May 21, 2014, 05:50 PM »
Hello  :)

Is it possible to set this app to return focus to the window that was last active before the user pressed the button in the dock?

mouser

  • First Author
  • Administrator
  • Joined in 2005
  • *****
  • Posts: 40,931
    • Gathering Badge
    • Plugin Coding Medal
    • Participated in NANY Challenge Seventeen Times
    • Cody Award
    • Coding Snacks
    • Volunteers/Staff
Re: restoring last active window
« Reply #1 on: May 21, 2014, 07:16 PM »
Normally you probably wouldn't want that -- you'd want the launched target to get focus, but it might be a good option to add on individual commands, yeah?

rob0t

  • Supporting Member
  • Joined in 2010
  • **
  • Posts: 10
Re: restoring last active window
« Reply #2 on: May 21, 2014, 08:41 PM »
yeah, I was thinking about small AHK scripts that work on the visible window

I guess it might be possible to make it work universally - Launchbar Commander could return the focus to lastactive app if it still has the focus after starting a shortcut?

or probably as you said - per command :)

Original address: https://www.donationcoder.com/forum/index.php?topic=37992.0