1

Basically, I am looking for something like Win32's EnumChildWindows on Mac and X11, which takes a handle to a window and returns a list of its child windows.

Jake Petroules
  • 23,472
  • 35
  • 144
  • 225

1 Answers1

1

For X11, look at the xwininfo source to see how xwininfo -children works.

alanc
  • 4,102
  • 21
  • 24
  • Thanks, this is helpful and will lead me to creating the function I need. Also, as a note to anyone else reading this question, a solution for Mac can be found on the accepted answer on this question http://stackoverflow.com/questions/2869052/how-do-i-find-a-window-at-a-certain-point-on-the-screen-for-screenshot-screen-rec and the function itself looks like CGWindowListCopyWindowInfo. I haven't tested it but the documentation looks like it's roughly equivalent to a combination between EnumChildWindows, GetWindowRect, GetWindowText and more. – Jake Petroules May 22 '10 at 20:08