Hi everybody,
I just Want To ask You Guys, sometimes we want absolutly find a window before take any action:
However, sometimes the windows fail to appear, and the program is just freeze (unfinite loop). So my question is is there any API or function to find a window with a timeout. Let say 5 minutes, if it fail then the function will abort.Code:Dim window as Long Do window = Findwindow("test",vbnullstring) loop until window <> 0 ' Code Continue here




Reply With Quote