[jawsscripts] Re: complaining about frames

  • From: "Paul Magill" <magills@xxxxxxxxxxx>
  • To: <jawsscripts@xxxxxxxxxxxxx>
  • Date: Thu, 12 Mar 2009 19:12:11 +1100

Hi Jackie,

If the purpose is to monitor a particular window for a change in the text it 
contains.

A non-frame method which may get you there, is to use a Scheduled function 
to continuously cycle checking the text within the window on each cycle. 
The previous value of the text is stored in a global variable.

You would need to initiate the process by calling the Window monitoring 
function from the AutoStartEvent, & this would also restart the process 
after you have Alt tabbed away & back.  i e. when the program goes out of 
focus & its scripts are unloaded, the ScheduleFunction generally fails.

The Schedule time would depend on how busy everything is, although it 
doesn't place much demand on processing, & how long you can wait to be 
notified of a change.

For Example:

Globals
STRING  GlobalPrevText

Void Function WindowMonitor ()
VAR
STRING  NewWindowText

LET NewWindowText = GetTextInWindow (the necessary set of functions to 
locate the window)
IF (GlobalPrevText != NewWindowText) THEN
  FunctionToDoTheFramesJob ()  ; announce the change etc
LET GlobalPrevText = NewWindowText
ENDIF; new text in window
ScheduleFunction ("WindowMonitor", 5) ; keep calling it over & over
EndFunction

Regards,
Paul from Aust

----- Original Message ----- 
From: "Jackie McBride" <abletec@xxxxxxxxx>


I hit ctrl left bracket twice to make my frame monitor a window. The
dad gum frame is so dependent on position that if the screen isn't
maximized, it won't work. You'd think they could monitor the window
for text changes. Sucks!

Any1 got any ideas about this?

Change the world--1 deed at a time
Jackie McBride

__________ 
Visit and contribute to The JAWS Script Repository http://jawsscripts.com

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

Other related posts: