On 8/3/2010 7:54 AM, John wrote:
I want a script to take action after a webpage is loaded (check if it
is page this-or-that and then do some extra stuff).
You do want the BrowseMode OnStateChange event for this.
I've tried OnChildSummary but this doesn't occur if BrowseMode is on.
BrowseMode events don't occur when BrowseMode is off.
OnChildSummary is the event that fires when a speak summary is requested
(pressing Control-Shift-S, for example), and doesn't have anything to do
with web page loading. You said that BrowseMode events don't occur when
BrowseMode is off, but Browse Mode being off is one of the possible
Browse Mode event values. Can you clarify your findings?
And I don't see a way to recieve the navigateComplete2 event from
explorer itself as Wscript.CreateObject() gives an Error in WE.
Use the CreateObject that the Window-Eyes Script object provides, such as:
Set IE = CreateObject("InternetExplorer.Application")
Then, in theory, you could do something like:
ConnectObject IE, "IE_"
Sub IE_NavigateComplete2(webBrowserObj, URL)
Speak "Just navigated to " & URL
End Sub
I say theory, because, at first glance, this doesn't work as expected.
I'll keep poking at it.
Aaron
--
Aaron Smith
Product Support Specialist * Web Development
GW Micro, Inc. * 725 Airport North Office Park, Fort Wayne, IN 46825
260-489-3671 * gwmicro.com
To insure that you receive proper support, please include all past
correspondence (where applicable), and any relevant information
pertinent to your situation when submitting a problem report to the GW
Micro Technical Support Team.