[gui-talk] Fwd: Updated Relative Position package for Window-Eyes

Steve Pattison srp at internode.on.net
Sat Jan 17 11:20:14 UTC 2009


From: Jamal Mazrui empower at smart.net
To: gw-scripting at gwmicro.com

Version 1.2 adds configurability regarding relative information, default
information, or toggling between them.  Revised documentation is below.

Jamal

This script intercepts the hotkey action for saying the cursor position
(Control-NumPad-+ in the default Window-Eyes layout).  It tries to 
provide
more useful information than the pixel coordinates of a caret, if 
present.

The information provided depends on the type of control with focus.  For
an EditBox, RichEdit, Word document, or browse mode, it says the line 
and
column position of the cursor, followed by the percentage point of that
position in the whole text (rounded).  For a ListBox, ComboBox, or
ListView, it says the item number, count, and percentage.  For a Button,
RadioButton, or CheckBox, it says the number relative to consecutive
instances of the same control.  For other controls, it says the number 
of
the control relative to its siblings (children of the same parent window
that are enabled and visible).

Note that you can still obtain focus pixel information by routing the
mouse pointer or WE cursor, and then pressing that position hotkey
(Control-Insert-NumPad-+ by default).  You can also use Insert-Shift-R 
to
rotor whether to say relative information, default information, or
alternate between them.  There are four choices:  relative position,
relative then default position, default then relative position, or 
default
position.  The initial choice says relative information only.  The 
second
choice says relative information when pressed once, and default
information when repeated.  Another press alternates back to relative
information again, and so on.  The third choice reverses the toggle
behavior, saying default information on an odd-numbered press and 
relative
information on an even one.  The fourth choice says default information
only.  If a caret exists and its position is moved, the behavior is 
reset
to the action of a first press.

All of this may become clearer by trying the various choices and then
settling on your preference.  It will be remembered the next Window-Eyes
session.

This global script uses GW Toolkit.

Regards Steve
Email:  srp at internode.on.net
Windows Live Messenger:  internetuser383 at hotmail.com
Skype:  steve1963 





More information about the GUI-Talk mailing list