[jawsscripts] Re: move To

  • From: "Dean Masters" <dwmasters@xxxxxxxxxxxxx>
  • To: <jawsscripts@xxxxxxxxxxxxx>
  • Date: Sat, 2 Jan 2010 20:31:28 -0500

I am working on the WORDsearch bible software. Their resources has five tree 
views. I was trying to get to ResourceSection which is the first of five 
headers for the tree views. If I can get to the first one then I can use 
GetNextWindow for each of the tree views.

If I can't get there this way the only other way I know to do it is to 
search for a word or phrase and then test to see if it is in the correct 
window. This might need a while loop to search for the phrase and test the 
window name.

Dean

----- Original Message ----- 
From: "The dark Count" <darkcount1@xxxxxxxxx>
To: <jawsscripts@xxxxxxxxxxxxx>
Sent: Saturday, January 02, 2010 7:42 PM
Subject: [jawsscripts] Re: move To


does plane old left clicking on the window work Dean by chance?
It may end up not quite at the top of the window, but...

D C


Your unadulterated message follows:
 Subject: [jawsscripts] move To
 Date: 2 Jan 2010

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

__________
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


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