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

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

Hey thanks for the suggestion t got it working and that is so cool.
And keep up the great work on mushroom fm!!!!!



-----Original Message-----
From: jawsscripts-bounce@xxxxxxxxxxxxx <jawsscripts-bounce@xxxxxxxxxxxxx> On 
Behalf Of Snowman
Sent: Friday, January 3, 2020 2:58 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.
--------------------------------------------------------------

you could get the text from the clipboard, and display it in a jaws edit box.

Let str = GetTextFromClipboard ()
MessageBox (str)

Revise as needed to get it to actually compile.  Obviously, str is a string 
variable.




+--------------------------------------------------------------------------+
Listen to The Snowman on MushroomFM.com, Saturday evenings, 8PM Eastern time.
60's and 70's tunes, and gently conservative talk.

----- Original Message -----
From: "Shan Noyes" <shan.noyes@xxxxxxxxxxx>
To: <jawsscripts@xxxxxxxxxxxxx>
Sent: Friday, January 03, 2020 2:13 PM
Subject: [jawsscripts] A scripting browser problem!!!


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: