remote Posted December 6, 2006 Posted December 6, 2006 I've been using AutoIT3 for only a day now but I am facing a problem where I need to be able to handle different windows title. I'm using WinWaitActive(title) to apply actions once the window I'm expecting becomes active but in certain circumstances it is possible that a window with another name comes up instead, in which case my script hangs because it's waiting for another window. How do you handle different window titles possibilities?
Developers Jos Posted December 6, 2006 Developers Posted December 6, 2006 I've been using AutoIT3 for only a day now but I am facing a problem where I need to be able to handle different windows title. I'm using WinWaitActive(title) to apply actions once the window I'm expecting becomes active but in certain circumstances it is possible that a window with another name comes up instead, in which case my script hangs because it's waiting for another window. How do you handle different window titles possibilities? Something like: While 1 If WinActive("title1","Subtext1") then ElseIf WinActive("title2","Subtext2") then EndIf Sleep(10) WEnd SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past.
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