Rick,

Looks like you're missing the "Set" command in front of windowObj



-----Original Message-----
From: Scripting
[mailto:[email protected]] On
Behalf Of Rick Thomas via Scripting
Sent: Saturday, March 21, 2015 12:51 PM
To: 'Window-Eyes Scripting List'
Subject: New Visual Studio Script

First, how do I copy and paste error compile or run time error messages for
posting to the list?

Below is the script, only a few lines,  with my question

Note that in the original script I did not see where windowObj was set to
anything - could have been the problem so testing this:

' VS2013

Option Explicit

Dim myMSAAEventSource : Set myMSAAEventSource = MSAAEventSource

myMSAAEventSource.Process = ClientInformation.ApplicationProcess

[The below statement threw an error message, how would I do this?]

' Dim windowObj: windowObj = ClientInformation.Overlap

ConnectEvent ClientInformation.Overlap, "OnChildFocus", "OnChildFocus"

Sub OnChildFocus( windowObj )

Logger( "OnChildFocus fired")

End Sub

' EndOfFile:

-------------- next part --------------
An HTML attachment was scrubbed...
URL:
<http://lists.window-eyes.com/private.cgi/scripting-window-eyes.com/attachme
nts/20150321/8875e9ba/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

Reply via email to