[jawsscripts] move To

  • From: "Dean Masters" <dwmasters@xxxxxxxxxxxxx>
  • To: "JAWS Scripts" <jawsscripts@xxxxxxxxxxxxx>
  • Date: Sat, 2 Jan 2010 16:30:09 -0500

I need to set up two nodes to move from so have the following two functions. 
In one script I runMoveToResourcePane followed by MoveToResourceSection. by 
putting in test statements in the script I know that MoveToResourcePane 
always works. MoveToResourceSection has worked at times with all three of 
the ways I have written. but then they don't always work so I thought I 
could set them all up so that if one didn't workone of the other two ways 
might move to the right place. but this has not worked. Does anyone see 
where I might be going wrong? Any suggestions?



Void Function MoveToResourcePane ()

SetJCFOption (OPT_VIRTUAL_PC_CURSOR, 0);in case in text pane

InvisibleCursor ()

MoveToWindow (FindWindow (GetAppMainWindow (GetCurrentWindow ()), 
wc_ResourcePane, wn_ResourcePane))

EndFunction



Void Function MoveToResourceSection ()

InvisibleCursor ()

SaveCursor ()

MoveToWindow (FindDescendantWindow (GetCurrentWindow (), 
id_CommunityDocuments))

If GetWindowClass (GetCurrentWindow ()) == wc_ResourceSection then

Return

Else

RestoreCursor ()

FindWindow (GetCurrentWindow (), wc_ResourceSection, wn_CommunityDocuments)

If GetWindowClass (GetCurrentWindow ()) == wc_ResourceSection then

Return

Else

RestoreCursor ()

MoveToWindow (GetFirstChild (GetFirstChild (GetFirstChild (GetFirstChild 
(GetCurrentWindow ())))))

EndIf

EndIf

EndFunction



Thanks for any help,

Dean


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