[jawsscripts] Re: move To

  • From: "Dean Masters" <dwmasters@xxxxxxxxxxxxx>
  • To: <jawsscripts@xxxxxxxxxxxxx>
  • Date: Sat, 2 Jan 2010 21:57:14 -0500

If you look at the scripts, I have used all of these. I put them in a .jsh 
file and just use wc_ResourceSection to represent the name of the window 
class, wn_ResourceSection to represent the window name of the section, and 
id_ResourceSection for the control ID of the area. so I know all that info I 
just can't get the cursor to move there every time with any of the ways. And 
now I can't get it to move when trying all three ways. so i didn't know if I 
had the syntax right or not.

Dean

----- Original Message ----- 
From: "Soronel Haetir" <soronel.haetir@xxxxxxxxx>
To: <jawsscripts@xxxxxxxxxxxxx>
Sent: Saturday, January 02, 2010 9:29 PM
Subject: [jawsscripts] Re: move To


Shouldn't you be able to use the homerow utilities to get a window id?
 And if the buildin tools can't help you you could try this one:
http://www.bestsoftware4download.com/software/t-free-winid-download-jhmmlbum.html

about screen position.

The documentation for the homerow utility is in the freedom scientific
Basics of Scripting manual, section 13.3

It can be downloaded at:
http://www.freedomscientific.com/downloads/training/training-downloads.asp#fsdn
(It and another file are under a level 2 heading).

On 1/2/10, Dean Masters <dwmasters@xxxxxxxxxxxxx> wrote:
> 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
> //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
>
>
> __________
> 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
>
>


-- 
Soronel Haetir
soronel.haetir@xxxxxxxxx
__________
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: