[jawsscripts] Re: GetTagIndex function

  • From: "David Farough" <David.Farough@xxxxxxxxxxxxx>
  • To: <jawsscripts@xxxxxxxxxxxxx>
  • Date: Tue, 02 Feb 2010 13:21:18 -0500

here is an example which uses the GetTagIndex function.  I found this
example in virtual.jss.
Also you should check out MoveToTagByIndex and GetListOfTags
functions.

HTH

void function SelectATagHelper(string sTag, string sAttrList,string
sTitle)
var
        string strBuf,
        string uCaseTag,
        string lCaseAttrs,
        int index,
        int nCurrent
if InHJDialog () then
        SayFormattedMessage (OT_ERROR, cmsg337_L, cmsg337_S)
        return
EndIf
if !IsVirtualPCCursor() then
        SayQuickKeynavigationNotAvailable()
        return; feature not available in non-vpc mode
endIf
let uCaseTag=StringUpper(sTag)
let lCaseAttrs=stringLower(sAttrList)
let strBuf=GetListOfTags(uCaseTag,lCaseAttrs,LIST_ITEM_SEPARATOR)
if !strBuf then
        
SayFormattedMessage(OT_ERROR,formatString(CMSGNoTagsFound_L,ReturnTagTypeLiteral
 (sTag)),formatString(CMSGNoTagsFound_S,ReturnTagTypeLiteral  (sTag)))
        return; no tags found
endIf
let nCurrent=GetTagIndex(uCaseTag)
let index = DlgSelectItemInList (strBuf, sTitle, false,nCurrent)
if index == 0 then
        return; user cancelled operation
endIf
if MoveToTagByIndex(index,uCaseTag) then
        sayLine()
endIf
endFunction

David Farough
Application Accessibility Coordinator/coordonateur de l'accessibilité 
Information Technology Services Directorate /
Direction des services d'information technologiques
Public Service Commission / Commission de la fonction publique
Email / Courriel:  David.Farough@xxxxxxxxxxxxx
Tel. / Tél:    (613) 992-2779 

>>> "Holdsworth, Lynn" <Lynn.Holdsworth@xxxxxxxxxxx> 06:43 am Tuesday,
February 02, 2010 >>>
Hi,

Do any of you know how the GetTagIndex function works? If so I'd
really
appreciate an example.

Thanks in advance, Lynn


-- 
DISCLAIMER:

NOTICE: The information contained in this email and any attachments is

confidential and may be privileged.  If you are not the intended 
recipient you should not use, disclose, distribute or copy any of the 
content of it or of any attachment; you are requested to notify the 
sender immediately of your receipt of the email and then to delete it 
and any attachments from your system.

RNIB endeavours to ensure that emails and any attachments generated by
its staff are free from viruses or other contaminants.  However, it 
cannot accept any responsibility for any  such which are transmitted.
We therefore recommend you scan all attachments.

Please note that the statements and views expressed in this email and 
any attachments are those of the author and do not necessarily
represent
those of RNIB.

RNIB Registered Charity Number: 226227

Website: http://www.rnib.org.uk 



This message has been scanned for viruses by Websense Hosted Security -

http://www.websense.com/content/HostedEmailSecurity.aspx 

__________á
Visit and contribute to The JAWS Script Repository
http://jawsscripts.com 

View the list's information and change your settings at 
//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 
//www.freelists.org/list/jawsscripts

Other related posts: