Klexen Posted June 6, 2007 Share Posted June 6, 2007 Return focus to window that was active before clicking the control? Thanks for any help! CODEAdlibEnable("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 More sharing options...
evilertoaster Posted June 6, 2007 Share Posted June 6, 2007 Dont think so. You can store the windows handle manually as a variable and call it later though... WinGetHandle() works for this. Link to comment Share on other sites More sharing options...
MisterBates Posted June 7, 2007 Share Posted June 7, 2007 You might also look at _api_getfocus and _api_setfocus in Auto3LibMisterBates [u]MisterBates[/u]_____________________________________________________Suspend/Resume Windows ScreensaverWatchWindows - Window watcher/loggerUDF: Click systray menu/submenu itemsUDF: Outlook Express Folder/Message handling (+ example code)HowTo: Multiple icons in one compiled script Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now