Jump to content

Finding last active window?


Recommended Posts

Hi all,

I was hoping to make a gui that would send junk to the last active window - but of course once you press on the gui that's now the active window :P

so I was wondering if there was a way to find the last active window - or a function to list the current windows in order of recent activity so that I could exclude my own gui?

Link to comment
Share on other sites

First of all, Hi and welcome to the forum!

You could do something like WinGetHandle("[ACTIVE]") , or WinGetTitle("[ACTIVE]") BEFORE you shows your gui, that way you would have a handle/title to use later on. See the helpfile for examples etc.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...