in reply to Reading from a GUI application

See Using Win32::GuiTest, WinSpy, ... list of links in Re: Setting Terminal Server User Profile Settings