[jawsscripts] Re: A scripting browser problem!!!

  • From: Shan Noyes <shan.noyes@xxxxxxxxxxx>
  • To: "jawsscripts@xxxxxxxxxxxxx" <jawsscripts@xxxxxxxxxxxxx>
  • Date: Fri, 3 Jan 2020 20:46:59 +0000

Thanks I'll play with those.
Much appreciated the help.

Have a good day.



-----Original Message-----
From: jawsscripts-bounce@xxxxxxxxxxxxx <jawsscripts-bounce@xxxxxxxxxxxxx> On 
Behalf Of Bob
Sent: Friday, January 3, 2020 2:43 PM
To: jawsscripts@xxxxxxxxxxxxx
Subject: [jawsscripts] Re: A scripting browser problem!!!

-------------------------------------------------------------
WARNING, this email originated from outside of SaskTel.
Do not click links or open attachments unless you trust the sender and believe 
the contents are safe.
--------------------------------------------------------------

Hi Shaun

The function your looking for it UserBufferClear () However you can instead do 
SayMessage (OT_USERBUFFER, “Some Text Here”) instead of manually clearing, 
adding and activating the virtual viewer.

Another function you may find interesting is GetElementDescription() while it 
doesn’t work quite in the way it’s supposed to it is a more reliable method to 
get the href attribute.

Bob


On 3 Jan 2020, at 20:13, Shan Noyes <shan.noyes@xxxxxxxxxxx> wrote:

Hi folks:
First I should say that I'm a relatively new Jaws scripter.  I done some 
pretty simple  scripts like writing  key commands that will look at a web 
page and read certain areas etc.

Anyways, I work in computer security and one of the things we check is where 
are links going to take one too.  E.g. an evil person can make the link so it 
looks like when you click on it you would be going to say Freedom 
scientific's site, but in the html code it actually takes you to an evil site.

e.g.
the html code for the link would read.

<a href=http://evilsite.com>Freedom Scientific</a>

The place that one goes to is specified by the href statement, but
jaws reads to the user the info after the evilsite>

A sighted person can get this info of where the link will take you by merely 
hovering the mouse over the link and it displays the location on the screen.

Anyways,  to get this info as a jaws user one puts the virtual cursor
on the link text,  then issues the windows application key and selects
the option for copy link.  Then one can go to say notepad and paste
the clipboard and voila you see that the link that says freedom
scientific is actually going to take  you to the evilsite

Way to many steps.

I've have written the following little script and it actually works.  Well 
most of the time.

Here's the script.  And then I'll ask my questions.

Script CopyRealLink ()
SayString("Please wait")

 {shift+f10}  ; is the windows application key sequence pause () { e}
; is the option for copy link

EndScript

This works and one can see where the freedom scientific site will go to the 
evilsite.com instead of switching and pasting the link results into a notepad 
as stated above I tried the virtual clipboard with the jawskey + spacebar 
then the letter c.  and the evilsite link shows up.

Its really cool.

My questions:


 1.  Rather then having to do the jawskey + spacebar then the letter c to get 
the clipboard viewer up I would like to add this into my script.  So should I 
try and do this via keyboard input or hat script or fuction should I be 
calling?  I've started reading through various default jaws .jss files but 
haven't found what I think is the answer.
 2.  Anyone familiar with how to flush or clean out the virtual viewer after 
one has read it?
Thanks for any and all of your assistance.

Have a good day.
Shan Noyes Technical Analyst - Systems Security GIAC
W: 306 777-4830
C: 306 533-1440

NOTICE: This confidential e-mail message is only for the intended recipients. 
If you are not the intended recipient, be advised that disclosing, copying, 
distributing, or any other use of this message, is strictly prohibited. In 
such case, please destroy this message and notify the sender.

__________

View the list's information and change your settings at
//www.freelists.org/list/jawsscripts



__________

View the list's information and change your settings at 
//www.freelists.org/list/jawsscripts

NOTICE: This confidential e-mail message is only for the intended recipients. 
If you are not the intended recipient, be advised that disclosing, copying, 
distributing, or any other use of this message, is strictly prohibited. In such 
case, please destroy this message and notify the sender.
__________�

View the list's information and change your settings at 
//www.freelists.org/list/jawsscripts

Other related posts: