[jawsscripts] Re: SayHighlightedText Question
- From: "Martin Slack" <m.g.slack@xxxxxxxxxxxx>
- To: <jawsscripts@xxxxxxxxxxxxx>
- Date: Sun, 25 Nov 2007 10:44:53 -0000
Thanks for the code, Gianni,
Can I ask, do you have a NewTextEvent function, possibly in default.jss,
which is still set up to call SayHighlightedText?
Martin
----- Original Message -----
From: "GianniP46" <giannip46@xxxxxxxxxxxxx>
To: <jawsscripts@xxxxxxxxxxxxx>
Sent: Sunday, November 25, 2007 9:31 AM
Subject: [jawsscripts] Re: SayHighlightedText Question
Void Function SayHighlightedText (handle hwnd, string buffer)
; HighlightedText Function for speaking all newly written highlighted
; text.
var
int iWinType,
string strVal,
String sClass,
String TextColor
;If GlobalMenuMode > 1
;&& IsMSAAWindow(hWnd) then
; If hWnd != GetCurrentWindow() then
; Return;Let ActiveItemChangedEvent do its job.
; EndIf
;EndIf
Let iWinType = GetWindowSubTypeCode (hWnd)
if (GetScreenEcho() > 0) then
Let TextColor = IntToString (GetColorText ())
If TextColor == "6750054" Then
SayMessage (ot_message, "played", cmsgSilent )
ElIf TextColor == "10066431" Then
SayMessage (ot_message, "Unavailable", cmsgSilent )
EndIf
Say(buffer, OT_HIGHLIGHTED_SCREEN_TEXT)
endIf
;SayString ("Fired")
EndFunction
Void Function SayLineMinusFirstWordPCCursor ();This is needed in order for
the Line PCCursor functions to read properly
var
string line
Pause ()
;SayString (GetTextBetween (250, 1000))
let line = (GetTextBetween (250, 1000))
;StringTrimLeadingBlanks (line)
Pause ()
let line = stringChopLeft (line, StringLength (StringSegment (line, " ", 1))
+1)
;let line = stringChopLeft (line, StringLength (StringSegment (line, " ",
1)) +1)
;let line = stringChopLeft (line, StringLength (StringSegment (line, " ",
1)) +1)
;et line = stringChopLeft (line, StringLength (StringSegment (line, " ", 1))
+1)
Saystring(line)
EndFunction
Script SayNextLinePCCursor ()
;SayString ("Fired")
If ( ! GetDefaultJcfOption (OPT_TETHER_JAWS_TO_PC)) then
SaveCursor ()
endIf
PcCursor ()
If (GetCursorCol () >= 250) Then
NextLine ()
Pause ()
SayLineMinusFirstWordPCCursor ()
Else
PerformScript SayNextLine()
EndIf
EndScript
The problem is that SayHighlightedText is fired before SayNextLinePCCursor.
---snip---
__________
View the list's information and change your settings at
http://www.freelists.org/list/jawsscripts
- Follow-Ups:
- [jawsscripts] Re: SayHighlightedText Question
- From: GianniP46
- References:
- [jawsscripts] SayHighlightedText Question
- From: GianniP46
- [jawsscripts] Re: SayHighlightedText Question
- From: Martin Slack
- [jawsscripts] Re: SayHighlightedText Question
- From: GianniP46
Other related posts:
- » [jawsscripts] SayHighlightedText Question
- » [jawsscripts] Re: SayHighlightedText Question
- » [jawsscripts] Re: SayHighlightedText Question
- » [jawsscripts] Re: SayHighlightedText Question
- » [jawsscripts] Re: SayHighlightedText Question
- » [jawsscripts] Re: SayHighlightedText Question
- » [jawsscripts] Re: SayHighlightedText Question
- » [jawsscripts] Re: SayHighlightedText Question
- [jawsscripts] Re: SayHighlightedText Question
- From: GianniP46
- [jawsscripts] SayHighlightedText Question
- From: GianniP46
- [jawsscripts] Re: SayHighlightedText Question
- From: Martin Slack
- [jawsscripts] Re: SayHighlightedText Question
- From: GianniP46