Jump to content

Recommended Posts

Posted

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

Posted

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
Posted

Thanks guys

Does anyone maby know how I can make 2 desktops?

With a button it removes all the windows and show others

And by clicking one more time it should switch everything back?

Something like Private Desktop and Boss Key

Posted

This would best be discussed in a new thread so that it is better noticed and more easily searchable in the future.

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
×
×
  • Create New...