KnowBrainer Speech Recognition
Decrease font size
Increase font size
Topic Title: Problem with the heardword command
Topic Summary:
Created On: 05/25/2022 08:12 AM
Status: Post and Reply
Linear : Threading : Single : Branch
 Problem with the heardword command   - wheels496 - 05/25/2022 08:12 AM  
 Problem with the heardword command   - GarethR - 05/25/2022 12:42 PM  
 Problem with the heardword command   - wheels496 - 05/25/2022 02:54 PM  
 Problem with the heardword command   - wheels496 - 06/08/2022 05:46 AM  
 Problem with the heardword command   - Edgar - 06/08/2022 10:14 AM  
 Problem with the heardword command   - wheels496 - 06/08/2022 10:44 AM  
 Problem with the heardword command   - Alan Cantor - 06/08/2022 12:25 PM  
 Problem with the heardword command   - wheels496 - 06/08/2022 02:56 PM  
 Problem with the heardword command   - Alan Cantor - 06/08/2022 07:43 PM  
 Problem with the heardword command   - wheels496 - 06/09/2022 05:14 AM  
 Problem with the heardword command   - Alan Cantor - 06/09/2022 07:19 AM  
 Problem with the heardword command   - wheels496 - 06/09/2022 07:30 AM  
 Problem with the heardword command   - Alan Cantor - 06/09/2022 12:17 PM  
 Problem with the heardword command   - R. Wilke - 06/09/2022 02:14 PM  
 Problem with the heardword command   - wheels496 - 06/15/2022 04:27 AM  
 Problem with the heardword command   - Mav - 06/15/2022 06:19 AM  
 Problem with the heardword command   - wheels496 - 06/15/2022 07:02 AM  
 Problem with the heardword command   - Mav - 06/15/2022 09:29 AM  
 Problem with the heardword command   - Alan Cantor - 06/15/2022 09:25 AM  
Keyword
 06/08/2022 05:46 AM
User is offline View Users Profile Print this message


wheels496
Advanced Member

Posts: 180
Joined: 10/01/2008

The engine control command works but it causes problems... At the end of this message I have pasted the contents of my script. In summary, it does the following:-
click start menu and find the program I am looking for
opens the file location for the shortcut
hold down the shift key and right click
run as different user
enter my credentials

For my password, I am using the RecognitionMimic command but that appears to mess up the surrounding SendKeys commands. For example, if I end the script with the recognitionmimic command, I can let the command run and then say "Press Enter" to submit my credentials. However, if I include that as a SendKeys command, I end up with the password, in the username box. It's as if the recognitionmimic command alters the logical flow.

Any ideas?

Thanks

'#Language "WWB-COM"

Option Explicit

' Script Lindsay Adam 2010 www.pcbyvoice.com
' Declare keyboard events Windows API function
Declare Function keybd_event Lib "user32.dll" (ByVal vKey As _
Long, bScan As Long, ByVal Flag As Long, ByVal exInfo As Long) As Long
' declare virtual key constant for the left Windows key,
' control key, shift key and alt key
Const VK_LWIN = &h5B
Const VK_CTRL = &h11
Const VK_SHIFT = &h10
Const VK_ALT = &h12

Sub Main
SendKeys "^{escape}"
Wait 0.2
SendKeys "management studio"
Wait 0.2
SendKeys "+{F10}"
Wait 0.2
SendKeys "{Down}{Down}{Enter}"
Wait 0.2
SendKeys "+{Tab}"
Wait 0.2
keybd_event(VK_SHIFT,0,0,0)
Wait 0.2
SendKeys "+{F10}"
Wait 0.2
'SendDragonKeys "{Shift+F10}"
Wait 0.2
keybd_event(VK_SHIFT,0,2,0)
Wait 0.2
SendKeys "f"
Wait 0.2
SendKeys "***{Tab}"
Wait 0.2
EngineControl.RecognitionMimic("developer password")
Wait 0.2


'SendKeys "{Enter}"


End Sub



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

DPI 15.6.1

KnowBrainer Speech Recognition » Dragon Speech Recognition » Problem with the heardword command

Statistics
32359 users are registered to the KnowBrainer Speech Recognition forum.
There are currently 1 users logged in.
The most users ever online was 12124 on 09/09/2020 at 04:59 AM.
There are currently 584 guests browsing this forum, which makes a total of 585 users using this forum.

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