![]() |
KnowBrainer Speech Recognition | ![]() |
Topic Title: SendKeys and SendDragonkeys no longer work Topic Summary: SendKeys and SendDragonkeysLose focus of the window and don't function properly anymore. Created On: 11/22/2021 03:25 PM Status: Post and Reply |
|
![]() |
|||
I have been plagued with an issue with SendKeys and SendDragonkeys that for the life of me I cannot figure out what the root causes is for the last couple weeks I am hoping someone might be able to help me out. Anytime I tried to use either of those two functions I notice that I lose the focus of the window at least in DragonPad so for example if it's just a loop hitting the delete button it will delete the first couple characters and then I'll see the window go out of focus and it obviously will stop deleting at that point. In other windows it doesn't pull the focus away it just fails to work altogether. I'm not sure if it's a coincidence but around the same time a few weeks back I ended up having to kill a weird process that looked like it was an invisible window maybe it was being used by SendKeys or SendDragonkey's but I'm not hundred percent sure. Right now I had to switch all of those functions to use Sendsystemkeys as for whatever reason that function is not affected. The problem is it's just too darn slow for certain tasks and I really like to figure out what happened to SendKeys.
I have done the following: on a VM installed Dragon added my profile everything works complete reinstall of Dragon and used Dragon 15 clean on my existing computer even a new profile I'm getting the same behavior (not fixed)
This lends me to believe that it's some type of Windows library issue.I'm open to any and all suggestions at this point. I even tried to identify what the focus window it jumps to was but when I use any script the window title for the focus is empty doesn't tell me much
|
|||
|
|||
![]() |
|||
Unfortunately, our most common support recommendation is still ignored by many. Uninstalling and reinstalling Dragon doesn't fix any problem 99.9% of the time. You not only make extra work for yourself but in this case, you just sacrificed 1 of your 4 activations. When Dragon fully launches and works at all, the problem isn't likely Dragon. A corrupted user profile is often the problem but in this case you can't blame a loss of focus on Dragon. I assure you this has nothing to do with Dragon. We don't have a solution other than ruling out Dragon. We recommend looking for a recent computer setting change or a utility that is stealing focus; the most common culprit ------------------------- Change "No" to "Know" w/KnowBrainer 2020 |
|||
|
|||
![]() |
|||
Are you using DPI 15.61? Sendkeys works much better in that version. |
|||
|
|||
![]() |
|||
Hi Lunis, ------------------------- A.S. |
|||
|
|||
![]() |
|||
We believe Nuance dropped the installation count to 4, beginning with Ver. 14. ------------------------- Change "No" to "Know" w/KnowBrainer 2020 |
|||
|
|||
![]() |
|||
To narrow down the problem I think you should close as many potentially interfering applications as possible, i.e. close everything (including apps showing in the system tray only), start Dragon _only_ and test your SendKeys script in DragonPad.
If it works now, one of the applications you closed is stealing the focus from time to time and you can start bringing them back one by one to find the culprit.
If it still happens, it could be an application still running without a visible window. There are some legitimate uses for this (such as having a target for messages from other applications), but, unfortunately, some malware cannot be ruled out. I even had a customer where an Amazon browser plugin would steal the focus once in a while.
I've attached a small application I wrote a while ago showing the window holding the focus at the moment and the process this window belongs to. Perhaps you can use this to find out where the focus goes one it leaves DragonPad.
hth, mav
|
|||
|
|||
![]() |
|||
@Mav - I think my anti-virus software (Norton) is blocking the download of the zip file. Is this something for which you are willing to share the code?
------------------------- -Edgar |
|||
|
|||
![]() |
|||
I'm afraid I can't share the code, but the executable itself has been scanned by Sophos before zipping it. Perhaps you could turn off your Norton (I pity you for using this tool) for the download (simply by downloading a zip file you cannot catch any malware!) and then scan the file afterwards to make sure it's safe.
mav |
|||
|
FuseTalk Standard Edition v4.0 - © 1999-2022 FuseTalk™ Inc. All rights reserved.