[jawsscripts] Re: Toggling capslock off when leaving Calculater

  • From: "Bissett, Tom" <tom.bissett@xxxxxxx>
  • To: "'jawsscripts@xxxxxxxxxxxxx'" <jawsscripts@xxxxxxxxxxxxx>
  • Date: Wed, 13 Apr 2011 12:50:16 -0400

OK,  I am stumped.  It is apparent that the function to get the key state is 
not working as expected.  Hearing just the 0 and the exiting function 
demonstrates that the IControlToggle variable is remaining 0 and it is never 
going into the "if" statement.
I do not know why this would be.  I have this function working flawlessly on 
two different machines.   
This may have to go to FS for an answer on why the GetKeyState builtin function 
is not retrieving the Key state for the capslock.

Tom Bisset

-----Original Message-----
From: jawsscripts-bounce@xxxxxxxxxxxxx 
[mailto:jawsscripts-bounce@xxxxxxxxxxxxx] On Behalf Of Dave Maynard
Sent: April 13, 2011 11:52 AM
To: jawsscripts@xxxxxxxxxxxxx
Subject: [jawsscripts] Toggling capslock off when leaving Calculater

I changed the keyboard layout from laptop to desktop and restarted the
computer.  There was no change in the behavior  from what I reported
yesterday.

Thanks,

David Maynard
Macon County Senior Services
dmaynard35@xxxxxxxxxxxx

-----Original Message-----
From: jawsscripts-bounce@xxxxxxxxxxxxx
[mailto:jawsscripts-bounce@xxxxxxxxxxxxx] On Behalf Of Bissett, Tom
Sent: Tuesday, April 12, 2011 2:51 PM
To: 'jawsscripts@xxxxxxxxxxxxx'
Subject: [jawsscripts] Re: Toggling capslock off when leaving an app


I am not sure what is going on then.  If the capslock is on when you are
exiting windows calculator then it should say 1 not 0.  If the capslock is
off then you should hear the 0.  For some reason the function is not getting
the state of the capslock. Could it be posible that the capslock does not
work the same on a laptop when you have laptop layout selected?  I am doing
this on a desktop with the desktop layout selected.  I do not have a laptop
handy to test this but I am very puzzled.

Tom Bisset

-----Original Message-----
From: jawsscripts-bounce@xxxxxxxxxxxxx
[mailto:jawsscripts-bounce@xxxxxxxxxxxxx] On Behalf Of Dave Maynard
Sent: April 12, 2011 2:19 PM
To: jawsscripts@xxxxxxxxxxxxx
Subject: [jawsscripts] Re: Toggling capslock off when leaving an app

Here is what I am using and all that is spoken is "0, 0, Function ending" It
does not matter whether the caps lock is on or off when I alt tab away.

function AutoFinishEvent ()
var
int iControlState,
int iControlToggle
GetKeyState ("CapsLock", iControlState, iControlToggle) SayInteger
(iControlToggle) SayInteger (iControlState ) if Icontroltoggle == 1
TypeKey(cksCapsLock)
SayInteger (iControlToggle)
SayString("inside the if statement")

endif
SayString("function ending")
 
EndFunction

David Maynard
Macon County Senior Services
dmaynard35@xxxxxxxxxxxx

-----Original Message-----
From: jawsscripts-bounce@xxxxxxxxxxxxx
[mailto:jawsscripts-bounce@xxxxxxxxxxxxx] On Behalf Of Bissett, Tom
Sent: Tuesday, April 12, 2011 11:40 AM
To: 'jawsscripts@xxxxxxxxxxxxx'
Subject: [jawsscripts] Re: Toggling capslock off when leaving an app


Curious,  it is working well for me.
You might want to put a say statement in the function to see if the
IControlToggle value is actually changing. Otherwise I am not sure why it
does not work.

Tom Bisset

-----Original Message-----
From: jawsscripts-bounce@xxxxxxxxxxxxx
[mailto:jawsscripts-bounce@xxxxxxxxxxxxx] On Behalf Of Dave Maynard
Sent: April 12, 2011 11:31 AM
To: jawsscripts@xxxxxxxxxxxxx
Subject: [jawsscripts] Re: Toggling capslock off when leaving an app

I could not make the function work in the Calendar application.

David Maynard
Macon County Senior Services
dmaynard35@xxxxxxxxxxxx

-----Original Message-----
From: jawsscripts-bounce@xxxxxxxxxxxxx
[mailto:jawsscripts-bounce@xxxxxxxxxxxxx] On Behalf Of Bissett, Tom
Sent: Monday, April 11, 2011 9:13 AM
To: 'jawsscripts@xxxxxxxxxxxxx'
Subject: [jawsscripts] Re: Toggling capslock off when leaving an app


I use the following:

function AutoFinishEvent ()
var
int iControlState,
int iControlToggle
GetKeyState ("CapsLock", iControlState, iControlToggle)
if Icontroltoggle == 1
TypeKey(cksCapsLock)
endif
EndFunction
 
I find this to be reliable.  
Regards
Tom Bisset

-----Original Message-----
From: jawsscripts-bounce@xxxxxxxxxxxxx
[mailto:jawsscripts-bounce@xxxxxxxxxxxxx] On Behalf Of Travis Roth
Sent: April 9, 2011 2:52 PM
To: jawsscripts@xxxxxxxxxxxxx
Subject: [jawsscripts] Toggling capslock off when leaving an app

Hi,
I use Remote Desktop Connections from a laptop using the JAWS laptop
keyboard layout.

As a result Capslock is used a lot.

Often the capslock is toggled on the local machine during the course of
working inside remote desktop. 

And when I switch back to a local window capslock is often on which is not
what I want.

I'd like to have JAWS toggle the capslock state to off each time I switch
away from the remote desktop window.

I should be able ot use an AutoFinishEvent.

What would I use to toggle the capslock to off no matter its state? 

 

Thanks

-Travis roth

 

From: program-l-bounce@xxxxxxxxxxxxx [mailto:program-l-bounce@xxxxxxxxxxxxx]
On Behalf Of Manish Agrawal
Sent: Saturday, April 09, 2011 11:05 AM
To: jawsscripts@xxxxxxxxxxxxx; program-l@xxxxxxxxxxxxx
Subject: [program-l] accessibility requirements for a marquee control

 

Hi,

I am developing a marquee-like control for a wpf application. 

For anyone who is not exactly sure, a marquee control in html basically
scrolls some content continuously from one corner of the screen to another
on a web page. Usually used to display news headlines or advertisements at
the bottom or top of a page.

My question is about what kind of accessibility should I build into this
control that will be useful for screen readers and other AT in general? By
its very nature, a marquee doesn't get keyboard focus - it is read only
information that is constantly moving along the screen and a user is not
expected to interact with it except for reading it. In some implementations,
a mouse over causes a marquee to freeze where it is on the screen and start
scrolling again when the mouse is removed - a use case where someone wants
to carefully read a news item for example.

Will appreciate any thoughts on how such a control should be exposed for
accessibility. You can put across your ideas regardless of specific
accessibility APIs like UIA or anything else.

-Manish



__________�

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: