![]() |
KnowBrainer Speech Recognition | ![]() |
Topic Title: Error with SendKeys #10119 Topic Summary: Advanced Scripting issue Created On: 11/10/2010 08:37 AM Status: Post and Reply |
|
![]() |
![]() |
- delaneyp | - 11/10/2010 08:37 AM |
![]() |
![]() |
- asw@voxscripta.com | - 11/10/2010 09:38 AM |
![]() |
![]() |
- GDS | - 11/10/2010 04:04 PM |
![]() |
![]() |
- Lunis Orcutt | - 11/10/2010 05:16 PM |
![]() |
![]() |
- R. Wilke | - 11/11/2010 05:50 AM |
![]() |
![]() |
- delaneyp | - 11/12/2010 08:48 AM |
![]() |
![]() |
- DrKnow | - 11/03/2021 01:00 PM |
![]() |
|
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. |
|
|
|
![]() |
|
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 |
|
|
|
![]() |
|
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. |
|
|
|
![]() |
|
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 |
|
|
|
![]() |
|
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 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
-------------------------
|
|
|
|
![]() |
|
Thank you al lfor the helpful comments. Using the Clipboard was both the easiest and fastest method.
|
|
|
|
![]() |
|
Thanks very much, I've managed to hack out the following: Clipboard "Some long string" SendKeys "^v" |
|
|
FuseTalk Standard Edition v4.0 - © 1999-2022 FuseTalk™ Inc. All rights reserved.