[jawsscripts] Re: delete sentence script

  • From: "Negoslav Sabev" <negi4a@xxxxxxxxx>
  • To: <jawsscripts@xxxxxxxxxxxxx>
  • Date: Sat, 3 Oct 2009 16:58:29 +0300

Thank you verry much! It's great and will save me so much time and many 
keystrokes. Thanks for all the help.

Negoslav
----- Original Message ----- 
From: "Doug Lee" <doug.lee@xxxxxxxxxxxxxxxx>
To: <jawsscripts@xxxxxxxxxxxxx>
Sent: Saturday, October 03, 2009 4:45 PM
Subject: [jawsscripts] Re: delete sentence script


> Instead of "performScript JAWSCursor()" and "performScript
> PCCursor()", just leave out the "performScript" part on those two
> lines.  There are functions of the same name that switch the active
> cursor without saying anything, and taking out the "performScript"
> will make your code use those functions instead of calling the scripts
> that also speak.
>
> On Sat, Oct 03, 2009 at 04:43:12PM +0300, Negoslav Sabev wrote:
> Oh, it's so eazy. How did I missed it? Thank you verry much for this. 
> Here's
> my code. Don't laugh at me.
>
> Script DeleteSentence ()
>
> PerformScript JAWSCursor()
>
> ControlLeftMouseClick ()
>
> PerformScript SaySelectedText()
>
> PerformScript PCCursor()
>
> {delete}
>
> EndScript
>
>
> Can I tell jaws not to say "jaws cursor" and "pc cursor" when calling this
> scripts from this particular one?
>
> Negoslav
> ----- Original Message ----- 
> From: "Brian Hartgen" <jaws@xxxxxxxxxxx>
> To: <jawsscripts@xxxxxxxxxxxxx>
> Sent: Saturday, October 03, 2009 2:58 PM
> Subject: [jawsscripts] Re: delete sentence script
>
>
>> I've just tried it, and putting the ControlLeftMouseClick function in the
>> script followed by a press of the Delete keystroke does work fine and 
>> does
>> delete the sentence.
>>
>> -----Original Message-----
>> From: jawsscripts-bounce@xxxxxxxxxxxxx
>> [mailto:jawsscripts-bounce@xxxxxxxxxxxxx] On Behalf Of Negoslav Sabev
>> Sent: Saturday, 3 October 2009 12:37 PM
>> To: jawsscripts@xxxxxxxxxxxxx
>> Subject: [jawsscripts] Re: delete sentence script
>>
>> Hello, Martin,
>>
>> Thanks for the reply. Verry interesting keystroke. I didn't know it.
>> Unfortunately it's really time consuming to use the jaws cursor each time
>> to
>>
>> delete sentences, especially if they are many. I wish there was an eazyer
>> method.
>>
>> Negoslav
>> ----- Original Message ----- 
>> From: "Martin Slack" <m.g.slack@xxxxxxxxxxxx>
>> To: <jawsscripts@xxxxxxxxxxxxx>
>> Sent: Saturday, October 03, 2009 11:00 AM
>> Subject: [jawsscripts] Re: delete sentence script
>>
>>
>>> Hi Negoslav,
>>>
>>>  There is a Word hotkey, control + left mouse click, or for Jaws users,
>>> control + numPadSlash, which will select the current sentence which
>>> contains
>>> the mouse pointer.  I have had a play but can't get a jaws script to do
>>> the
>>> same.  The workaround would be firstly to move to the appropriate
>>> sentence
>>> with the Jaws cursor and then use that hotkey.
>>>
>>>  hth
>>>
>>> Martin
>>>
>>>
>>> ----- Original Message ----- 
>>> From: "Negoslav Sabev" <negi4a@xxxxxxxxx>
>>> To: <jawsscripts@xxxxxxxxxxxxx>
>>> Sent: Saturday, October 03, 2009 7:34 AM
>>> Subject: [jawsscripts] Re: delete sentence script
>>>
>>>
>>>> Hello,
>>>>
>>>> Thanks for the reply. Unfortunately it's not doing what it should. It
>>>> just
>>>> moves to the next sentence without selecting anything. I changed the
>>>> parameter to different values and it still moves one sentence without
>>>> selecting anything. I've added
>>>>
>>>> PerformScript SaySelectedText()
>>>>
>>>>
>>>>
>>>> line to be sure of the selection. I haven't found any built-in script 
>>>> or
>>>> function for selecting sentence. And my limited scripting knowledge
>>>> doesn't
>>>> allow me to tell the script how to recognize the end of the sentence.
>>>>
>>>> Negoslav
>>>> ----- Original Message ----- 
>>>> From: "Donald Marang" <donald.marang@xxxxxxxxx>
>>>> To: <jawsscripts@xxxxxxxxxxxxx>
>>>> Sent: Friday, October 02, 2009 9:56 PM
>>>> Subject: [jawsscripts] Re: delete sentence script
>>>>
>>>>
>>>>> Hi Negoslav,
>>>>>
>>>>> I have not done much text selection and manipulation with scripts.
>>>>> Someone
>>>>> can correct me if I am way off.  I believe the following three lines
>>>>> will
>>>>> select the next three sentences.
>>>>>
>>>>> SelectingText (True)
>>>>> NextSentence (3)
>>>>> SelectingText (False)
>>>>>
>>>>> Don Marang
>>>>>
>>>>>
>>>>> ----- Original Message ----- 
>>>>> From: "Negoslav Sabev" <negi4a@xxxxxxxxx>
>>>>> To: <jawsscripts@xxxxxxxxxxxxx>
>>>>> Sent: Friday, October 02, 2009 11:20 AM
>>>>> Subject: [jawsscripts] delete sentence script
>>>>>
>>>>>
>>>>>> Hello,
>>>>>>
>>>>>> In my reading for the university exams I need to eliminate some extra
>>>>>> text.
>>>>>> I wrote some scripts to delete current paragraph and current line, 
>>>>>> but
>>>>>> I
>>>>>> need also one for deleting current sentence. Unfortunately it appears
>>>>>> to
>>>>>> me
>>>>>> as a  complicated task to my limited scripting knowlage and lack of
>>>>>> time
>>>>>> to
>>>>>> investigate.
>>>>>> Can you point me to the right derection or to give me some example
>>>>>> code.
>>>>>> I use word 2003 and jaws10.
>>>>>>
>>>>>> Thanks in advance
>>>>>> Negoslav
>>>>>>
>>>>>> __________
>>>>>> Visit and contribute to The JAWS Script Repository
>>>>>> http://jawsscripts.com
>>>>>>
>>>>>> View the list's information and change your settings at
>>>>>> //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
>>>>> //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
>>>> //www.freelists.org/list/jawsscripts
>>>>
>>>
>>>
>>>
>> ----------------------------------------------------------------------------
>> ----
>>>
>>>
>>>
>>> No virus found in this incoming message.
>>> Checked by AVG - www.avg.com
>>> Version: 8.5.409 / Virus Database: 270.14.3/2410 - Release Date: 
>>> 10/02/09
>>> 18:24:00
>>>
>>> __________
>>> Visit and contribute to The JAWS Script Repository 
>>> http://jawsscripts.com
>>>
>>> View the list's information and change your settings at
>>> //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
>> //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
>> //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
> //www.freelists.org/list/jawsscripts
>
> -- 
> Doug Lee, Senior Accessibility Programmer
> SSB BART Group - Accessibility-on-Demand
> mailto:doug.lee@xxxxxxxxxxxxxxxx  http://www.ssbbartgroup.com
> "While they were saying among themselves it cannot be done,
> it was done." --Helen Keller
> __________
> Visit and contribute to The JAWS Script Repository http://jawsscripts.com
>
> View the list's information and change your settings at
> //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 
//www.freelists.org/list/jawsscripts

Other related posts: