[jawsscripts] Re: Reading changed values automatically

  • From: "Martin Slack" <m.g.slack@xxxxxxxxxxxx>
  • To: <jawsscripts@xxxxxxxxxxxxx>
  • Date: Fri, 7 Jan 2011 11:23:22 -0000

Hi Geoff,

  You say you haven't done much testing on the window relative positioning 
of frames, but you can't possibly have done less than I have.  I looked 
briefly at frames when I first started with Jaws, but scripting seemed such 
a cleaner way to go that I haven't really looked at them for years.  For 
this particular problem, it happens that frames have the feature of enabling 
speech to be triggered fairly painlessly by new text events, and that may 
well make them the better option, especially if the user is going to be 
doing something else in the foreground while waiting for the speech update, 
something which I haven't really addressed so far with my scripts.

  Martin



----- Original Message ----- 
From: "Geoff Chapman" <gch@xxxxxxxxxxxxxxxx>
To: <jawsscripts@xxxxxxxxxxxxx>
Sent: Thursday, January 06, 2011 10:34 PM
Subject: [jawsscripts] Re: Reading changed values automatically


> Martin your vibe on frames being relative to the screen and not the app
> window
> interests and concerns me. I admit I haven't done lots of testing on this
> precise attribute, but, in the frames definition, there is definitely a
> parameter which stipulates whether the frame should be relative to the
> window boarder, or to screen.  Do you believe then, that this parameter 
> just
> doesn't work as advertized? Or have I missed it's purpose do you think.
>
> I've used frames hugely in my earlier work before I had any concept of the
> far more complex whiles of insighting NewTextEvent, or ScheduleFunction, 
> to
> continually monitor stuff. and I've had great success with them really.
> I'ts not that hard to maximize the app window anywayz, and if it's only 
> for
> oneself, or on single puters that aren't gunna be messing with Screen Res,
> then I don't personally see the negatives of using frames that many seem 
> to
> attribute to their use?
>
> To the person originally asking the question, have you studied the
> documentation on use of frames?  There's much good information in the help
> docs on their usage eh. But the biggest kickstarter I'll give you, is that
> after you've defined them, you need to pay particular attention to what's
> called the validation criteria, which the auto definition editor ascribes 
> to
> the frame when defining it with controlShiftLeft/Right brackets, next to 
> p,
> for top left and Bottom right hand corners.
>
> You do need to almost always go in and check those, and eliminate any
> information from the window title, that you believe might break the frame
> from working, i.e. being valid, in other environmental situations.  It's
> called eliminating dynamic criteria.  There's a whole lot more to these 
> than
> I can explain here today, but, in my view, they're a heap simpler for the
> newby scripter to start utilizing to solve tasks, than learning how to do 
> it
> in script land.
>
>
> Geoff C.
>
> ----- Original Message ----- 
> From: "Martin Slack" <m.g.slack@xxxxxxxxxxxx>
> To: <jawsscripts@xxxxxxxxxxxxx>
> Sent: Thursday, January 06, 2011 9:18 AM
> Subject: [jawsscripts] Re: Reading changed volues automatically
>
>
>> Can Kirca,
>>
>>   Sorry about the delay.  I asked about static text.  I was really hoping
>> for more than the single word "in", if only because such a short word
> might
>> well occur somewhere else on the page, and lead us astray.
>>
>>   The proposal from Reed to use a frame certainly requires thought.  The
>> frame is designed to be able to be set up so that speech is triggered 
>> when
>> new text appears.  This would work around the problem with my proposal of
>> having to wait for a few seconds after the text changes before the script
>> looks again.  The downsides of using frames are that users run into
> problems
>> when using different screen resolutions or window sizes, since the frame
> is
>> defined with respect to the screen itself, not the window.
>>
>>   We could take either approach.  You must decide which is preferable in
>> your case.  Is it better to have the text spoken immediately, or to be
> able
>> to run the application window whether it is maximised or not?
>>
>>   Martin
>>
>>
>> ----- Original Message ----- 
>> From: "Can Kirca" <cankirca@xxxxxxxxx>
>> To: <jawsscripts@xxxxxxxxxxxxx>
>> Sent: Wednesday, January 05, 2011 9:26 PM
>> Subject: [jawsscripts] Re: Reading changed volues automatically
>>
>>
>> > Martin,
>> > I'm waiting your answer, are you there?
>> > thanks alot
>> > ----- Original Message ----- 
>> > From: "Martin Slack" <m.g.slack@xxxxxxxxxxxx>
>> > To: <jawsscripts@xxxxxxxxxxxxx>
>> > Sent: Wednesday, January 05, 2011 10:04 AM
>> > Subject: [jawsscripts] Re: Reading changed volues automatically
>> >
>> >
>> >> Can Kirca
>> >>
>> >>        Sorry, I was rather tired last night, and didn't notice your
> code.
>> >>
>> >>  First I would say that the procedure you are using seems rather
>> >> complicated,  having to move up and down as well as left and right. 
>> >> Is
>> >> there any static text (text that never changes) on the same line as 
>> >> the
>> >> changing figures you want spoken?  If so we ought to be able to use 
>> >> the
>> >> FindString function to move straight to that line in one go.  We might
> do
>> >> that in a function that we schedule to run at short intervals, say
> every
>> >> 30
>> >> seconds or every minute, and only speak if the number has changed 
>> >> since
>> >> the
>> >> last read.
>> >>
>> >>  How does that sound?
>> >>
>> >>  Martin
>> >>
>> >>
>> >> ----- Original Message ----- 
>> >> From: "Can Kirca" <cankirca@xxxxxxxxx>
>> >> To: <jawsscripts@xxxxxxxxxxxxx>
>> >> Sent: Tuesday, January 04, 2011 11:28 PM
>> >> Subject: [jawsscripts] Re: Reading changed volues automatically
>> >>
>> >>
>> >>> Hi Martin,
>> >>> I paysted my code here.
>> >>> when I press ctrl+shift+4 jaws says number of wating visiters
>> >>> I want to modify this script to say number of wating visiters
>> >>> automatically
>> >>> when it change.
>> >>> ----- Original Message ----- 
>> >>> From: "Martin Slack" <m.g.slack@xxxxxxxxxxxx>
>> >>> To: <jawsscripts@xxxxxxxxxxxxx>
>> >>> Sent: Wednesday, January 05, 2011 1:13 AM
>> >>> Subject: [jawsscripts] Re: Reading changed volues automatically
>> >>>
>> >>>
>> >>>> There are a couple of possibilities.  To start with, could you copy
> and
>> >>>> paste your code into an email to the list and explain to us how it
>> >>>> works
>> >>>> at
>> >>>> the moment?  This should provide a starting point.
>> >>>>
>> >>>>  Martin
>> >>>>
>> >>>>
>> >>>> ----- Original Message ----- 
>> >>>> From: "Can Kirca" <cankirca@xxxxxxxxx>
>> >>>> To: <jawsscripts@xxxxxxxxxxxxx>
>> >>>> Sent: Tuesday, January 04, 2011 10:32 PM
>> >>>> Subject: [jawsscripts] Reading changed volues automatically
>> >>>>
>> >>>>
>> >>>>> Hi,
>> >>>>> I'm using a software in our office for talking with customer.
>> >>>>> I created a simple script for reading how many visiters wating for
>> >>>>> chat.
>> >>>>> my script worked correctly but now, I want to modify my script as
> read
>> >>>>> number of wating visiters automatically  when it change.
>> >>>>> could you help me please?
>> >>>>> my script is:
>> >>>>> Script WaitingForChat ()
>> >>>>>
>> >>>>> SpeechOff ()
>> >>>>>
>> >>>>> SaveCursor ()
>> >>>>>
>> >>>>> InvisibleCursor ()
>> >>>>>
>> >>>>> JAWSTopOfFile ()
>> >>>>>
>> >>>>> JAWSPageUp ()
>> >>>>>
>> >>>>> NextLine ()
>> >>>>>
>> >>>>> NextLine ()
>> >>>>>
>> >>>>> NextLine ()
>> >>>>>
>> >>>>> NextLine ()
>> >>>>>
>> >>>>> PriorLine ()
>> >>>>>
>> >>>>> JAWSEnd ()
>> >>>>>
>> >>>>> PriorWord ()
>> >>>>>
>> >>>>> PriorWord ()
>> >>>>>
>> >>>>> PriorWord ()
>> >>>>>
>> >>>>> SpeechOn ()
>> >>>>>
>> >>>>> If GetWord () == "in" then
>> >>>>>
>> >>>>> PriorWord ()
>> >>>>>
>> >>>>> PriorWord ()
>> >>>>>
>> >>>>> PriorWord ()
>> >>>>>
>> >>>>> SayWord ()
>> >>>>>
>> >>>>> else
>> >>>>>
>> >>>>> SayWord ()
>> >>>>>
>> >>>>> EndIf
>> >>>>>
>> >>>>> PCCursor ()
>> >>>>>
>> >>>>> RestoreCursor ()
>> >>>>>
>> >>>>> EndScript
>> >>>>>
>> >>>>>
>> >>>>>
>> >>>>> Thanks
>> >>>>>
>> >>>>> __________�
>> >>>>>
>> >>>>> 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
>>
>
> __________�
>
> 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: