Hello Amanda Crocker,
is this "multi page dialog" like a TabControl? Are there cards on the
dialog (like on TabControl)?
If so, can you focus the cards and change the tabs with the arrow keys
(like TabControl). If this is possible can you find out if the control
has a handle (you can use GetFocus()). And if there is a handle, is the
handle the same on different cards?
If you can't find out the window class, can you find out the WindowType
(you can use GetWindowType ())?
Can you determine if the multi page dialog has MSAA-Objects (you can use
GetListOfObjects and copy the results to the clipboard with
CopyToClipboard). If the name of your "card" is in the list you can use
MSAA to find the actual card. Perhaps you can overwrite the Control+Tab
and activate the tab yourself, for example ClickObjectByName
(NameOfYourTab ...). So you can make a list of your Tabs: "Tab 1|Tab
2|Tab3" and place this in a variable (for example "YourList"). Then you
can make a global variable "iPos". In your script you can add 1 to the
position (iPos = iPos+1). If the position is greater then the tabs
number, set the position to 1. If you change the tab via script you can
determine with StringSegment(YourList, "|", iPos) the name of the tab in
the list ("Tab 1|Tab 2|Tab3") and activate it (for example with
ClickObjectByName) and speak the name (with "StringSegment (YourList,
"|", iPos)). I hope you understand the thoughts behind this. If not
please let me know.
Another approach is: There are different controls on each page. If you
can determine a control for example an edit with its name "Edit1", you
can overwrite the Control+Tab script. In the new script you can send
Control+Tab and determine if there is an edit with the name "Edit1" and
speak the tab name (or if there is a ComboBox or another Control).
I hope I made my points clear as I'm not an native English speaking
person. If there are misunderstandings please let me know.
I hope this helps a little
Udo
Am 25.10.18 um 20:56 schrieb Amanda Crocker:
Good afternoon,
I have recently started writing scripts for a Point of Sale software called
NCR-CounterPoint that my company uses. I have had some success in figuring
most of it out using the materials available online through Freedom
Scientific, the basic JAWS Script Writing as well as the Advanced JAWS Script
writing materials, I have also been referencing the FSDN, and the default
.jss and .jds files. I have run into a sticking point with the multi page
dialog boxes they have on some screens though. It navigates fine using ctrl +
tab, but it does not read the name of the tab you are on. I used the Script
Utility Mode and realized it had no Window Class, so I classified it as a
Dialog. I have also tried doing some modifications with the
DialogPageChangedEvent, NextDocumentWindow, SayWindowTypeAndText,
SayObjectActiveItem, SayWindow, SayFocusedObject, FocusChangeEvent,
SayFocusedWindow, and I am sure there are other functions and processes I
tried that I did not make notes on and nothing has worked
. The closest I have come is using
Script NextDocumentWindow()
TypeKey(cksControlTab)
DialogPageChangedEvent (GetCurrentWindow (), GetPriorWindow (GetCurrentWindow
()))
SayWindowTypeAndText (GetCurrentWindow ())
But this only results in very inconsistent reading, as in it reads the first
one or two times I press ctrl + tab and then stops, it's not that it only
reads certain tabs, or every x number of tabs, it just reads one or two and
then stops from wherever I started. Any ideas or suggestions on other things
to try or ways to modify the scripts to try and make these tabs read would be
hugely appreciated. I can read them with the JAWS cursor. But I have no idea
how to link the JAWS cursor to the PC cursor just for that function. As soon
as the new page opens, it goes to the first edit field, so if I do a
RouteJAWSToPC, it ends up putting both in the edit fields.
Amanda Crocker
Application Administrator
[Description: Description: Description: Description: Description:
cid:DFBC8280-E544-447F-84B2-685D944FEB61] [JAWS Certified, 2018]
<http://www.freedomscientific.com/Certification>
7501 Prospect
Kansas City, MO 64132
Main (816) 421-5848
Direct (816) 237-2083
Fax (816) 237-2019
Visit us online at www.alphapointe.org<http://www.alphapointe.org/>
Keep up with all of the exciting things going on at Alphapointe -
follow us on social media!
[cid:image005.png@01D37018.233D9200]<https://www.facebook.com/Alphapointe/>
[cid:image007.png@01D37018.233D9200] <https://twitter.com/Alphapointe>
[cid:image009.png@01D37018.233D9200]
<https://www.linkedin.com/company/110562/>
[cid:image015.png@01D37018.233D9200]
<https://www.youtube.com/channel/UCFG9B_rbHaDrJkZH7HWwa0Q>
__________�
View the list's information and change your settings at
http://www.freelists.org/list/jawsscripts