[jawsscripts] Re: Help me in a SayPriorLine custom script

 
Ok mam, thank you very much for helping me lots of times,
code for check marking function below.
This functions works fine with any test scripts, but not in the say next and
prior line scripts.
Thank you, let me know if you want more from me.
Int Function CheckMarking ()
If GetFont () == "bold" then
SayUsingVoice (VCTX_message, "Marked", OT_Font )
Return true
Else
SayUsingVoice (VCTX_message, "Unmarked", OT_Font )
Return false
EndIf
EndFunction
Jackie McBride wrote: Jitendra, this is tough since u didn't include the
entire code. However: In situations like those u seem to be describing, I
often do the following sequence: a) Turn speech off; b) use my cursor keys
orclick to focus where I need to be; c) Issue either a pause or delay,
depending on how much time may be needed; d) Save the current cursor
position, activate the invisible cursor &route it to the pc cursor; e) Use
whatever checks I need to in order to see if what I'm looking for is
present;sometimes, the saycolor (insert keyboard 5) function does not report
accurately &I often write a test script using GetColorText
&GetColorBackground to get accurate colors, then use those colors to verify
whether the condition is true or not; f) If the conditions are met, then
speak or do whatever, if not, then not. g) Restore all things, e.g., turn
speech on &restore &reactivate the pcCursor. I don't even know if that could
possibly be helpful, but... On 9/22/08, Jitendra
<jeet.invincible@xxxxxxxxx>[1]wrote: Hello friends, I created the following
script to say the priorlines, in that listbox was talking about last night,
but if I don't put the priorLine function in it, it reads the current item
assayline script does, but if I put the function, then it first reads the
previous item it moves on without checked or unchecked state, then reads
withstate, and then position,, but I want it to read just the state and
position, or item with state, and then position, codes below. help me please
Script SayPriorLine () Var String WinClass Let WinClass = GetWindowClass
(GetFocus ()) If Winclass == "TPTListView" ||( winclass == "TPTShellList")
then ;this checkmarking function checks for the bold font, if present, it
says: "Marked", and if not, then It says: "Unmarked", for some other
listview, ;a problem in it is also, ;when I press up arrow key, and the
current item is marked or bolded, but the item on the cursor was previously
;staying was not, it reads the current item as unmarked, but it should say
"marked", CheckMarking () Elif WinClass == "TFDCheckListBox" then PriorLine
() Pause () sayListstate() ;this function is used to say the state of the
items found in list. the code I sent last night. Return EndIf PerformScript
SayPriorLine() EndScript Help me please Thank you, Jitendra. __________
Visitand contribute to The JAWS Script Repository http://jawsscripts.com[2]
View the list's information and change your settings at
http://www.freelists.org/list/jawsscripts[3] 


--- Links ---
   1 mailto:jeet.invincible@xxxxxxxxx
   2 http://jawsscripts.com
   3 http://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 
http://www.freelists.org/list/jawsscripts

Other related posts: