If it's showing up in the log, then it is firing. So, it must be you're not using that's showing up in the WEEvent log.
Remember a lot of things could possibly make the clientInformation.overlap property be nothing; including if you just manually start/restart the script, or if you have it set to be global. The restart problem got me for quite a while when I wrote my first program-specific app. Chip -----Original Message----- From: Scripting [mailto:[email protected]] On Behalf Of Rick Thomas via Scripting Sent: Saturday, March 21, 2015 1:34 PM To: 'Rick Thomas'; 'Window-Eyes Scripting List' Subject: RE: New Visual Studio Script Hi: The Event handler sub does not appear to be firing but the event is showing up in the WEEvent log. Any ideas why or what to try next? Option Explicit Dim myMSAAEventSource : Set myMSAAEventSource = MSAAEventSource myMSAAEventSource.Process = ClientInformation.ApplicationProcess Dim windowObj Set windowObj = ClientInformation.Overlap ConnectEvent ClientInformation.Overlap, "OnChildFocus", "OnChildFocus" Sub OnChildFocus( windowObj ) Logger( "OnChildFocus fired") End Sub ' EndOfFile: _______________________________________________ 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
