Hi Rick,
The ability to go to a web site is by using the WE shared object for going
to a web page. The only requirement is it demands the http: format at the start.
So, in my app for "Breaking News" there are links on the page that do not
have that, so I assume that the link without it is using the actual page
default path, thus I add that to the beginning of the link shown.
When they do this there assuming the Java script or Link command inside the
head section as the default. but not always the case but it works for almost
all links by using the default path.
I do not use the DOM at all, I do not set up an IE object, nor any browser
object. I just use the standard HTML tag formats and strip out the link and
text for I have a function called QuotedText in which the link structures are
inside. Those command are inside the start tag and before the end > symbol of
that start tag.
After the > symbol is any text that is displayed on the screen then there
is a end tag enclosed in <> symbols, so you know when any displayable text ends.
Now, for screen readers, in HTML they also inserted another quoted text
which is called the alternative form, and is stated as alt="Text to read"
In other words, all text for links and such are in those 2 locations. Any
other text is outside those 2 structures are usually inside paragraph tags and
list/table tags.
Since we do not care about the location from left to right on the screen, I
just go sequentially down the screen to get each tag one at a time. The tag can
be a llink, a source, a list, or a table. I strip all those tags away and leave
any text there. When reaching the end tag of any of those tags I insert a new
line, thus keeping all text in it's own location.
After doing all that stripping I then go back and get rid of multiple new
lines so there are no major gaps in the text box when the page is placed there.
I even have an upgrade to post to get rid of more gaps created when doing
the line wrap procedure which reduces long lines to 60 chars or less, but may
over shoot by 10 chars before a new line is inserted to shorten the line.
Once the line wrap function is done and the text reformatted, I do a last
replace multiple new lines with a single new line, or multiple line feeds with
just a new line, so line feeds are checked first then any extra new lines are
then replaced with just one.
Yes Rick, I have a hotkey to go to the web page of any link on the page
using the shared object the WE model uses; as mentioned above.
The Breaking News app starts up with at least 4 websites, one of which is
the New Scientist web site which gives news on new science projects or
discoveries...including space exploration.
CNN and Headline news seem to be more interested in Hollywood stuff and
social interests instead of real news, but I added them anyway. Fox News gets
into detailed news.
So my app has those 4 websites but you can add as many as you want for your
own personal use and remember to save them once entered so the .ini file gets
updated.
At the moment I use my app to download TV Land free programs. They have
many TV series where they post several episodes to listen to. I attached a
Sound Blaster USB card to record them using the Sound Recorder. I just have to
swap the speaker plug with the jack for the microphone mounted on the card as a
second jack input...then later switch the format to a non MP3 format.
So give my app a try and let me know what improvements I can make on it;
besides running scripts used on the web page of choice.
Bruce
Sent: Monday, September 08, 2014 8:31 AM
Subject: RE: Bruce, RSS Feeds As Option
Hi Again:
So you can download a web page and programmatically click an on click or link
from within your script directly?
Doesn't this require a active DOM Object.
I was just thinking about this operation and the possibility of using
JavaScript with some way to access the active DOM and if this is even possible
but perhaps it is using the WE DOM Objects, not sure.
The problem would seem to be that while in Internet Explorer I still have to
find the words that don't read as links and yet make them clickable if they are
set up as links using JavaScript by the Website.
In vb.net I could create an instance of InternetExplorer, parse the source
code in the active DOM and programmatically click the desired object I think
but am not sure how this might be done in WE Scripting Model.
Perhaps there is a way to work with the active DOM using an instance of the
DOM and some WE Objects, if so let me know if you have done anything along
these lines.
I would prefer to avoid c++ if possible but am not against using JavaScript
at all.
But, is this then outside the scope of a VBScript based app?
Rick USA
From: Rick Thomas [mailto:[email protected]]
Sent: Monday, September 8, 2014 8:10 AM
To: [email protected]
Subject: Bruce, RSS Feeds As Option
Hi Bruce: One method I have used to pick up dynamic news was to use the RSS
Feeds provided by some sites.
You can access the page, use xml to process the feeds by displaying the
standard feed subjects in a listbox and then either linking to the news item or
downloading it, if necessary - usually the content is provided in the feed so
you don't have to download anything but can display the content in a listbox as
the user arrows up and down the news item titles in the listbox.
It has been some time so I forget the exact technical requirements to do this
but I have done it a few times and it is allot cleaner than scraping many pages
and how news is usually provided to application programs and client Websites.
Just a heads up for future research and expanding the possibilities and
possibilities are usually good.
Rick USA
---
This email is free from viruses and malware because avast! Antivirus protection
is active.
http://www.avast.com