mega128 Posted May 1, 2008 Share Posted May 1, 2008 Hi all, I am new to autoIT3. I was wondering if there is a way in AutoIt to call a function when an expected windows appears. There is no specific time or sequence it may appear.WinWaitActive works only when we know window will appear, what if the expected window appears after series or execution. Is ther any way to handle such situation?Thanks all Link to comment Share on other sites More sharing options...
Valuater Posted May 1, 2008 Share Posted May 1, 2008 a couple of possiblities... While 1 If WinActive("Window Name") Then Do_Function() Sleep(200) WEnd Func Do_Function() MsgBox(0x0, "yes", "Do what you want") Exit ; ??? EndFunc ;==>Do_Function While 1 If ProcessExists("Program Name.exe") Then Do_Function() Sleep(200) WEnd Func Do_Function() MsgBox(0x0, "yes", "Do what you want") Exit ; ??? EndFunc ;==>Do_Function 8) Link to comment Share on other sites More sharing options...
mega128 Posted May 1, 2008 Author Share Posted May 1, 2008 Thanks very much both of you for quick response. I guess I was looking for ADLibEbable really. Thanks again 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