[jawsscripts] Help me in a SayPriorLine custom script

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 as sayline 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 with state, 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.
__________ 
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: