Jump to content
Sign in to follow this  
Klexen

Return focus after a control click on a minimized window.

Recommended Posts

Klexen

Return focus to window that was active before clicking the control?

Thanks for any help!

CODE
AdlibEnable("stoptimeout")

HotKeySet("+{END}","CleanExit")

While 1

Sleep(1000)

WEnd

Func stoptimeout()

Opt("WinTitleMatchMode", 2)

If WinExists("Microsoft Internet Explorer","Application timeout will occur in 10 minutes") Then ControlClick("Microsoft Internet Explorer", "", 1, "left", 1)

If WinExists("vb script: Session time-out alert", "", 6, "left", 1)

Sleep(10)

EndFunc ;==>Stoptimeout

Func CleanExit()

Exit

EndFunc

Share this post


Link to post
Share on other sites
evilertoaster

Dont think so. You can store the windows handle manually as a variable and call it later though... WinGetHandle() works for this.

Share this post


Link to post
Share on other sites
MisterBates

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  

×