[jawsscripts] Re: Difficulty scripting McTwit

  • From: "Brian Hartgen" <jaws@xxxxxxxxxxx>
  • To: <jawsscripts@xxxxxxxxxxxxx>
  • Date: Mon, 15 Jun 2009 16:38:22 +0100

To provide additional information, I was able to use KeyPressedEvent in
conjunction with the TrapKeys function, restricted to the List Box control
which shows the list of messages.  Using this combination, the keys are
trapped within the control, however the desired exclusions which call the
scripts work fine and because the keys are trapped, they are not passed
through to McTwit.

I would settle for this solution if it was not for the fact that this
prevents first letter navigation from being used to move through the list
when desired.


-----Original Message-----
From: jawsscripts-bounce@xxxxxxxxxxxxx
[mailto:jawsscripts-bounce@xxxxxxxxxxxxx] On Behalf Of Jamal Mazrui
Sent: Monday, 15 June 2009 4:16 PM
To: JAWSScripts@xxxxxxxxxxxxx
Subject: [jawsscripts] Difficulty scripting McTwit

As you may know, I develop a Twitter client called McTwit, whose installer
is available at
http://EmpowermentZone.com/mtsetup.exe

Although I try to make the application as keyboard and screen
reader-friendly as possible, sometimes there are ways that it may be
enhanced in ways that are not presently practical through my coding alone.
I wish to promote collaboration in this and other open source projects, so
will work with anyone wanting to make a contribution that offers
additional features.

I'm writing now in the hope that someone on this list may be able to
resolve why JAWS does not recognize scripted keys for McTwit.  Brian
Hartgen and others on Twitter have suggested alternative hotkeys for
McTwit that work like an email interface.  At present, I am implementing
hotkeys only by means of the Windows dialog engine, which automatically
provides hotkeys of an Alt+Letter nature when the & character is used in
the label of a button.  With some email-like alternatives, one could also
do, say, Control+N for a new tweet (rather than Alt+T), Control+R for a
direct reply, and Control+Shift+R for a public reply (like "replying to
all").

To our surprise, Brian Hartgen and I have not been able to implement this
with normal JAWS scripting techniques, e.g.,

Script NewTweet()
TypeKey("Alt+T")
EndScript

where the .jkm file contains
Control+N=NewTweet

This is why Brian has been trying to use the key pressed event, with
unsatisfactory results so far.

I asked Jeff Bishop if he could implement similar functionality with
Window-Eyes scripting, and he has done so in a script package available at

http://www.gwmicro.com/Script_Central/Scripts/Script_Details/?scriptid=1244

Can anyone help us get this working with JAWS?  Although the main
executable is McTwit.exe, Insert+Q reports that a GUI-related DLL is
active when McTwit is the active window.  Still, JAWS should be able to
script such an application, as it does for others with DLLs that assist
the primary executable.  I don't know if this might be a problem, but the
DLL has a Python related suffix, rather than the traditional .dll.  The
AutoStart event does trigger whenever McTwit is the active window, but
scripts are not recognized.

Suggestions, anyone?

Jamal

__________ 
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: