Jump to content
Sign in to follow this  
FunkyBunnies

Finding last active window?

Recommended Posts

FunkyBunnies

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?

Share this post


Link to post
Share on other sites
AdmiralAlkex

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.

Share this post


Link to post
Share on other sites
KaFu

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
Sign in to follow this  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.