[jawsscripts] Re: Scripting football game. (was JAWS scripts)

  • From: aaron lane <ajbd777@xxxxxxxxx>
  • To: jawsscripts@xxxxxxxxxxxxx
  • Date: Thu, 2 Jan 2020 12:36:46 -0600

Thank you I understand that about the cursors now. When I remove the
handle number, and replace it with the variable handle, I have the
correct class type and window name, but I cannot get this script to
work at all now. I really don't know much of what I'm doing and will
have to do some more reading of the Jaws scripting manual. I've
removed the scripts and will try again when I understand these things
a bit better. Thanks.

On 1/2/20, Jonathan Cohn <jon.c.cohn@xxxxxxxxx> wrote:

You are aware I hope that setFocus / getFocus are not related to the JAWS
cursor? These are JAWS wrappers around standard Windows calls to change the
location of keyboard input. Since the “PC Cursor” is directly related to
keyboard input  this works for the PC cursor.  The JAWS cursor maps directly
to mouse location, so manipulation of it is usually in terms of pixels or
pseudo-pixels.

It might be useful to check the return values of some of your functions
also. At least during debugging, I would suggest using sayInteger(g)  This
way you can get an idea of if your function calls are returning  the values
you expect.
Also, you should never hard code the first argument to FindWindow or
FindDescendantWindow to anything except perhaps 0 (top level window). Window
handles change with every invocation, though control IDs may  not depending
on the developers design


On Jan 2, 2020, at 10:44 AM, aaron lane <ajbd777@xxxxxxxxx> wrote:

I have JAWS17 & Windows10.
In a certain section of a Football simulator, there are about 80 Edit
Combo fields, and I would like to divide them into 3 categories,
creating a context menu for each group. To start, I'm trying to create
a script for each field, that just simply sets focus to that
particular field. Below are the scripts for the first two. You'll
notice that in each FindWindow function, I have the specific handle
number and the window name for the field. When I test them, both
scripts take me to, and focus me to the Returners field. Even though
one of them has a different handle number and window name. The script
file compiles with no errors, and one key combo does exactly what it
should, the odd problem is that the other script does the exact same
thing.

Script BlockKickFrequency () ;Control+Shift&X. Goes to Returners for some
reason
var handle a,
handle G
let G=GetFocus()
let G=GetRealWindow(G)
let G=FindWindow (G, "", "Computer Game Plan")
SetFocus(G)
JawsCursor()
let a= GetFocus()
let a=GetRealWindow(a)
let a=FindWindow (12583734, "", "Returners")
SetFocus(a)
RoutePcToJAWS ()
PCCursor()
EndScript

Script RealBlockKickField () ; Control+Shift&V
var handle B,
handle G
let G=GetFocus()
let G=GetRealWindow(G)
let G=FindWindow (G, "", "Computer Game Plan")
SetFocus(G)
JawsCursor()
let B= GetFocus()
let B=GetRealWindow(B)
let B=FindWindow (12583734, "", "Block Punts")
SetFocus(B)
RoutePcToJAWS ()
PCCursor()
EndScript
__________�

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




-- 
Thanks,
Aaron Lane
INC Environmental Recycling
__________�

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

Other related posts: