[jawsscripts] Re: scroll bar issue with in application

  • From: Soronel Haetir <soronel.haetir@xxxxxxxxx>
  • To: jawsscripts@xxxxxxxxxxxxx
  • Date: Fri, 8 Jan 2010 19:49:17 -0900

As long as the slider actually responds once the keyboard is on it,
something like the following should work, though you will likely need
sighted assistance.  If the slider does not respond to the keyboard
you are going to have a lot of trouble and will need more help than I
can provide.

1) With system focus on the problem control (this is where you will
need help), activate the home-row utilities by hitting INS+SPACE

2) Hit F3 repeatedly until "Control" becomes the active property, hit
F1 and note the value.

3) Hit F3 repeatedly until "Class" becomes the active property, hit F1
and again note the value.  I would suggest using CTRL+F1 to copy this
value as it can be tricky.

4) Exit the home-row utility by pressing INS+SPACE again.

5) Open the script manager (INS+f2, then Script Manager from the
list).  Create a new script file if asked.

6) Enter the following script, replacing <Class> and <Control> with
the values from the previous steps.    Use the New Script item on the
Scripts menu and be sure to check the Can be attached to key box as
well as assigning a key combo for the script (this can be changed
later using the keyboard manager if you like).


Script FocusToPassengerCountSlider()
  var
    Handle hSlider

  Let hSlider = FindWindowWithClassAndId(GetParent(GetFocus()),
<Class>, <Control>)

  If hSlider == 0 Then
    SayMessage(OT_NO_DISABLE, "Unable to locate Passenger Count slider")
  Else
    SetFocus(hSlider)
  EndIf

EndScript



7) Save the file, which will check for errors



On 1/8/10, jmtsanders@xxxxxxxxxxxxx <jmtsanders@xxxxxxxxxxxxx> wrote:
> Hi, I have a question: I use this one particular application called FS
> passengers.
> In one of the dialog boxes, there's a slider bar where you have to set the
> number of passengers. I'm not able to find that with the jaws cursor. I'm
> wanting to create a script for jaws to tell jaws to move to the slider bar.
> How should I go about creating that particular script?
> I hope to hear from you soon.
> Sincerely,
> John Sanders
> __________
> Visit and contribute to The JAWS Script Repository http://jawsscripts.com
>
> View the list's information and change your settings at
> //www.freelists.org/list/jawsscripts
>
>


-- 
Soronel Haetir
soronel.haetir@xxxxxxxxx
__________ 
Visit and contribute to The JAWS Script Repository http://jawsscripts.com

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

Other related posts: