Jump to content

Recommended Posts

Posted

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

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