[jawsscripts] Re: Events

  • From: "Tony" <tonys_groups@xxxxxxxxxxxxxx>
  • To: <jawsscripts@xxxxxxxxxxxxx>
  • Date: Wed, 24 Feb 2010 18:38:10 -0000

OK, but in the case of the bottom edge event, the function calls for the
window handle to be passed to it doesn't it, as the first parameter?

I'd obtain that using getFocus.

However, as I don't actually call the bottom edge function, how is it
determined which window to monitor?



-----Original Message-----
From: jawsscripts-bounce@xxxxxxxxxxxxx
[mailto:jawsscripts-bounce@xxxxxxxxxxxxx] On Behalf Of Soronel Haetir
Sent: 24 February 2010 18:15
To: jawsscripts@xxxxxxxxxxxxx
Subject: [jawsscripts] Re: Events

you just create the function, there is no more to it:

void Function BottomEdgeEvent ()
; Code here
EndFunction

JAWS scripting works by first checking the script file that gets
loaded for the current program, it then falls back to the default
script if no match is found.  You can do the same thing with built-in
keyboard triggered scripts, not just functions:

Script SayNextLine ()

EndScript

This scheme explains why jaws scripting does not support recursive
function calls.  The only time you need to hook anything is when you
are creating a completely new script with its own key binding.

On 2/24/10, Tony <tonys_groups@xxxxxxxxxxxxxx> wrote:
> Hi All
>
> Having taught myself the basics of scripting, and looked through the FSDN,
> what is still unclear to me is how one connects code to an event.
>
> By way of example, the event which fires if the cursor attempts to move
> beyond the bottom edge of a window, the Bottom Edge event.
>
> How would I link code to that event please?
>
> Thanks for any clues.
>
> T
>
> __________
> Visit and contribute to The JAWS Script Repository http://jawsscripts.com
>
> View the list's information and change your settings at
> //www.freelists.org/list/jawsscripts
>
>


-- 
Soronel Haetir
soronel.haetir@xxxxxxxxx
__________ 
Visit and contribute to The JAWS Script Repository http://jawsscripts.com

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

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

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

Other related posts: