Class: Autogui::EnumerateDesktopWindows

Inherits:
Object
  • Object
show all
Includes:
Enumerable, Windows::Window
Defined in:
lib/win32/autogui/window.rb

Overview

Enumerate desktop child windows

Start at the desktop and work down through all the child windows

Constant Summary

Constants included from Windows::Window

Windows::Window::SC_CLOSE

Instance Method Summary collapse

Instance Method Details

#eachObject



16
17
18
19
20
21
# File 'lib/win32/autogui/window.rb', line 16

def each
  child_after = 0
  while (child_after = FindWindowEx(nil, child_after, nil, nil)) > 0 do
    yield Window.new child_after
  end
end