[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.

  ----- Original Message ----- 
  From: Martin Slack 
  To: jawsscripts@xxxxxxxxxxxxx 
  Sent: Sunday, November 25, 2007 2:48 AM
  Subject: [jawsscripts] Re: SayHighlightedText Question


  Hi Gianni,

    We would probably need to see the code for both your application version 
  of SayHighlightedText and SayLine before we could guess what is happening.

    Alternatively, could you find the script that is calling 
  SayHighlightedText?

    Martin


  ----- Original Message ----- 
  From: "GianniP46" <giannip46@xxxxxxxxxxxxx>
  To: "JawsScriptsList" <JawsScripts@xxxxxxxxxxxxx>
  Sent: Sunday, November 25, 2007 6:49 AM
  Subject: [jawsscripts] SayHighlightedText Question


  Hi Guys,

  Thanks to all who helpt with my string questions.  I modified the sayline, 
  SayNextLine, and SayPriorLine scripts to do what I wanted, but I now have a 
  problem with the SayHighlightedText function that is in my script file for 
  my ap.  SayHighlightedText fires first which reads the line, then my 
  versions of SayLine, SayNextLine, and SayPriorLine scripts is fired.  I 
  would like to have the order reversed, or if possible, have 
  SayHighlightedText suppressed when those line scripts or fired.  Why are 
  both things being fired?  Is there a way to give a script or a function 
  priority over another?
  Thanks!

  Gian Carlo Pedulla
  GianniP46@xxxxxxxxxxxxx

  ---snip---

  __________ 
  View the list's information and change your settings at 
  http://www.freelists.org/list/jawsscripts



  -- 
  No virus found in this incoming message.
  Checked by AVG Free Edition. 
  Version: 7.5.503 / Virus Database: 269.16.6/1150 - Release Date: 11/24/2007 
5:58 PM

Other related posts: