Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Int collab help.
#2
The variable is just simple number, probably 0, and it does not change while waiting.

You can use

wait LongWait WC win("Notepad")

WAIT repeatedly searches for the specified window. It stops when finds the window.
If you use a string value (constant string or str variable), WAIT assumes that it is window name, and searches for a window with the name.
If you use an int value, WAIT assumes that it is some expression that returns window handle. If it is a function (eg win("Notepad")), WAIT repeatedly calls the function until it returns nonzero. But if it is a variable, and it never changes, WAIT never ends.


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)