[jawsscripts] Re: complaining about frames

  • From: Jackie McBride <abletec@xxxxxxxxx>
  • To: jawsscripts@xxxxxxxxxxxxx
  • Date: Thu, 12 Mar 2009 08:00:14 -0700

Thanks, Paul. Sounds good. I'd thought about that but was concerned
about the amount of processing it might take. Since u say it doesn't
require much, Perhaps I'll try it. It does seem, however, that a frame
could be made to monitor a given window no matter its position, which
would make life easier for every1 involved, especially those who don't
know anything about scripting. Irritates me. Wile scripting is a
powerful tool, fs really should implement as many ways as possible to
get an app to work w/o needing it.

I appreciate your comments on this.

On 3/12/09, Paul Magill <magills@xxxxxxxxxxx> wrote:
> 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
>
>


-- 
Change the world--1 deed at a time
Jackie McBride
Check out my homepage at:
www.abletec.serverheaven.net
& please join my fight against breast cancer
<http://teamacs.acsevents.org/site/TR?px=1790196&pg=personal&fr_id=3489>
__________ 
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: