Jump to content

Return focus after a control click on a minimized window.


Recommended Posts

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

Link to comment
Share on other sites

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