Hi Chip: 2 things: Could the filtering on the process somehow be causing the problem? Second, I will run the WEEvent and narrow the output to whatever relevant lines you think will help if you tell me which ones are of interest. I can set the options in WEEvent and delete those not related to the question at hand. But it would seem that I am connecting the event handler sub to the ClientInformation.Output window and thus when that event fires the sub should get executed using the ClientInformation.Output window in the parameter list as described in the WindowEyes scripting manual unless I missed something. Perhaps I will comment out the filtering based on the process just to see if the event handler sub gets executed while waiting for your response. I will also edit then close everything then fire up visual studio after starting the script in script manager so there will be no restart if that sounds like how you got around the restart process problem. Rick USA
But it would seem that since I am passing the overlap window to the sub -----Original Message----- From: Chip Orange [mailto:[email protected]] Sent: Saturday, March 21, 2015 2:53 PM To: 'Rick Thomas'; 'Window-Eyes Scripting List' Subject: RE: New Visual Studio Script 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
