[jawsscripts] Re: collection datatype

  • From: "Bissett, Tom" <tom.bissett@xxxxxxx>
  • To: "'jawsscripts@xxxxxxxxxxxxx'" <jawsscripts@xxxxxxxxxxxxx>
  • Date: Wed, 28 Jul 2010 15:13:25 -0400

Hi Jackie,  for some strange reason when ever I run the windows search on the 
ENU folders I don't seem to get results.  I have never figured that out but on 
several occasions I manually checked that the string I was searching for was 
definitely in a .jss file but the window search wouldn't find it.  No clue why. 

Tom Bissett

-----Original Message-----
From: jawsscripts-bounce@xxxxxxxxxxxxx 
[mailto:jawsscripts-bounce@xxxxxxxxxxxxx] On Behalf Of Jackie McBride
Sent: July 28, 2010 1:56 PM
To: jawsscripts@xxxxxxxxxxxxx
Subject: [jawsscripts] Re: collection datatype

Like I said, I knew it would be embarrassing. That's weird, though,
cuz I looked in both all users & my user folder, using the windows
file find. Guess that's useless. I hate it when that happens!

On 7/28/10, Mike O'Brien <mike23432@xxxxxxxxxxx> wrote:
> Hi Jackie
>
> Do you per chance have a copy of the Default script source in your JAWS user
> file.  I know I have been bit by that several  times.  If so, it wouldn't be
> the one from the latest release.  You can choose open shared file from the
> file menu in script manager to see the JAWS supplied script.
>
> Mike
>
> -----Original Message-----
> From: jawsscripts-bounce@xxxxxxxxxxxxx
> [mailto:jawsscripts-bounce@xxxxxxxxxxxxx] On Behalf Of Jackie McBride
> Sent: Wednesday, July 28, 2010 12:29 PM
> To: jawsscripts@xxxxxxxxxxxxx
> Subject: [jawsscripts] Re: collection datatype
>
> The "about Jaws" dialog says I have that version. This script is not here.
> What the firetruck is going on here? I feel like I've just stepped into the
> twilight zone. I truly do not understand this! Surely I'm missing
> something--but what? This could prove to be truly embarrassing when all is
> said & done. I am totally weirded out! I don't use researchIt or aim. Maybe
> I'll modify the install & see if there are some scripts that haven't been
> installed yet? But that truly makes no sense!
>
> On 7/28/10, David Farough <David.Farough@xxxxxxxxxxxxx> wrote:
>> I have it in version 11.0.1461
>> I found it in the default scripts in the GetTermForResearchIt
>> function.
>>
>> * extracted text follows.
>> string Function getTermForResearchIt () var
>>      collection here
>> let here = new collection
>> ;Basic demonstration of how collections work within JAWS.
>> ;This is of course a bit simplistic and the uses are far more
>> wide-ranging than here, but at least the basic idea gets conveyed.
>> ;final note on collections in general - there is no arraycopy or
>> collectioncopy so if you pass it around, it's byref / the address to
>> the original.
>> ;You'd need to for / forEach through it and independently make your
>> own copy if that's what you want, ; but could be memory-intensive.
>> ;this is really simplistic collection.
>> ;We never want selected text anywhere if the JAWS or invisible cursor
>> is active:
>> if ! isJAWSCursor () && ! isInvisibleCursor () then
>>      let here.selectedText = getSelectedText () endIf let here.word =
>> getWord () let here.window = getFocus () let here.class =
>> getWindowClass (here.window) let here.type = getWindowSubtypeCode
>> (here.window) if ! here.type  then
>>      let here.type = getObjectSubtypeCode (TRUE) endIf let
>> here.isMultiline = (here.type == wt_MULTILINE_EDIT  ||
>> getWindowStyleBits (here.window) & ES_MULTILINE  ;|| stringContains
>> (getActiveCursorName (), cscFSDomCursorName); FSDom can run in
>> single-line edit controls  || here.class == cwc_Word_Document ||
>> here.class == cwc_Word_Document2
>> || here.class == cwc_WordPerfect_Document
>> );
>> let here.AcceptsSelection = isVirtualPcCursor () || (isPcCursor () &&
>> here.isMultiline)
>> if here.AcceptsSelection then
>>      if here.selectedText then
>>              return here.selectedText
>>      else
>>      return here.word
>>      endIf
>> elIf ! here.selectedText && (here.type == WT_EDIT || here.type ==
>> WT_READONLYEDIT || stringContains (here.class, "edit")) then
>>      return here.word
>> elIf !isPcCursor () then
>>      return here.word
>> else
>>      return cscNull
>> endIf
>> ;not necessary for a local script call but invaluable if the
>> collection has been passed around.
>> ;The last pointer that drops the collection causes internal garbage
>> collection, aka no scrubbing needed by you ;Obviously since
>> collections / arrays are done byref only dereference when you or
>> whoever's using your collection doesn't need it anymore.
>> let here = null();variant nothing = dump it 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. / Tl:    (613) 992-2779
>>
>>>
>> This e-mail message is intended for the named recipient(s) and may
>> contain information that is privileged, confidential and/or exempt
>> from disclosure under applicable law. Unauthorized disclosure, copying
>> or re-transmission is prohibited. If you are not a named recipient or
>> not authorized by the named recipient(s), or if you have received this
>> e-mail in error, then please notify the sender immediately and delete
>> the message and any copies.
>>  >
>> Ce courriel est destin exclusivement au destinataire mentionn en titre
>> et peut contenir de l'information privilgie, confidentielle ou
>> soustraite  la communication aux termes des lois applicables. Toute
>> divulgation non autorise, toute reproduction ou racheminement est
>> interdit. Si vous n'tes pas le destinataire de ce courriel, ou n'tes
>> pas autoris par le destinataire vis, ou encore, si vous l'avez reu par
>> erreur, veuillez le mentionner immdiatement  l'expditeur et supprimer
>> le courriel et les copies.
>>
>> __________?
>>
>> View the list's information and change your settings at
>> http://www.freelists.org/list/jawsscripts
>>
>>
>
>
> --
> Change the world--1 deed at a time
> Jackie McBride
> Scripting Classes: http://jawsscripting.lonsdalemedia.org
> homePage: www.abletec.serverheaven.net
> For technophobes: www.technophoeb.com
> __________?
>
> View the list's information and change your settings at
> http://www.freelists.org/list/jawsscripts
>
> __________ 
>
> View the list's information and change your settings at
> http://www.freelists.org/list/jawsscripts
>
>


-- 
Change the world--1 deed at a time
Jackie McBride
Scripting Classes: http://jawsscripting.lonsdalemedia.org
homePage: www.abletec.serverheaven.net
For technophobes: www.technophoeb.com
__________ 

View the list's information and change your settings at 
http://www.freelists.org/list/jawsscripts

__________�

View the list's information and change your settings at 
http://www.freelists.org/list/jawsscripts

Other related posts: