What if you use ActiveWindow? I.E.
If InStr(ActiveWindow.Title, "Part of my title bar") Then
ClientInformation.Overlap = ActiveWindow
End If
Steve
On 12/8/2009 5:55 AM, J.J. Meddaugh wrote:
I have an application script which is watching for the volume control
slider to gain focus and then speak the word "volume" as a label.
I'm using
ConnectEvent ClientInformation.Overlap, "OnChildFocus", "myOnChildFocus"
to watch for this, and it works 95% of the time.
But every so often when I reload the script, Window-Eyes thinks that
ClientInformation.Overlap is refering to the MDI command handling
window instead of the one for the application.
I could set ClientInformation.Overlap to the correct window to watch
for, but this would break the script for every minor update of the
software, as the version number is a part of the window title, right?
Is there something I'm missing, or another event I could hook? I can
be relatively sure of a portion of the Window Title, but there's a
slim chance it could pop up in another application, such as a web page
title window, for instance.
Thanks for any help.
J.J. Meddaugh - ATGuys.com
A premier Licensed Code Factory and KNFB Reader distributor