[jawsscripts] Re: speaking text from a non-active window

  • From: "Travis Roth" <travis@xxxxxxxxxxxxxx>
  • To: <jawsscripts@xxxxxxxxxxxxx>
  • Date: Wed, 20 Jan 2016 08:43:17 -0600

Check out GetCurrentItem() and see if you can use what it returns.
Since it accepts a window handle you do not need focus in the control to use it.


-----Original Message-----
From: jawsscripts-bounce@xxxxxxxxxxxxx 
[mailto:jawsscripts-bounce@xxxxxxxxxxxxx] On Behalf Of Jason Fayre
Sent: Wednesday, January 20, 2016 8:31 AM
To: jawsscripts@xxxxxxxxxxxxx
Subject: [jawsscripts] Re: speaking text from a non-active window

Thanks Jonathan,
The information I need shows up in a multi-column listview. I need to make sure 
that I am reading the correct info, since the list could potentially have more 
than one entry.
Is there a way I can parse the list view and check each line to find the info I 
need?
I'm looking at the FSDN and I'm not finding anything related to parsing list 
views.



On 1/19/16, Jonathan C. Cohn <jon.c.cohn@xxxxxxxxx> wrote:

Using NewTextEvent is probably your best bet. It  will have to be in 
the default script file.
The function provides the handle where text is written, check if this 
is your phone app and then proceed as appropriate.  you can get hints 
by looking for Skype functionality.


Jonathan Cohn

On Jan 19, 2016, at 6:36 PM, Jason Fayre <jfayre@xxxxxxxxx> wrote:

Great, thanks!
I've thought of a few more questions:
1. The information I need to look for shows up in a list view in the 
application. What is the best way of parsing a list view for data? 
There shouldn't be more than one item in the list, but there might 
be. Can I pull the list items into an array some how? The info I need 
will show up in one of the list columns, but I need to check the 
first column to make sure it is an incoming call.

2. I'm going to need to monitor this window in real time. So I don't 
drag the rest of the system down, is it best to use the 
ScheduleFunction facility for this? I'm assuming I shouldn't use a while 
loop?





On 2016-01-19 3:26 PM, Travis Roth wrote:
If you want the script to run when a different application is in 
focus then yes a default script is the best way usually.


-----Original Message-----
From: jawsscripts-bounce@xxxxxxxxxxxxx 
[mailto:jawsscripts-bounce@xxxxxxxxxxxxx] On Behalf Of Jason Fayre
Sent: Tuesday, January 19, 2016 1:59 PM
To: jawsscripts <jawsscripts@xxxxxxxxxxxxx>
Subject: [jawsscripts] speaking text from a non-active window

Hello everyone,
I'm working to add some scripts for a phone system application at work.
We are looking to find a way to indicate to our employees which 
queue a call is coming in from.
I know how to grab this info while the window is active. However, 
I'd like to come up with a way of having JAWS speak a message when 
the window isn't in focus.
I'm assuming I could do something by adding scripts to the default file.
Would this work?
__________

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


__________ 

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


__________ 

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: