Hi Rick,
Yes, I understand what you are saying. The events I do not use at the
moment for I only wanted to take control of the web page to get text. Videos
usually are a link and that is why I do have the go directly to page option to
allow them to run.
Java script does handle most events and some have to reside inside certain
tags to trigger.
You can either imbed the code in the area of interest or in the head
section with a name associated to the place you want the event from; but most
events are mouse actions, hover/click.
The key in Java script is giving a name to an area and watch for events
from that name.
Most web pages are fairly standard. The HTML5 are tags that still have the
open and closed version which is standard, but you have to go through the list
to tie them together. For some do allow multi level stuff that can over lap.
I think the multiplexing you are talking about is the event for sync or
async and there are issues in the UI on that. You just have to get the proper
names and objects that trigger those events, it is a length list inside the
Windows model. They have examples but most are usually C++ code which is a pain
in forms.
Some of the issues inside forms are not easy to use, there is a technique
for getting them out and it involves getting focus of the list type then go
from there. I have not used it much for I have not had the time; including
upgrading my Breaking News app. Soon the weather will change to force me back
on the computer.
I am not sure why WE ties up the async for the UI but it does. It is
probably monitoring it and that keeps if from being used in a timely manor. I
ran into that problem when setting up the UnInstall program and wanting to
monitor WMI events. In XP they work, but not in Vista and later.
Maybe I will take a look at what you are doing and see what I can find to
fix the issues. I have most of the data and what is required for async and sync
to work, but have not experimented with it yet. Most fixes are via C++
Happy programming Rick, Bruce
Sent: Monday, September 08, 2014 6:57 AM
Subject: RE: UIA And WE Scripting Model
Hi Bruce:
It sounds like you are " Source Text scraping" to find elements in the source
code unless you are using like the xml dom and features to navigate it.
So I am guessing you use the http request/response or http client models to
download the source code.
Then you parse the text to find a link and a process command to execute a url
once you have parsed it out.
I use this technique often myself in vb.net.
This requires you to manage the UI of the entire Webpage which is not what I
would want to do.
If so, I might just create a InternetExplorer object in a vb.net project and
then just use the event handlers, objects and dom JavaScripting capabilities to
produce the page so it runs normally in my project rather than trying to script
the native version of Internet Explorer running on my, or other peoples,
machines.
There are drawbacks to both methods and I was hoping there was a better
work-around but perhaps not.
Perhaps developing WE Scripts in JavaSCript might b better but I don't know
if JS gets around the problem of single something when the native UIA API and
Managed API requires multi something forcing us to create wrappers in another
language as Jamal had done.
I haven't looked at scripting in some time now since I either find a quick
work-around for accessibility issues or, in the case of some programs and
Websites, just don't use them.
Thanks for the offer to check out your code base but I know exactly what I
will find since I do the exact same thing in vb.net but use the built-in
objects and event handlers to make coding light years easier.
All this said, what you are doing is pretty cool but the next step.
Direct interaction with the browsers'objects Event Handlers and properties.
Thanks my friend for the offer, I really appreciate it, but been there and
done that for over a decade - the technique is burned into this old grey matter
like my own name - whatever that is grin.
God Bless and good hunting:
Rick USA
---
This email is free from viruses and malware because avast! Antivirus protection
is active.
http://www.avast.com