Method: AutoItX3::Window#wait_close

Defined in:
lib/AutoItX3/window.rb

#wait_close(timeout = 0) ⇒ Object

Waits for self to be closed.

Parameters

timeout

(0) The time to wait, in seconds. 0 means to wait till doomsday.

Return value

true if the window was closed, false if timeout was reached.

Example

win.wait_close(10) #Wait for 10 seconds


631
632
633
634
# File 'lib/AutoItX3/window.rb', line 631

def wait_close(timeout = 0)
  Window.functions[__method__] ||= AU3_Function.new("WinWaitClose", 'SSL', 'L')
  Window.functions[__method__].call(@title.wide, @text.wide, timeout) != 0
end