Re: why doesn't this script line work

  • From: "Matthew Horspool" <drjaws@xxxxxxxxxxxxxxxx>
  • To: <jfw@xxxxxxxxxxxxx>
  • Date: Sat, 24 Sep 2005 18:37:15 +0100

Hi,

Is hjconst.jsh included in the Script Source File?

----- Original Message ----- 
From: "Michael Malver" <mmalver@xxxxxxxx>
To: <jfw@xxxxxxxxxxxxx>
Sent: Saturday, September 24, 2005 2:26 PM
Subject: why doesn't this script line work


I am running jaws 6.2
In a script I am writing, I want to find a string of text when I push a 
key
When I use control-i to pull up the findstring funtion I am told it 
needs
four parameters: a window handle, a text string, the search direcction 
and
whether it is restricted or not.
the line I have looks like this
FindString (GetAppMainWindow (GetFocus ()), "left:" ,s_top 
,s_unrestricted)
the word "left" is in quotes because that is what I want to find.
When I try to save the script,I am told s_TOP is an unknown variable 
even
though it is listed as a constant both in help, and in the guided 
parameter
entry screens.
Please help.  This three line script shouldn't have taken me over two 
hours
to debug.


--
To post a message to the list, send it to jfw@xxxxxxxxxxxxx
To unsubscribe from this mailing list, send a message to 
jfw-request@xxxxxxxxxxxxx with the word unsubscribe in the subject line.
Archives located at: //www.freelists.org/archives/jfw

If you have any concerns about the list, post received from the list, or 
the way the list is being run, do not post them to the list. Rather 
contact the list owner at jfw-admins@xxxxxxxxxxxxxx

--
To post a message to the list, send it to jfw@xxxxxxxxxxxxx
To unsubscribe from this mailing list, send a message to 
jfw-request@xxxxxxxxxxxxx with the word unsubscribe in the subject line.
Archives located at: //www.freelists.org/archives/jfw

If you have any concerns about the list, post received from the list, or the 
way the list is being run, do not post them to the list. Rather contact the 
list owner at jfw-admins@xxxxxxxxxxxxxx

Other related posts: