I have been attacking this issue with a number of tools, but information has seemed to be hard to come by. By all appearances, the Microsoft SmartClient contains a Web Browser control (shdocvw.dll?). It is this control to which I believe I have to attach. But using existing Watir methods, this is not possible because Watir only attaches to top-level windows via WIN32OLE.new("Shell.Application"). I am trying to find a way to return a WIN32OLE object for the embedded browser control. Below is an example of the window structure of the application in question (company name replaced with "TheCompany"). The following consists of hWnd, window title (caption), and class name. Spaces are used to indicate nesting level. So for example, the top-level window is the SmartClient window with caption "TheComapny", hWnd 0005046C. By all appearances, the browser control then would be class name Shell DocObject View, hWnd 000104F0.
0005046C "TheCompany" WindowsForms10.Window.8.app.0.378734a 0005046E "toolStrip1" WindowsForms10.Window.8.app.0.378734a 00050456 "" WindowsForms10.EDIT.app.0.378734a 00050472 "0439-" WindowsForms10.EDIT.app.0.378734a 00050482 "" WindowsForms10.Window.8.app.0.378734a 00070470 "" WindowsForms10.SysTabControl32.app.0.378734a 00070466 "" Message Information" WindowsForms10.Window.8.app.0.378734a 000104EE "" WindowsForms10.Window.8.app.0.378734a 0027040E "" WindowsForms10.Window.8.app.0.378734a 0008048E "" WindowsForms10.Window.8.app.0.378734a 00080444 "" Shell Embedding 000104F0 "" Shell DocObject View 000204EC "" Internet Explorer_Server 00050478 "MenuStrip" WindowsForms10.Window.8.app.0.378734a 0005046A "StatusStrip" WindowsForms10.Window.8.app.0.378734a 00060460 "" WindowsForms10.msctls_progress32.app.0.378734a 00050454 "" WindowsForms10.MDICLIENT.app.0.378734a But: where to go from here? If I can just hook this browser control as with IE, I am home free. Lonny Eachus =========== _______________________________________________ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general