KnowBrainer Speech Recognition
Decrease font size
Increase font size
Topic Title: Error with SendKeys #10119
Topic Summary: Advanced Scripting issue
Created On: 11/10/2010 08:37 AM
Status: Post and Reply
Linear : Threading : Single : Branch
 Error with SendKeys #10119   - delaneyp - 11/10/2010 08:37 AM  
 Error with SendKeys #10119   - asw@voxscripta.com - 11/10/2010 09:38 AM  
 Error with SendKeys #10119   - GDS - 11/10/2010 04:04 PM  
 Error with SendKeys #10119   - Lunis Orcutt - 11/10/2010 05:16 PM  
 Error with SendKeys #10119   - R. Wilke - 11/11/2010 05:50 AM  
 Error with SendKeys #10119   - delaneyp - 11/12/2010 08:48 AM  
 Error with SendKeys #10119   - DrKnow - 11/03/2021 01:00 PM  
Keyword
 11/10/2010 08:37 AM
User is offline View Users Profile Print this message


delaneyp
Junior Member

Posts: 32
Joined: 06/14/2010

In a effort to make our EMR more user friendly, I am use a Dialog Box to have users dictate three blocks of text (up to 1000 characters each) then have DNS put the text into the appropriate locations in the EMR (which requires a lot of pointing, aiming and clicking).  If a block of text reaches a certainly length, however, I get the following error:

    Description: (10119) String too long (too many keys). 

Is there a max string length for one "SendKeys" command?  Any suggestions about a work-around?  Maybe using the Clipboard to Cut & Paste rather than SendKeys?  No help from the Nuance website.

 11/10/2010 09:38 AM
User is offline View Users Profile Print this message


asw@voxscripta...
New Member

Posts: 8
Joined: 04/09/2010

I think the SendKeys limit might be 256 per instruction, though I'm not sure.  Try SendDragonKeys instead and see if that works better.

Ann S. WInn

www.voxscripta.com

 11/10/2010 04:04 PM
User is offline View Users Profile Print this message

Author Icon
GDS
Top-Tier Member

Posts: 844
Joined: 01/16/2009

Delaney,

Ann is on the right track. I've done some testing of this myself, and I'm inclined to believe that the upper limit for SendKeys is 128 keystrokes. I gather this only from a simple command I have that restores and then moves a window by pressing the left or right arrow key 128 times. (It's not as smooth or powerful as VoicePower, but it gets the job done). If I change the statement to "...{Left 129}" or greater, then I get that error.

Your workaround using the clipboard seems like a fine solution.



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

Eric Wright


DPI 15.3. 

 11/10/2010 05:16 PM
User is offline View Users Profile Print this message

Author Icon
Lunis Orcutt
Top-Tier Member

Posts: 39832
Joined: 10/01/2006

2 other approaches you might consider:

1. A SendDragonKeys or SendKeys script that is simply broken into several SendKeys scripts within the same command.

2. Utilize HeardWord scripts and place the text portion of your script into simple boilerplate text commands which will deploy significantly faster.


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

Change "No" to "Know" w/KnowBrainer 2020
Trial Downloads
Dragon/Sales@KnowBrainer.com 
(615) 884-4558 ex 1

 11/11/2010 05:50 AM
User is offline View Users Profile Print this message

Author Icon
R. Wilke
Top-Tier Member

Posts: 7840
Joined: 03/04/2007

Quote:
Maybe using the Clipboard to Cut & Paste rather than SendKeys?

I would try that. There shouldn't be such a kind of restriction to the clipboard as there is to the SendKeys command to contain characters.

You can do this quite easily by using the following steps:

SendKeys "^a" 'select all
SendKeys "^x" 'cut to clipboard
'... do something to go where you need to ...
SendKeys "^v" 'insert from clipboard

In addition to that, you can use the following if making sure that the clipboard is cleared at any particular time:

Clipboard$ = "" 'clear the clipboard

Rüdiger

 



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



No need to buy if all you want to do is try ...

DragonCapture KB Download (Latest)
DragonCapture Homepage

 11/12/2010 08:48 AM
User is offline View Users Profile Print this message


delaneyp
Junior Member

Posts: 32
Joined: 06/14/2010

Thank you al lfor the helpful comments.  Using the Clipboard was both the easiest and fastest method.
 11/03/2021 01:00 PM
User is offline View Users Profile Print this message

Author Icon
DrKnow
New Member

Posts: 10
Joined: 10/22/2014

Thanks very much, I've managed to hack out the following:

    Clipboard "Some long string"
    SendKeys "^v"
Statistics
32305 users are registered to the KnowBrainer Speech Recognition forum.
There are currently 0 users logged in.
The most users ever online was 12124 on 09/09/2020 at 04:59 AM.
There are currently 380 guests browsing this forum, which makes a total of 380 users using this forum.

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