KnowBrainer Speech Recognition
Decrease font size
Increase font size
Topic Title: Slow script
Topic Summary: Date Time script works but very slow
Created On: 10/08/2020 11:49 AM
Status: Post and Reply
Linear : Threading : Single : Branch
 Slow script   - Nicolas Holzapfel - 10/08/2020 11:49 AM  
 Slow script   - Lunis Orcutt - 10/08/2020 01:55 PM  
 Slow script   - speechpro - 10/09/2020 12:15 AM  
 Slow script   - Nicolas Holzapfel - 10/09/2020 05:22 AM  
 Slow script   - Mav - 10/09/2020 06:43 AM  
 Slow script   - Nicolas Holzapfel - 10/09/2020 09:41 AM  
 Slow script   - PG LTU - 10/09/2020 11:39 AM  
 Slow script   - Nicolas Holzapfel - 10/09/2020 02:53 PM  
 Slow script   - Nicolas Holzapfel - 10/12/2020 04:33 AM  
Keyword
 10/08/2020 11:49 AM
User is offline View Users Profile Print this message


Nicolas Holzapf..
Junior Member

Posts: 33
Joined: 02/16/2012

Hi

I have created this script

 

 

 Sub Main

SendKeys( Format(Now, "dd mmmm yyyy") + Space(1) + "-" + Space(1) + Format(Now, "hh:mm") ) + Space(1) + "-" + " Docteur Nicolas HOLZAPFEL"

End Sub

 

this work fine but it tale 10 second to be written in the dictation box

dragon medical 4 works very speed otherwise

is it normal ?

thank you

 

regards

 

nicolas



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

Dr Nicolas Holzapfel

 10/08/2020 01:55 PM
User is offline View Users Profile Print this message

Author Icon
Lunis Orcutt
Top-Tier Member

Posts: 38495
Joined: 10/01/2006

Try the following but note that it may take 10 seconds the 1st time you deploy it. This is a Windows bug that is also affecting KnowBrainer 2017 (w/2020 AI Commands). However, when you trigger this command a 2nd time, it should take 2 seconds in Dragon and 1 second in KnowBrainer. Try the following script and please post back with your results:

 

Sub Main
SendKeys( Format(Now, "dd mmmm yyyy") + Space(1) + "-" + Space(1) + Format(Now, "hh:mm") ) + Space(1) + "-"
SendKeys " Docteur Nicolas HOLZAPFEL"
End Sub


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

Forum Mission Statement
Trial Downloads
Dragon/Sales@KnowBrainer.com 
(615) 884-4558 ext 1

 10/09/2020 12:15 AM
User is offline View Users Profile Print this message


speechpro
Power Member

Posts: 74
Joined: 11/09/2006

Try to create the string separately - see if it makes any difference. Also & to concatenate text vs +


Sub Main
SigText = Format(Now, "dd mmmm yyyy") & " - " & Format(Now, "hh:mm")  & " - Docteur Nicolas HOLZAPFEL"

SendKeys( SigText)

End Sub 



 10/09/2020 05:22 AM
User is offline View Users Profile Print this message


Nicolas Holzapf..
Junior Member

Posts: 33
Joined: 02/16/2012

Hi
Thank you for your fast reply
The two script are working but they take 8-10 sec before writing in dictation Windows
Allo when I sens the command morte Times
i use windows 10 with the latesd update
So I only have to wait a correction bug from Microsoft
Until this is corrected I will dictate the date Time name : it is Foster !

Regards

Nicolas


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

Dr Nicolas Holzapfel

 10/09/2020 06:43 AM
User is offline View Users Profile Print this message

Author Icon
Mav
Top-Tier Member

Posts: 317
Joined: 10/02/2008

This is very unusual and strange.

 

Which editor are you sending the keys to? You wrote "dictation box", but do you really mean the build-in dictation box you get when trying to dictate into a not speech-friendly application?

 

Does the 8-10 second delay happen if you try to insert the date into notepad, for example?

 

Does it happen if you take out the whole date stuff and just send a short plain text?

 

Regards,

mav

 10/09/2020 09:41 AM
User is offline View Users Profile Print this message


Nicolas Holzapf..
Junior Member

Posts: 33
Joined: 02/16/2012

Hi
Effective là when I Whitehorse in notepad or rtf document or « éditeur dragon » Thierry date appears instantanely
But in the « boite de dictee » it tape 10 seconds
Strange..

Thank you

Nicolas

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

Dr Nicolas Holzapfel

 10/09/2020 11:39 AM
User is offline View Users Profile Print this message

Author Icon
PG LTU
Top-Tier Member

Posts: 2126
Joined: 03/21/2007

Did you try the Clipboard? And did you try SendSystemKeys (which uses a different way of placing the text output onto a screen)?

Sub Main
    Clipboard Format(Now, "dd mmmm yyyy") & " - " & Format(Now, "hh:mm") & " - Docteur Nicolas HOLZAPFEL"
    SendSystemKeys "{Ctrl+v}" ' you might want to try SendSystemKeys
    ' SendKeys "^v" ' if still slow comment above and uncomment this line
End Sub



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




PG





Remember folks, my comments and this forum are for entertainment value only, please, no wagering or other reliance on the contents herein.  I permit no commercial use of my ideas (whether expressions or embodiments) without my written consent.



 10/09/2020 02:53 PM
User is offline View Users Profile Print this message


Nicolas Holzapf..
Junior Member

Posts: 33
Joined: 02/16/2012

Thank you for this other script
I will try it at work Monday and give you a reply
Regards
Nicolas

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

Dr Nicolas Holzapfel

 10/12/2020 04:33 AM
User is offline View Users Profile Print this message


Nicolas Holzapf..
Junior Member

Posts: 33
Joined: 02/16/2012

Hi
Thank you VERY much for this new script
It works fine very fast in all the windows and also in the dictate box
Regards
Nicolas

The good script is :

Sub Main
Clipboard Format(Now, "dd mmmm yyyy") & " - " & Format(Now, "hh:mm") & " - Docteur Nicolas HOLZAPFEL"
SendSystemKeys "{Ctrl+v}" ' you might want to try SendSystemKeys
' SendKeys "^v" ' if still slow comment above and uncomment this line
End Sub


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

Dr Nicolas Holzapfel

KnowBrainer Speech Recognition » DMPE, DMO and EMRs » Slow script

Statistics
31936 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 468 guests browsing this forum, which makes a total of 468 users using this forum.

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