Jump to content

WinWait Timeout Function?


Adele
 Share

Recommended Posts

There is something about confusing WinWait() timeout function. Winwait needs to scan the list of all window handles opened to check they're running. For example, we have a long list of windows, maybe 1000+, or the computer is very very slow, they are ordered by handle or something, if we give very little timeout, like 1 seconds, and if our window that we want to check is end of the list, would winwait interrupt and return 0 = timeout, which is false negative, or it always completes a cycle and then checks the timeout between cycles. So, for example, what should be the minimum timeout for 2000 model computer or 2020 model computer to wait for the same running window?

 

Edit: I think it interrupts before scanning all windows, so i fixed the problem a loop, WinGetHandle to check window exists, and sleep function. What do you think?

Edited by Adele
Link to comment
Share on other sites

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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...