[jawsscripts] Re: need help with the FindString function

  • From: "Martin Slack" <m.g.slack@xxxxxxxxxxxx>
  • To: <jawsscripts@xxxxxxxxxxxxx>
  • Date: Thu, 30 Sep 2010 17:15:19 +0100

You say:

I have tried s_bottom and s_top without any joy.

Have you tried s_next ?  The two constants you tried always start from one 
end of the file, so will never go further than the example they first find.

  Martin


----- Original Message ----- 
From: "NIcol" <nicoljacobus@xxxxxxxxxxxx>
To: <jawsscripts@xxxxxxxxxxxxx>
Sent: Thursday, September 30, 2010 12:37 PM
Subject: [jawsscripts] need help with the FindString function


> HI list
> I created a script that will put the cursor on the next occurance of the
> word download in IE.
>
> Because I often download files on sendspace and its  a schlep  to press
> control f, type download and press enter.
>
> My typing is not fluent so each time  I need to make sure that I spelled
> download correctly.
>
> I think that its easier if I have a script to  put me automatically on the
> next occurance  of the word download.
>
> IN this way I can easily locate the download link for a file.
>
> The problem that I am having is that the script does not move the cursor 
> to
> the next occurance of the word download.
>
> If I press the assigned keystroke, the cursor stays where it is.
>
> I have tried s_bottom and s_top without any joy.
>
> I have tried s_restricted and s_unrestricted without any joy.
>
> The script's code is below.
>
> Any help is much appreciated.
>
> Warm regards.
>
> Script SearchForDownloadLink ()
>
> FindString (GetCurrentWindow (), "download", s_top, s_unrestricted)
>
> SayLine ()
>
> EndScript
>
>
>
> __________�
>
> View the list's information and change your settings at
> //www.freelists.org/list/jawsscripts
> 

__________�

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

Other related posts: