[jawsscripts] Testing whether the {ShiftKey} in a function is really being pressed?

  • From: "Geoff personal" <gch@xxxxxxxxxxxxxxxx>
  • To: <jawsscripts@xxxxxxxxxxxxx>
  • Date: Mon, 23 Mar 2009 12:57:31 +1100

Scripters.
Another queery if I may.
I have a situation where I've loaded a new FrameSet, into the jff/jfd's, 
with a bunch of OnFocus frames
to handle a particular screen's tab order, but, of course, There's a timing 
issue going on, such that the frame whose events I want to fire upon the 
cursor moving/being inside it, is in this new FrameSet, and, of course the 
screen has to be already loaded, and the cursor moved to that point, before 
the FrameSet actually loads.
This means that the Current field label on the new Screen, which I've got 
working via an OnFocus frame in the new FrameSet just loaded, doesn't fire 
properly.
now what's weird is, pressing the shift key manually, seems to, flush, 
something, and make the proper ONFocus frame fire it's events as if the 
cursor had just moved into it.
Yet, when I place that shiftKey in a function, either like this:
{Shift}
or
I place that single line in another function and schedule it,
neither one of these approaches, seems to emulate what I can do manually by 
hitting the shift key?
and the annoyance is, that if this isn't flushed and read properly, when the 
user tabs once, instead of reading the next Tab field and just ignoring it's 
current one, it also performs the "flushing" type function, and fires the 
data in the frame being left as well.
So, bottom line is, Can anyone tell me how I might test, whether using 
leftRight braces to pass the shiftKey in this way,
is actually really activating/pressing it or not?
When placing a

SayInteger (NKey)
statement , in KeyPressedEvent,
to speak keystrokes as they are pressed, tapping the control or shift key 
doesn't emit any number, so I'm not even sure if this registers properly?

Is there any other way in a function, to insure that the shift key is being 
simply tapped by itself, to provide the functionality I'm after?
I can see a function here called TypeKey, but whenI try inserting this, it 
asks me for a "message constant containing the
Keystroke  Name?
And, well I'm not at all sure yet how I might work out where I might find 
such a thing, hense my  use of leftRight Braces to simply pass the key 
through to the application?
and if KeyPressedEvent doesn't even register it alone as having been 
pressed, as it seems is the case, I feel a bit stumped on this one too?


thanks so much for any pointers.


Geoff c. 

__________ 
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: