[jawsscripts] Re: HTML Kit, an awesome tool, but the menus are driving me nuts...
- From: Jitendra <jeet.invincible@xxxxxxxxx>
- To: jawsscripts@xxxxxxxxxxxxx
- Date: Sun, 26 Jul 2009 19:50:47 +0530
Hello Brian, I don't know, if it helps you or not, but here is what I
could do:
however there may be other free and nice html editors perhaps, but if
you are able to create scripts for it, and they are free, do let all of
us know, a humble request.
I don't want to be hero though, didn't anything that importent.
cheers!
Include "HjGlobal.jsh" ; default HJ global variables
Include "hjconst.jsh" ; default HJ constants
Const
MenuBarBackgroundHighlight = 182189210,
;remember that placing jaws cursor highlights the menu item it is placed
on, so ;this was retrieved by first pressing the alt key and then
activating the ;invisible cursor.
wcMenuControlClass="TdxBarControl",
;this is the class name for the place where menus are written.
wcSubmenu="TdxBarSubMenuControl"
;this is the class name when menus are active (not the menubar).
Void Function NewTextEvent (handle hwnd, string buffer, int nAttributes,
int nTextColor, int nBackgroundColor, int nEcho, string sFrameName)
;If NBackgroundColor == MenuBarBackgroundHighlight &&
;this is commented because when enabled, first menu is read before
reading the new menu which is focused or selected.
If GetWindowClass (hwnd) == wcmenucontrolClass then
Say (buffer, OT_HIGHLIGHTED_SCREEN_TEXT)
Return
Else
NewTextEvent (hwnd, buffer, nAttributes, nTextColor, nBackgroundColor,
nEcho, sFrameName) ;default
EndIf
EndFunction
;remember that pressing arrow left or right reads the item, but not
reading scripts like say line, character, insert+tab and say word scripts.
;the script below focuses you on the control where you shall be able to
read the names of all the menus with sayline script.
Script test ()
Var
Handle HfocusWindow
Let hFocuswindow = GetCurrentWindow ()
if GetWindowClass(hFocusWindow)=="XEditExt" then
Let hFocusWindow=GetAppMainWindow(hFocusWindow)
EndIF
if GetWindowClass(hFocusWindow)!=wcMenuControlClass then
Let hFocusWindow=FindWindow(hFocusWindow,wcMenuControlClass )
EndIf
SpeechOff()
if GetCurrentWindow()!=hfocusWindow then
TetherJAWSToPC()
SetFocus(hFocusWindow)
EndIf
Delay(2)
SpeechOn()
SayWindowTypeAndText(hFocusWindow)
SayWord()
;If MenusActive () then
;SayString ("success")
;Else
;SayString (GetMenuName ())
;EndIf
;it is commented because detected nothing, it seems that for this
function call, no menus are active even if they are in real.
EndScript
You wrote:
I must admit that I am stumped on this one. This appears to be an
awesome free
HTML editor, with tons of features and possibilities, the link is
http://www.htmlkit.com/
One gigantic problem though, the menus are completely inaccessible... I
tried
writing scripts to make the menus for this HTML editor accessible, but
there
doesn't appear to be anything to grab on to.
Are there any awesome scripters out there who would like to take up the
challenge of making it possible to use the arrow keys to navigate the
menus?
You will truly go down as a personal hero to me... I'll clear a space on my
wall, and hire a professional engraver to build a plaque in your honor, and
I'll mount this forever more, with dangling bells to draw people's
attention to
the truly awesome person that I can prove you are...
All the best,
Bryan
__________
Visit and contribute to The JAWS Script Repository http://jawsscripts.com
View the list's information and change your settings at
http://www.freelists.org/list/jawsscripts
Other related posts:
- » [jawsscripts] HTML Kit, an awesome tool, but the menus are driving me nuts... - Bryan Garaventa
- » [jawsscripts] Re: HTML Kit, an awesome tool, but the menus are driving me nuts... - Jitendra
- » [jawsscripts] Re: HTML Kit, an awesome tool, but the menus are driving me nuts... - Chris Hallsworth
- » [jawsscripts] Re: HTML Kit, an awesome tool, but the menus are driving me nuts... - Bryan Garaventa
- » [jawsscripts] Re: HTML Kit, an awesome tool, but the menus are driving me nuts... - Joe Orozco
- » [jawsscripts] Re: HTML Kit, an awesome tool, but the menus are driving me nuts... - Charles Black
- » [jawsscripts] Re: HTML Kit, an awesome tool, but the menus are driving me nuts... - The Elf
- » [jawsscripts] Re: HTML Kit, an awesome tool, but the menus are driving me nuts... - Bryan Garaventa
- » [jawsscripts] Re: HTML Kit, an awesome tool, but the menus are driving me nuts... - The Elf