KnowBrainer Speech Recognition
Decrease font size
Increase font size
Topic Title: Microsoft word 2010: Jumping cursor and deletion issues.
Topic Summary: Cursors jumps and deletes consistently after advanced scripting commands
Created On: 02/16/2012 06:09 PM
Status: Post and Reply
Linear : Threading : Single : Branch
 Microsoft word 2010: Jumping cursor and deletion issues.   - Iain L. Grant - 02/16/2012 06:09 PM  
 Microsoft word 2010: Jumping cursor and deletion issues.   - Lunis Orcutt - 02/16/2012 08:32 PM  
 Microsoft word 2010: Jumping cursor and deletion issues.   - Iain L. Grant - 02/16/2012 11:21 PM  
 Microsoft word 2010: Jumping cursor and deletion issues.   - Larry Allen - 02/17/2012 10:13 AM  
 Microsoft word 2010: Jumping cursor and deletion issues.   - Iain L. Grant - 02/20/2012 12:41 AM  
Keyword
 02/16/2012 06:09 PM
User is offline View Users Profile Print this message


Iain L. Grant
Junior Member

Posts: 15
Joined: 10/01/2006

I use a series of advanced scripting macros of to generate an outline of a letter. At the conclusion of generating the templated text, word selects a specific phrase from there I can dictate specific examination findings.

I recently upgraded to Dragon 11 Medical with KB2011. Since upgrading many things are improved however the insertion point jumps to consistent points, selects text, deletes it and then jumps to another location. This always occurs in a predictable manner, jumping to the same location each time and deleting the same text each time.

I have taken several steps to troubleshoot this including the following without success:

1.) Checked the advanced scripting code, this is unchanged from 2006 and has been working well until this upgrade.

2.) Edited the C:\ProgramData\Nuance\NaturallySpeaking11\NSSystem.ini file as in the quick tips.

3.) Turned off addins including onenote. The only software on this machine is KB2008, DNS Medical 11, MS Office, Adobe Acrobat 8.0 professional and google chrome.  This behavior occurs when acrobat and chrome are not running.

4.)  Rebuilt the word template document using word 2010.

5.) Unchecked "smart cursoring."

 Despite this the problem continues. I am running out of options here and would appreciate any suggestions.

 Thank you. 

Windows 7 Professional 64 Bit, Core i5 at 1.7 GHz, 4GB Ram, KB2011, DNS 11.0 Medical. 



-------------------------

Windows 7 Professional 64 Bit, Core i5 at 1.7 GHz, 4GB Ram, KB2011, DNS 11.0 Medical. 

 02/16/2012 08:32 PM
User is offline View Users Profile Print this message

Author Icon
Lunis Orcutt
Top-Tier Member

Posts: 22579
Joined: 10/01/2006

Although DNS coding hasn't changed since Ver. 6, Windows has. Commands that worked flawlessly in Windows Vista/XP sometimes go by too quickly for Windows 7.

Perhaps you could post the code for your command here so we can take a closer look or possibly post something similar, if there are privacy issues?


-------------------------


Click KB 2012 REV D to Download a 30 Day Evaluation of KnowBrainer 2012 


 


 


 

 02/16/2012 11:21 PM
User is offline View Users Profile Print this message


Iain L. Grant
Junior Member

Posts: 15
Joined: 10/01/2006

Thank you.

Firstly:

I dictated into a newly opened blank document. (no template, just using the same advanced scripting commands) and the error still continues. It suggests that this does not relate to my template.

Here is the code of the advanced scripting command. I have removed most of the body of the text. It relies on sendkeys, at the conclusion, it uses word to search for "NasalSeptum " and selects this.

This code executes correctly and selects NasalSeptum.

The instant I start dictating anything the code jumps to normal, (Examination of the tongue base is normal which is the last word of the sendkeys command) selects this, deletes it and replaces it with the text I am dictating.

 

 

Sub Main

                SendKeys "His neck is … "

                SendKeys "His voice .. "

                SendKeys "saliva is .. "

                SendKeys "tympanic .."

                SendKeys "..  He is nose breathing at rest with minimal nasal congestion. NASALSEPTUM "

                SendKeys "Examination of the mouth shows … "

                SendKeys "Examination of the tongue base is normal. "

 

                Wait 0.5

 

    With Selection.Find

        .Text = "NASALSEPTUM "

        .Replacement.Text = ""

        .Forward = True

        .Wrap = wdFindContinue

        .Format = False

        .MatchCase = False

       .MatchWholeWord = False

        .MatchWildcards = False

        .MatchSoundsLike = False

        .MatchAllWordForms = False

    End With

    Selection.Find.Execute

End Sub 



-------------------------

Windows 7 Professional 64 Bit, Core i5 at 1.7 GHz, 4GB Ram, KB2011, DNS 11.0 Medical. 

 02/17/2012 10:13 AM
User is offline View Users Profile Print this message


Larry Allen
Advanced Member

Posts: 181
Joined: 09/04/2007

 There are several ways to resolve this.

1) At the end of your last SendKeys line, add a ", True" after the trailing quote.

SendKeys "Examination of the tongue base is normal. ", True

   This should wait until the text is produced to do the rest of the script.

2) If that doesn't work, then you could change the SendKeys to SendDragonKeys. 

3) OR change the SendKeys  to Selection.TypeText statements and then you could get rid of the Wait statement.

If one of these doesn't work, there are at least 3 other ways of dealing with this.  Fundamentally, the SendKeys statements are running asynchronously and your Selection.Find.Execute is being done before the SendKeys is finished.



-------------------------

Larry Allen
Softnet Systems, Inc.
http://www.pcspeak.com

 02/20/2012 12:41 AM
User is offline View Users Profile Print this message


Iain L. Grant
Junior Member

Posts: 15
Joined: 10/01/2006

Thanks; perhaps I did not make the problem clear.

The code above executes correctly, the word "NasalSeptum" is selected.  The error does not happen until the instant I dictate the next sentence. 

This code executes correctly and selects NasalSeptum.

The instant I start dictating anything the code jumps to normal, (Examination of the tongue base is normal which is the last word of the sendkeys command) selects this, deletes it and replaces it with the text I am dictating.

I can not figure out with one lot of text selected, why word jumps to the previous insertion point, deletes the final word and then correctly inserts the text I am dictating.

 I appreciate your suggestions. 

 

 



-------------------------

Windows 7 Professional 64 Bit, Core i5 at 1.7 GHz, 4GB Ram, KB2011, DNS 11.0 Medical. 

Statistics
27356 users are registered to the KnowBrainer Speech Recognition forum.
There are currently 2 users logged in.
The most users ever online was 2028 on 04/05/2013 at 07:36 PM.
There are currently 119 guests browsing this forum, which makes a total of 121 users using this forum.

FuseTalk Standard Edition v4.0 - © 1999-2013 FuseTalk™ Inc. All rights reserved.