[jawsscripts] Re: Alternative methods for clicking a button

  • From: "Mike O'Brien" <mike23432@xxxxxxxxxxx>
  • To: <jawsscripts@xxxxxxxxxxxxx>
  • Date: Sun, 20 Oct 2013 14:55:08 -0400

Hi

Did you try pressing the space bar on the link?  I have seen this work for some 
links.

-----Original Message-----
From: jawsscripts-bounce@xxxxxxxxxxxxx 
[mailto:jawsscripts-bounce@xxxxxxxxxxxxx] On Behalf Of John P. Thomas
Sent: Saturday, October 19, 2013 06:31
To: jawsscripts@xxxxxxxxxxxxx
Subject: [jawsscripts] Alternative methods for clicking a button

Hi

I have a button on a web page in Internet Explorer 10 running under WIN7 that I 
am unable to activate. I can click the button without any problem when I use 
Firefox, but in IE I cannot activate it with either a LeftMouseClick 
(insert+slash) or with the enter key. I tried routing the JAWSCursor and the 
InvisibleCursor, and I have tried tethering the JAWSCursor to follow the 
VertualCursor, but I can't activate the 'Save' button on this web based data 
form.

I have been using Firefox with this particular web application for my work 
situation, but I really need to switch to IE10. Firefox crashes 2 to 3 times a 
day, which is a real problem, since it often locks up my laptop when it crashes 
and requires a forced shutdown.

What other approaches could I use to get JAWS 14 to activate an uncooperative 
button. By the way, all other buttons on the page work fine in either IE10 or 
Firefox.

Thanks,
John

-----Original Message-----
From: jawsscripts-bounce@xxxxxxxxxxxxx 
[mailto:jawsscripts-bounce@xxxxxxxxxxxxx] On Behalf Of Jim Snowbarger
Sent: Saturday, October 19, 2013 5:35 PM
To: jawsscripts@xxxxxxxxxxxxx
Subject: [jawsscripts] Re: Virtual Viewer Help

One of the parameters to UserBufferAddText is the name of a function that will 
be executed if you press enter on the line of text you are adding.
Supplying that parameter makes it a link.  And, I think you also need to supply 
another parameter which is the name of the link to be used if anybody presses 
jawsKey+f7 while in your buffer.

----- Original Message -----
From: "Bob" <temp@xxxxxxxxxxxxxxx>
To: <jawsscripts@xxxxxxxxxxxxx>
Sent: Saturday, October 19, 2013 3:10 AM
Subject: [jawsscripts] Re: Virtual Viewer Help


Yeah, didn’t make any difference.

What I found was UserBufferAddText ignores the %KeyFor
In the end the only way I could get it to work as I wanted was to do 
something like:
SayFormattedMessage(OT_USER_BUFFER, 
FormatStringWithEmbeddedFunctions(Message))

Then the message just consisted of a function call like <GenerateLink>

Then I had a function GenerateLink() that returned the line 
%KeyFor(CustomClickAtPoint(GlobalVar1, GlobalVar2, GlobalVar3))

A pain in the proverbial but did the trick.
I used my own click at point script so that I didn’t have to add a keystroke 
to the script so the %KeyFor wasn’t adding unwanted text to my output. Also 
I needed some extra custom handling for some special circumstances.

So I got there in the end but I wouldn’t have had a clue without your help 
so big thanks John.



-----Original Message-----
From: jawsscripts-bounce@xxxxxxxxxxxxx 
[mailto:jawsscripts-bounce@xxxxxxxxxxxxx] On Behalf Of John Martyn
Sent: 18 October 2013 03:53
To: jawsscripts@xxxxxxxxxxxxx
Subject: [jawsscripts] Re: Virtual Viewer Help

Did you clear the user buffer before adding?
John

-----Original Message-----
From: jawsscripts-bounce@xxxxxxxxxxxxx 
[mailto:jawsscripts-bounce@xxxxxxxxxxxxx] On Behalf Of Bob
Sent: Thursday, October 17, 2013 9:01 AM
To: jawsscripts@xxxxxxxxxxxxx
Subject: [jawsscripts] Re: Virtual Viewer Help

Thanks John
I have found that UserBufferAddText doesnt replace the % in the way that 
SayFormattedMessage does.
Also had some fun trying to drop parameters into the function as well so I 
could use the following:
%KeyFor(ClickAtPoint(iColumn, iRow, Coordsys_Pixels))

Ended up using global variables and bouncing the message through 
FormatStringWithEmbeddedFunctions

I am getting fed up of this application!


On 17/10/2013 14:09, John Martyn wrote:
> The %keyFor() function must tie to the exact script name in the 
> parenthesis. You have to place this line inside a variable and if in a 
> message file JSM, you need the messages and endMessages at the top and 
> bottom. Make sure that the percent sign isn't right up against the words.
> John
> John
>
> -----Original Message-----
> From: jawsscripts-bounce@xxxxxxxxxxxxx
> [mailto:jawsscripts-bounce@xxxxxxxxxxxxx] On Behalf Of Bob
> Sent: Thursday, October 17, 2013 3:50 AM
> To: jawsscripts@xxxxxxxxxxxxx
> Subject: [jawsscripts] Re: Virtual Viewer Help
>
> Thanks John
>
> I still dont seem to be getting this working properly.
>
> I have added the message exactly as you had it to my messages section in 
> my header file.
>
> When I do UserBufferAddText and then UserBufferActivate it just appears as 
> plain text.
>
> What am I doing wrong?
>
> Bob
>
>> On 16 Oct 2013, at 23:08, John Martyn <johnrobertmartyn@xxxxxxxxx> wrote:
>>
>> Yes, use this:
>> @navigationKeys Navigation Keys
>> Go to Home Page %KeyFor (HomePage)
>> @@
>> The key for is the name of the script that is activated using a link
>> style navigation.
>> John Martyn
>>
>> -----Original Message-----
>> From: jawsscripts-bounce@xxxxxxxxxxxxx
>> [mailto:jawsscripts-bounce@xxxxxxxxxxxxx] On Behalf Of Bob
>> Sent: Wednesday, October 16, 2013 4:35 AM
>> To: jawsscripts@xxxxxxxxxxxxx
>> Subject: [jawsscripts] Virtual Viewer Help
>>
>> I have an application that has nearly no keyboard navigation.
>>
>> I am hoping to be able to scrape the useful information off each
>> screen and use the virtual viewer to display this.
>>
>> Once this is running I would like to add links to the information
>> displayed so that the user can input additional information where 
>> required.
>>
>> Is it possible to add a link or a button or anything to the virtual
>> viewer output that will allow me to close the viewer and trigger a
>> different function in my jaws scripts when it is pressed?
>>
>> Thanks
>>
>> Bob__________o?=
>>
>> 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
>>
> __________
>
> 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
>

__________

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


__________ 

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

__________ 

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

Other related posts: