Jump to content

Select previous window


Recommended Posts

You could use WinActivate assuming you knew the name of the window.


Time you enjoyed wasting is not wasted time ......T.S. Elliot
Suspense is worse than disappointment................Robert Burns
God help the man who won't help himself, because no-one else will...........My Grandmother

Link to comment
Share on other sites

How about running a loop that keeps track of the active window? Here's some pseudo-code that you could run using AdLibEnable():

; start of script
local $win
opt("winTitleMatchMode", 4)
adLibEnable("rememberWindow", 250)

; GUI loop code here...

; maximising code:
winSetState($win, "", ...)

func rememberWindow()

    if (the active window isn't my script) then $win = winGetHandle("active")

endFunc
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...