Hi Rick,
If these are UI controls and such, I suspect you have to get a little more
involved in having them speak. In other words getting the role state and such.
But, I do not know what type of screen you are reading to give any kind of
guess in what you are doing.
I just know that in the new UI stuff things changed a little in getting
things to speak, for most screens can read nothing unless the type of
controlled is looked for or the type of role it plays. I ran into this when
looking at a new program that was all the new windows stuff for nothing was
read until I started looking at something that was not the old standards.
So take a look at the MSAA events and the screen/control you are looking at
and call that process using the MSAA events. See what happens then.
Bruce
Sent: Sunday, June 17, 2012 9:32 AM
Subject: Re: kdPass And kdProcess
Hi Bruce:
The speech is the same for tabbing between button and ListBox controls as
well as any other key press within the target application.
The question is whether WE is suppose to speak when OnKeyDown and OnKeyUp are
used with kdPass and kdProcess and navigation keys are pressed whether in a
dialog, listbox, treeview or just between button controls on a window.
Rick USA.
----- Original Message -----
From: BT
To: [email protected]
Sent: Sunday, June 17, 2012 8:49 AM
Subject: Re: kdPass And kdProcess
Hi Rick,
I suspect that if you are reading a Tree view and using any events you
must also have the call back check for the treview event as I did in my
Uninstall program and Trek game program. Look at the events I watch for and you
will see what I mean in both cases. I will be away fro a few hours.
Bruce
Sent: Sunday, June 17, 2012 8:44 AM
Subject: Re: kdPass And kdProcess
Hi Bruce: I want to know if WE is suppose to speak the underlying text of
objects when kdPass and kdProcess are used.
For example:
I open VB.net 2010 Express and my script is loaded and active.
There is a TreeView displayed.
When I do not use the OnKeyDown and OnKeyUp each item in the tree is read
as i hit the up or down cursor.
When I use kdPass and kdProcess nothing is read of the TreeView when I
cursor up and down the tree items.
There is not any code in the event handlers.
First, is this normal behavior?
Rick
From: BT
To: [email protected]
Sent: Sunday, June 17, 2012 7:34 AM
Subject: Re: kdPass And kdProcess
Hi Rick,
I am guessing at this but the KDPass would not look at what you
have inside the key, go on it's merry way and the KDProcess may actually be too
late to do anything since it is after the key has been processed. It is a
tricky issue and I suspect that doing something during the key up and down is
not possible, just do something after that and do the best you can to get
something done.
Maybe during the key event at least capture the ID's and do
something afterwards, like using the events for such thing as window opening,
closing, focus ...
Those events are part of the MSAA event list and see where it takes
you.
Do this by using the WE Event app monitoring to see what gets
displayed per event you have chosen to monitor. I suspect you need to do this
first instead of guessing. Find out what is in fact being triggered, opened, or
shut down...
Once you know that process and can flag it, when that event gets
triggered, then do something!
Bruce
Sent: Sunday, June 17, 2012 6:11 AM
Subject: kdPass And kdProcess
Hi I get unexpected results with OnKeyUp and OnKeyDown using the
kdPass and kdProcess enums:
When a script handles a keyboard OnKeyDown or up...
I have kdPass and the underlying program seems to respond to
keystrokes (I can see SolutionExplorer displayed and hidden upon the proper
keystrokes) but WindowEyes speaks nothing.
With kdProcess nothing seems to be getting through to the underlying
program and WindowEyes speaks nothing.
I filter the keyboard input on the running process id.
I have no code inside the event handlers.
I used WEEvent and it looks like the OnKeyDown and OnKeyUp events are
being captured by WeEvent but WindowEyes speaks nothing for kdPass and nothing
for kdProcess and with kdProcess seems to lock up the keyboard for most
navigation and other keys although I can minimize the program but most keys do
nothing including alt-f4 which should close the application.
I have to shut down the computer to stop the program.
Is this the normal behavior of the kdPass and kdProcess
enums?
Do I have to do my own WindowEyes Speech for both or is WindowEyes
suppose to be speaking when kdPass and, or, kdProcess is being used?
Should kdProcess not allow commands through to the underlying target
program and not speak anything without explicit code to do these things?
Rick USA