[jawsscripts] Center View of Search

  • From: "Ethan's Mailing list account" <ethan8768@xxxxxxxxx>
  • To: jawsscripts@xxxxxxxxxxxxx
  • Date: Fri, 27 Apr 2018 14:06:16 -0600

Re sending this in case someone may have an idea on a solution.

Thank you,

Ethan

---------- Forwarded message ----------
From: Ethan's Mailing list account <ethan8768@xxxxxxxxx>
Date: Wed, 25 Apr 2018 17:27:42 -0600
Subject: Center View of Search
To: jawsscripts <jawsscripts@xxxxxxxxxxxxx>

Hello scripters,

I have a question regarding MAGic scripting. It is pretty much the
same as JAWS scripting except additional scripts and functions are
used.

What I am trying to do is in a browser like Firefox, I would like to
search for a search term and find it. If the search is successful, I
would like MAGic to change the view so that the search term is in
focus, and have the mouse located where the search term appears to
allow for reading the line with MAGic.

The functions and scripts that are available to me do not appear to do
what I would like,  however, I am sure this is possible. Here is what
I have so far:

Function SearchForTermTest () ; CTRL+D
If (FindString (GetCurrentWindow(), "Sign in", s_top, s_Unrestricted)) Then
        PerformScript MoveViewToCursor()
        CenterMouseInView ()
        SayLine ()
Else
        Say ("not found", Ot_message)
EndIf
EndScript

Thanks in advance,

Ethan
__________�

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

Other related posts: