Hello everyone,
I'm trying to get jaws to read partial lines, since it only seems to read lines when they end with a newline, so if there's a line with a prompt, or a question that needs you to input data after it, it's not going to read it unless I review it with the mouse cursor.
So I decided to try and build something using this new? OnPartialLineReceived callback, but it's reading the lines twice, one with the normal functiont hat it's always been using and one for the partial line, but it seems to be reading all the lines not just partial ones with this method, so I tried to use a variable that if the line was the same as the one it had read with the other function it wouldn't read it again, but it still does it. Here's what I did
'this event fires when new text is drawn from the mud. **
sub OnPluginScreendraw (t, log, line)
if (t = 0 or t = 1) and TTSReadNew = 1 then
ttsline = line
TTSObject.sayString line, 0
end if
end sub
'This event is called when a partial line is received.
sub OnPluginPartialLine (sText)
if Not (SText = ttsline) and TTSReadNew = 1 then
TTSObject.sayString SText, 0
end if
end sub
I'm trying to get jaws to read partial lines, since it only seems to read lines when they end with a newline, so if there's a line with a prompt, or a question that needs you to input data after it, it's not going to read it unless I review it with the mouse cursor.
So I decided to try and build something using this new? OnPartialLineReceived callback, but it's reading the lines twice, one with the normal functiont hat it's always been using and one for the partial line, but it seems to be reading all the lines not just partial ones with this method, so I tried to use a variable that if the line was the same as the one it had read with the other function it wouldn't read it again, but it still does it. Here's what I did
'this event fires when new text is drawn from the mud. **
sub OnPluginScreendraw (t, log, line)
if (t = 0 or t = 1) and TTSReadNew = 1 then
ttsline = line
TTSObject.sayString line, 0
end if
end sub
'This event is called when a partial line is received.
sub OnPluginPartialLine (sText)
if Not (SText = ttsline) and TTSReadNew = 1 then
TTSObject.sayString SText, 0
end if
end sub