Peter Kapas wrote: > I tried to implement the following procedure in my Delphi 4 > program: > > http://delphi.about.com/od/windowsshellapi/l/aa060303b.htm > > It not works.
Do you understand how it is supposed to work? It finds a window supposedly belonging to Internet Explorer, and then it looks for it to have a child window of class WorkerW. It looks for that window to have a child of class ReBarWindow32, and for _that_ window to have a child of class ComboBoxEx32. Microsoft is under no obligation to keep that window structure in Internet Explorer. Did you read the previous page of the article, where Gajic explains how the structure on the following page was discovered? Can you reproduce those results on your computer? > All of the Handlers number except in the last > step, where is 'ComboBoxEx32' are non-zero. In the line: > > hWndIEChild := FindWindowEx(hWndIEChild, 0, 'ComboBoxEx32', nil); > > I always get 0 (zero) and I never get the ComboBox Text from IE. Why? The window clearly doesn't have any children of class ComboBoxEx32. I think you'll be better off using DDE to get the current browser URL. All major browsers support it, so your program won't be limited to Internet Explorer. I think this topic was discussed on this mailing list in October 2004. I don't have a link to the archives handy right now. Read the following newsgroup thread and be sure to follow all the links. http://groups.google.com/group/borland.public.delphi.language.delphi.general/browse_thread/thread/556a3910262963d5 -- Rob _______________________________________________ Delphi mailing list -> Delphi@elists.org http://lists.elists.org/cgi-bin/mailman/listinfo/delphi