in reply to Re^2: Win32: Can I interact with windows I didn't create?
in thread Win32: Can I interact with windows I didn't create?

See HWND WindowFromPoint(x, y), which is exported from the Win32::GuiTest module. Also see the WindowFromPoint documentation by Microsoft.

Replies are listed 'Best First'.
Re^4: Win32: Can I interact with windows I didn't create?
by BobFishel (Acolyte) on Jan 17, 2009 at 18:39 UTC
    Awesome I've found a way to get the window I want now I'm trying to figure out how to get at the widgets in the window... there is a listbox which has several columns and I want to get the data in each column and I'm not sure how to do it because I don't have it's id or anything...

      Do you read the Win32::GuiTest documentation at all? The functions are in there. Just use them.

      To find out the id of a control on a window, you will have to use a program like WinSpy or the spy-- program that comes with Win32::GuiTest. It tells you about the ids of all controls below a window. Usually, control ids don't change across runs of a program.