[jawsscripts] Re: Keypress question

Questions here without answers or testing:

1.  If one starts with selecting to the left and then hits the shift right what 
occurs?

I can't remember my systems but I think in some cases the extension is then 
expanded  in the other direction and in other cases the last item selected is 
de-selected.

If it is the later case, do you need to track how many hcars are selected and 
what direction  one is going?  Then if direction reverses  instead of saying 
selected you would say unselected and drop the count by one.

Best,

Jon


-----Original Message-----
From: jawsscripts-bounce@xxxxxxxxxxxxx 
[mailto:jawsscripts-bounce@xxxxxxxxxxxxx] On Behalf Of David Farough
Sent: Thursday, January 22, 2009 11:26 AM
To: jawsscripts@xxxxxxxxxxxxx
Subject: [jawsscripts] Re: Keypress question

Hi Rui and Martin;

I think that I have found an answer to the solution you provided which did not 
speak the appropriate characters when selecting the text.

Here are the slightly modified scripts.

Script toggleState ()
  Let iToggle = not iToggle
SayInteger (iToggle, 10)
EndScript

Script improvedRightArrow ()
  If (iToggle) Then
;    TypeKey ("Shift+RightArrow")
; SayString ("selected ")
;    SayString (GetCharacter ())
        PerformScript SelectNextCharacter()
  Else
    PerformScript SayNextCharacter()
  Endif
EndScript

Script improvedLeftArrow ()
  If (iToggle) Then
;    TypeKey ("Shift+LeftArrow")
    ;SayString ("unselected ")
;   SayString (GetCharacter ())
        PerformScript SelectPriorCharacter()
  Else
    PerformScript SayPriorCharacter()
  Endif
EndScript


David Farough
Application Accessibility Coordinator/coordonateur de l'accessibilité 
Information Technology Services Directorate / Direction des services 
d'information technologiques Public Service Commission / Commission de la 
fonction publique Email / Courriel:  David.Farough@xxxxxxxxxxxxx
Tel. / Tél:    (613) 992-2779

>>> "Martin Slack" <m.g.slack@xxxxxxxxxxxx> 09:22 am Thursday, January
22, 2009 >>>
Hi Rui,

  As I said in my last post, these scripts are not the complete answer for your 
problem, but they may give you a start.

  The lines SayString (GetCharacter ()) and PerformScript
SayNext/PriorCharacter()
 in the two arrow scripts seem to have no effect at all.

  Martin...

__________
Visit and contribute to The JAWS Script Repository http://jawsscripts.com

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



This e-mail may contain Sprint Nextel Company proprietary information intended 
for the sole use of the recipient(s). Any use by others is prohibited. If you 
are not the intended recipient, please contact the sender and delete all copies 
of the message.

__________ 
Visit and contribute to The JAWS Script Repository http://jawsscripts.com

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

Other related posts: