Yes, you can attach a script to the tab key. You have to do it through
the keyboard manager after you have written the script. There is a
special flag you have to set undr hot keys on the options menu in the
script manager to allow you to use the tab key.
Don't forget to clear that flag back to disallow the tab key once you
have this set up.
Have your script issue a tab key with the {tab} line.
Then, pause to let the application respond. Then, speak the cursor
position.
You may also want to declare a global variable such as TabVerbosity in
your script which can control whether this feature is active or not.
Following is sample code:
Scritp SayTapPosition ()
{tab} ; pass this on to the application
if (PCCursor () and TabVerbosity == 1) then
pause () ; let the app respond
SayInteger (GetCursorRow ())
endif
endscript
Script ToggleTabVerbosity ()
Let TabVerbosity = 1 - TabVerbosity ; invert it
if (TabVerbosity == 1) then
SayString ("Tab verbosity on")
else
SayString ("Tab verbosity off")
endif
endscript
Jim Snowbarger
-
Visit the jfw ml web page: http://jfw.cjb.net