Steve,
I revisited JAWS scripting functions and figured out what to put in the
parm values on one of the JAWS Find functions. I tested this out and it
seems to be working so I assume I'm using it correctly.
Below is an example which is used in the Start script. This puts the
active cursor on the first character of the found string.
I've revised all the scripts I have for the Koch Trainer.
FindString (GetCurrentWindow (), "start", s_top, s_restricted, false)
----- Original Message -----
From: "Steve" <[log in to unmask]>
To: <[log in to unmask]>
Sent: Tuesday, December 20, 2011 12:21 PM
Subject: Re: Can't get G4FON CW tutorial program to start
> Peter,
>
> I haven't written very many scripts for Jaws, but I wonder is there a find
> command that Jaws uses? That might make all the nextline commands
> unnecessary.
>
> ----- Original Message -----
> From: "Tom Behler" <[log in to unmask]>
> To: <[log in to unmask]>
> Sent: Sunday, December 18, 2011 3:28 PM
> Subject: Re: Can't get G4FON CW tutorial program to start
>
>
>> Thanks again, Peter for all your work.
>>
>> these will be interesting to try.
>>
>> Hopefully, those who try it will let you know how they work.
>>
>> I will do so as well when I get the chance to do the scripting here.
>>
>> 73 from Tom Behler: KB8TYJ
>>
>> ----- Original Message -----
>> From: "Peter Slowkowski" <[log in to unmask]>
>> To: <[log in to unmask]>
>> Sent: Sunday, December 18, 2011 1:42 PM
>> Subject: Re: Can't get G4FON CW tutorial program to start
>>
>>
>>> Hi Tom,
>>>
>>> Thanks for the encouragement. I've rewritten those scripts and so far
>>> they are working consistently. I found a way around the issue of those
>>> top
>>> few lines of the screen changing.
>>> Below is what it ends up looking like in the JAWS manager script file,
>>> KochMorseTrainer.JSS. This is what the file name should be when you are
>>> in
>>> the application and bring up the file with JAWS key + 0.
>>> Everything else is the same, creating a new script, naming it,
>>> associating
>>> a keystroke with the script, saving/compiling and so on.
>>> So, there are two scripts I defined, KochStart and KochStop. I
>>> assigned
>>> the Control-Shift-M key combination to the Start and Control-Shift-N to
>>> the
>>> Stop; however the scripts names and assigned keys are your choice.
>>> I'll leave it at that, if you or anyone else wants to give them a try.
>>> They do save a bit of time.
>>> Thanks
>>>
>>>
>>> Script KochStart ()
>>>
>>> JAWSCursor ()
>>> JAWSHome ()
>>> JAWSPageUp ()
>>> JAWSHome ()
>>>
>>> NextLine ()
>>> NextLine ()
>>> NextLine ()
>>>
>>> NextWord ()
>>> SayWord ()
>>>
>>> RoutePcToJAWS ()
>>> PCCursor ()
>>>
>>> EndScript
>>>
>>>
>>> Script KochStop ()
>>>
>>> JAWSCursor ()
>>> JAWSHome ()
>>> JAWSPageUp ()
>>> JAWSHome ()
>>>
>>> NextLine ()
>>> NextLine ()
>>> NextLine ()
>>>
>>> NextWord ()
>>> NextWord ()
>>> SayWord ()
>>>
>>> RoutePcToJAWS ()
>>> PCCursor ()
>>>
>>>
>>> EndScript
>>>
>>>
>>> ----- Original Message -----
>>> From: "Tom Behler" <[log in to unmask]>
>>> To: <[log in to unmask]>
>>> Sent: Sunday, December 18, 2011 10:30 AM
>>> Subject: Re: Can't get G4FON CW tutorial program to start
>>>
>>>
>>>> Well, Peter, please know your efforts are very much appreciated, and
>>>> I'm
>>>> sure I'm not just speaking for myself.
>>>>
>>>> Do what you can, and please re-post anything you can come up with for
>>>> us
>>>> to
>>>> try.
>>>>
>>>> 73 from Tom Behler: Kb8TYJ
>>>>
>>>
|