Rick, The window name for the overlap window from your log is not the same as the name of the window in the WEEvent log. You have to get past the first part of the name which is the same, before you can see this.
This means the window getting focus is not a child of the overlap window which you are using. Don't know why this is, but instead of trying to find the correct overlap parent, you could use the desktop window and use onChildFocus from it, and test immediately on the module of the window getting focus to see if it matches the module for VS 2013. Or, work out the window problem. I had these types of problems when I wrote the VBA editor, since some of the windows I needed weren't children of the main Word window. I think you can configure WEEvent (through its menus) to show you the parent of a window showing up in the log, you could do that to try and figure out the parent of the child window which is getting focus. Hth, Chip -----Original Message----- From: Scripting [mailto:[email protected]] On Behalf Of Rick Thomas via Scripting Sent: Friday, March 20, 2015 2:47 PM To: 'Window-Eyes Scripting List' Subject: Really short abstract of only key items for test Hi: Really short abstract of only key relevant items organized easier to read: It appears the ClientInformation.Overlap window is not triggering the OnChild event to fire its sub: Here are the logger statements followed by the output from the test for each statement of iterest: Logger( "Test Line From Top") Test Line From Top (from logger) Logger( "Second Line") Second Line (from logger) Dim myINIFile : myINIFile = ClientInformation.ScriptPath & "\vs2008.ini" (from code) [RicksNote there is no INI file in the installed files for VS 2008 script only the vbs and xml files] Dim myXMLFile : myXMLFile = ClientInformation.ScriptPath & "\vs2008.xml" (from code) Logger( ClientInformation.ScriptPath & " ClientInformation.ScriptPath") (from logger) C:\Users\ricksdell\AppData\Roaming\GW Micro\Window-Eyes\users\default ClientInformation.ScriptPath (from logger) Logger( myINIFile & " myINIFile") C:\Users\ricksdell\AppData\Roaming\GW Micro\Window-Eyes\users\default\vs2008.ini myINIFile (from Logger) Logger( myXMLFile & " myXMLFile") C:\Users\ricksdell\AppData\Roaming\GW Micro\Window-Eyes\users\default\vs2008.xml myXMLFile (from logger) Logger( ClientInformation.Overlap.ModuleName & " OverlapWindow ModuleName") DEVENV OverlapWindow ModuleName (from Logger) Logger( ClientInformation.Overlap.Name & " Overlap Window Name") HwndWrapper[DefaultDomain;;bc6a Overlap Window Name (from logger) Later in the code: RtHere this line should have wired up the OnChildFocus Event Handler for the Overlap window and was executed according to the Logger Printout. ConnectEvent ClientInformation.Overlap, "OnChildFocus", "OnChildFocus" (from code) Logger( "ConnectEvent ClientInformation.Overlap, OnChildFocus, OnChildFocus") ConnectEvent ClientInformation.Overlap, OnChildFocus, OnChildFocus (from logger) RtHere This is the event that should, but doesnt, fire upon the OnChildFocus event of the OverlapWindow with module name DEVENV notice the print statement and no corresponding output in the logger output. Sub OnChildFocus(windowObj) (from code) Logger( "OnChildFocus fired") (Nothing in logger since did not fire) Finally here is the output from WEEVent: 3554 Keyboard.OnKeyDown VirtualKeyCode = 13, keyModifiers = 0 ... RtHere Here is the OnChildFocus event firing as listed in WEEvent, should have fired the OnChildFocus Event Handler and printed a line in the Logger Output but didnt: 3566 Window.OnChildFocus, Handle = 280484, Module Name = DEVENV, Class Name = HwndWrapper[DefaultDomain;;92c786c5-60d2-4d93-9780-9c347e84, Title = Start Page - Microsoft Visual Studio 3567 Speech.OnSpeak, "Start Page" ... exited everything EndOfMessage -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.window-eyes.com/private.cgi/scripting-window-eyes.com/attachme nts/20150320/8429aaf0/attachment.htm> _______________________________________________ Any views or opinions presented in this email are solely those of the author and do not necessarily represent those of Ai Squared. For membership options, visit http://lists.window-eyes.com/options.cgi/scripting-window-eyes.com/lists3717 %40comcast.net. For subscription options, visit http://lists.window-eyes.com/listinfo.cgi/scripting-window-eyes.com List archives can be found at http://lists.window-eyes.com/private.cgi/scripting-window-eyes.com _______________________________________________ Any views or opinions presented in this email are solely those of the author and do not necessarily represent those of Ai Squared. For membership options, visit http://lists.window-eyes.com/options.cgi/scripting-window-eyes.com/archive%40mail-archive.com. For subscription options, visit http://lists.window-eyes.com/listinfo.cgi/scripting-window-eyes.com List archives can be found at http://lists.window-eyes.com/private.cgi/scripting-window-eyes.com
