Jump to content
Sign in to follow this  
Ghastly_MIB

Select previous window

Recommended Posts

Ghastly_MIB

Hey all,

How can I select my previous window that I selected?

Something like ALT+TAB.

I would not like to use the SEND command.

Thanks,

Ghastly_MIB :whistle:

Share this post


Link to post
Share on other sites
BigDod

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



Get Beta versions Here Get latest SciTE editor Here AutoIt 1-2-3 by Valuater - A great starting point.

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

Share this post


Link to post
Share on other sites
Ghastly_MIB

I will give an example:

I select my GUI and press a button. That button must deactivate of maximize my previous window. How can I do that?

Share this post


Link to post
Share on other sites
LxP

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

Share this post


Link to post
Share on other sites
Ghastly_MIB

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

Share this post


Link to post
Share on other sites
LxP

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

Share this post


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

×