![]() |
KnowBrainer Speech Recognition | ![]() |
Topic Title: Problem with Sending Combination keys Topic Summary: Created On: 05/20/2022 07:53 AM Status: Post and Reply |
|
![]() |
![]() |
- Fmen | - 05/20/2022 07:53 AM |
![]() |
![]() |
- Alan Cantor | - 05/20/2022 09:34 AM |
![]() |
![]() |
- Fmen | - 05/20/2022 10:30 AM |
![]() |
![]() |
- Matt_Chambers | - 05/20/2022 11:00 AM |
![]() |
![]() |
- Fmen | - 05/20/2022 11:09 AM |
![]() |
![]() |
- Alan Cantor | - 05/20/2022 11:22 AM |
![]() |
![]() |
- dilligence | - 05/20/2022 11:31 AM |
![]() |
![]() |
- Fmen | - 05/20/2022 12:49 PM |
![]() |
![]() |
- Fmen | - 05/20/2022 12:48 PM |
![]() |
![]() |
- ax | - 05/20/2022 01:37 PM |
![]() |
![]() |
- dilligence | - 05/20/2022 02:11 PM |
![]() |
![]() |
- Fmen | - 05/22/2022 03:35 PM |
![]() |
![]() |
- Alan Cantor | - 05/21/2022 11:36 AM |
![]() |
![]() |
- Fmen | - 05/22/2022 03:39 PM |
![]() |
![]() |
- dilligence | - 05/22/2022 09:33 PM |
![]() |
![]() |
- PG LTU | - 05/23/2022 07:02 PM |
![]() |
![]() |
- Fmen | - 05/24/2022 08:12 AM |
![]() |
![]() |
- Matt_Chambers | - 05/24/2022 08:30 AM |
![]() |
![]() |
- Fmen | - 05/24/2022 11:48 AM |
![]() |
![]() |
- monkey8 | - 05/24/2022 01:43 PM |
![]() |
![]() |
- Fmen | - 05/24/2022 10:43 AM |
![]() |
![]() |
- Lunis Orcutt | - 05/24/2022 02:02 PM |
![]() |
![]() |
- ax | - 05/24/2022 08:15 PM |
![]() |
![]() |
- Fmen | - 05/25/2022 01:02 PM |
![]() |
![]() |
- Fmen | - 05/27/2022 03:46 PM |
![]() |
![]() |
- WilliamConnor | - 05/31/2022 08:19 AM |
![]() |
|
I think this should work:
SendSystemKeys "{Ctrl+Shift+Alt+i}" |
|
|
|
![]() |
|
Thanks Alan, I tried that and other combinations without success. Since it is a new installation, is there maybe something I need to turn on or off in the settings/options area?
|
|
|
|
![]() |
|
On your SendKeys version, do you have a space between SendKeys and the open quotation mark? In your first post, you do not, which is why I ask.
Should be SendKeys "^+%i". I have no idea why that would not work. |
|
|
|
![]() |
|
Matt, I am assuming you mean the space between Sendkeys and first quotation mark, but no a space is not required. However even with a space, SendKeys "^+%i", there is no response.
|
|
|
|
![]() |
|
Is your Dragon script application- or window-specific? If window-specific, perhaps the title needs to be updated.
|
|
|
|
![]() |
|
Are you talking about an app made with AutoIt (which possibly might need to be activated first) or is it a global AutoIt hook?
If I understand correctly Dragon step-by-step commands do work on your system?
I've run into this issue several times before and found that (contrary to popular beliefs) Dragon step-by-step commands sometimes work where scripting doesn't. Maybe it emulates "real" user keyboard input more closely than Advanced Scripting? ------------------------- Turbocharge your Dragon® productivity with 40 Power Addons |
|
|
|
![]() |
|
If I understand correctly Dragon step-by-step commands do work on your system? I've run into this issue several times before and found that (contrary to popular beliefs) Dragon step-by-step commands sometimes work where scripting doesn't. Maybe it emulates "real" user keyboard input more closely than Advanced Scripting?
I have an AutoIt script with a series of hotkeys that I want to trigger with voice commands. The step-by-step commands work perfectly without needing anything from AutoIt, the advanced scripting SendKeys, does not. Is there a fix? |
|
|
|
![]() |
|
Nah, the script is global. This is really weird. It will work for things like ^a or ^c but not for ^{esc} or +^{esc}. Even simple combinations will not trigger any of my hotkeys from AutoIt. |
|
|
|
![]() |
|
^^^ Purely speculating on my end: dilligence is quite likely onto something. It is possible that the problem isn't your Dragon at all. But with AutoIt.
If I was out to lunch, please just ignore the whole comment. After all, I reiterate that I currently use neither Desktop Dragon nor AutoIt myself.
|
|
|
|
![]() |
|
Just out of curiosity. Try to run the below VBScript. Copy the code to Notepad and save it with the extension .vbs
set WshShell = WScript.CreateObject("WScript.Shell") WshShell.SendKeys "^+%i"
Click on the file. Does it trigger your AutoIt script?
If so, instead of manually clicking the VBS call it via a (preferably DVC) Dragon® script using AppBringUp.
Does it work? ------------------------- Turbocharge your Dragon® productivity with 40 Power Addons |
|
|
|
![]() |
|
set WshShell = WScript.CreateObject("WScript.Shell")
I get an error for line one...not an object reference |
|
|
|
![]() |
|
It will work for things like ^a or ^c but not for ^{esc} or +^{esc} Perhaps Ctrl + Esc and Shift + Ctrl + Esc are reserved by Windows. The former has been the alternative way to access the Start menu since Windows 95. The latter is the hotkey to invoke the Task Manager. |
|
|
|
![]() |
|
Yes, the examples were not meant for hotkeys but to open Task Manager or the Start menu, neither of which occurs.
I may try re-installing everything ... |
|
|
|
![]() |
|
It is strange that the VBScript I posted earlier gives a scripting error on your system. Must've something to do with Auto Hotkey. I will check that out when I have some more time.
Does this one, for opening up Task Manager work on your system? Works perfectly on mine (also when run via a AppBringUp command):
set WshShell = WScript.CreateObject("WScript.Shell") WshShell.SendKeys "^+{Esc}" ------------------------- Turbocharge your Dragon® productivity with 40 Power Addons |
|
|
|
![]() |
|
Saying "press control shift escape" opens the Task Manager, right? So: -------------------------
|
|
|
|
![]() |
|
I want to thank everyone for their input.
I tried using DVC and SendSystemKeys complex key combinations work fine. I tried re-installing Dragon but Advanced Scripting still does not pick up complex system key combinations. @PG I am much more adept at writing complex Autoit commands than I am with Dragon scripting. I need to look more closely at your excellent "run subroutine by label", it looks to be incredibly useful! For now I think I will go back to VoiceMacro. I'd tried it in the past but had poor voice recognition. Tried it again and it seems to be much better now. Thanks again everyone. |
|
|
|
![]() |
|
Are you using DPI 15.61 or an earlier version, such as 15.3? I have found that SendKeys is much more reliable in 15.61, probably because Dragon switched to Winwrap Basic. |
|
|
|
![]() |
|
It is version 15.3. |
|
|
|
![]() |
|
Possibly the reason it is not working with Advanced Scripting is because you are using DPI 15.3 which uses a very old scripting engine called SAX Basic which in turn uses Windows Journal playback hook (WH_JOURNALPLAYBACK) to "implement "SendKeys". If you update to 15.61, which is free, as suggested by Matt you will then be using a much newer scripting engine called WinWrap basic which implements "SendKeys" using the Windows API function SendInput.
Then the following syntax should work: SendKeys"^+%i" in Advanced Scripting. ------------------------- |
|
|
|
![]() |
|
I want to thank everyone for their input.
I tried using DVC and SendSystemKeys complex key combinations work fine. I tried re-installing Dragon but Advanced Scripting still does not pick up complex system key combinations. @PG I am much more adept at writing complex Autoit commands than I am with Dragon scripting. I need to look more closely at your excellent "run subroutine by label", it looks to be incredibly useful! For now I think I will go back to VoiceMacro. I'd tried it in the past but had poor voice recognition. Tried it again and it seems to be much better now. Thanks again everyone. |
|
|
|
![]() |
|
Note that Ver. 15.3 uses the sluggish dated circa 2004 SAX Basic scripting engine. You will need to upgrade to Ver. 15.61 in order to take advantage of the WinWrap Basic scripting engine, which we also use in KnowBrainer. We recommend starting there ------------------------- Change "No" to "Know" w/KnowBrainer 2020 |
|
|
|
![]() |
|
... DPI 15.3 which uses a very old scripting engine called SAX Basic which in turn uses Windows Journal playback hook (WH_JOURNALPLAYBACK) to "implement "SendKeys".
According to AHK documentation, the kind of hotkeys that can't be "programmably" activated by another AHK script (at the same "SendLevel") are precisely the ones implemented through keyboard "hook". Not sure if it jibes with above detail, or applicable with AutoIt.
Thanks PG for sharing above tip. As my 9-yo daughter has been fond of saying (to me) lately: "d@mn son" ... indeed it's another trick that may come handy to me, too. Will need to digest it a bit.
In my experience, deployed as a command-only tool, VoiceMacro is satisfyingly accurate if I set the "Dictionary weight" to 0% - even at 1% accuracy is palpably worse. Recognition threshold has more room for tweaking and seemingly less of an effect (mine is set at 85%).
Setting "Dictionary weight" to 0% has some side-effects. But during my "production use" for over a year, the side-effects are incredibly minor, and nothing that can't be fixed by resetting the Windows Speech Recognition Profile after a few months. At initial use and post-resetting, a 5-to-10-min training of the Microsoft Recognizer (built into Windows 10) is recommended, unlike Dragon which hardly needs any training these days.
Case-in-point: one of my most relied-upon VoiceMacro commands is called "2 C". Two syllables - no more, no less. It is simply "double-click". |
|
|
|
![]() |
|
Thanks for the VoiceMacro hints, ax. I am going to change the settings as suggested and hope for even better recognition. I fully agree that a fly swatter is more appropriate than an elephant gun if you are trying to swat a fly.
|
|
|
|
![]() |
|
Updated to 15.61 and problem was fixed. I am so glad this forum exists. It has helped me out innumerable times.
|
|
|
|
![]() |
|
Thanks for the suggestions. I was searching for the business consultants services online and while searching for it online, I found your post. |
|
|
FuseTalk Standard Edition v4.0 - © 1999-2022 FuseTalk™ Inc. All rights reserved.