[jawsscripts] Re: A suggestion is needed to perform a say function with every navigation and when item gains focus

hi Jitendra.

hmmm, I wouldn't have thought personally, that KeyPressedEvent would've been
the best choice for this? But, admittedly I haven't been following the
thread at all properly, so perhaps it is.

However, ... well I'm no scripter really, so please disregard what I'm about
to suggest if it's too crazy,
but, I just wondered, might your problem about KeypressedEvent skipping
other things when you don't want it to, when your condition is met, perhaps
be due to not calling the default KeyPressedEvent function after you've
finished your processing?

i.e. wouldn't you always want KeyPressed Event to work as normal, whether or
not it meets your specialized conditions?

i.e.
Void Function KeyPressedEvent (int nKey, string strKeyName, int
nIsBrailleKey, int nIsScriptKey)
; then put all your code for your specialized conditions here,

; now call the default version of keyPressedEvent:
KeyPressedEvent (nKey, strKeyName, nIsBrailleKey, nIsScriptKey)
EndFunction


----- Original Message ----- 
From: "Jitendra" <jeet.invincible@xxxxxxxxx>
To: <jawsscripts@xxxxxxxxxxxxx>
Sent: Friday, July 31, 2009 8:59 PM
Subject: [jawsscripts] Re: A suggestion is needed to perform a say function
with every navigation and when item gains focus


> for What  I have in mind, you may need to read again my very first
> message, but in short:
> I have a time string, it may come in a list and in edit boxes, and I
> want jaws to read that string as I wanted, I have formatted it with a
> function as hh,mm,ss and now stored it and want to say when navigation
> happens, switch back to the app, insert+ tab key is pressed, and when
> item gains focus by any other means, such as JAWS automaticly reads the
> item state, text, label or any other thing.
> Note: the list views are standard lists, and MSAA can tell their headers
> and text as well, but btw, the keypressed event function says my string
> for sure, but skips other list items and their headers.
> Thank you.
> You wrote:
> If you would like to, you don't need to check for specific keys if you
want
> the event to fire with every keypress though. Is this the behavior you had
> in mind?
>
>
>
> __________
> 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
>

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