KnowBrainer Speech Recognition
Decrease font size
Increase font size
Topic Title: Advanced scripting command sends modifier key twice
Topic Summary:
Created On: 02/23/2022 07:00 PM
Status: Post and Reply
Linear : Threading : Single : Branch
 Advanced scripting command sends modifier key twice   - wristofdoom - 02/23/2022 07:00 PM  
 Advanced scripting command sends modifier key twice   - Alan Cantor - 02/23/2022 11:46 PM  
 Advanced scripting command sends modifier key twice   - Lunis Orcutt - 02/24/2022 02:56 PM  
 Advanced scripting command sends modifier key twice   - wristofdoom - 02/24/2022 05:06 PM  
 Advanced scripting command sends modifier key twice   - wristofdoom - 02/24/2022 01:57 AM  
 Advanced scripting command sends modifier key twice   - Ag - 02/24/2022 09:22 PM  
 Advanced scripting command sends modifier key twice   - wristofdoom - 02/25/2022 12:50 AM  
 Advanced scripting command sends modifier key twice   - Edgar - 02/25/2022 10:03 AM  
Keyword
 02/23/2022 07:00 PM
User is offline View Users Profile Print this message

Author Icon
wristofdoom
Top-Tier Member

Posts: 326
Joined: 09/03/2020

I have an Autohotkey script that does various things to media using the Windows and F-row hotkeys. For example, Windows+F7 will play or pause the current song in my media player.

 

I'm trying to create a Dragon advanced script that will trigger these same hotkeys. 

 

Here's my full code: https://pastebin.com/0kakwVsy

 

It works, but with a catch: after I dictate a command like "pause track", the desired action is performed (Windows + F7 is sent and the track pauses), but then it also behaves as though the Windows key has been pressed a 2nd time.

 

Note: I have stickey keys enabled. However, I have many other commands that send modifier keys like this, and this behavior does not occur.

 

So, if I were to press the "up arrow" key after using this command, then my window will resize (the equivalent of pressing Windows key + up arrow).

 

I've tried this with other modifier keys with the same results. For example, if I change the hotkey to shift + F7, then if I utter the command "pause track" and then afterwards I click somewhere with the mouse, it will behave as though I have done a "shift click".

 

So it's almost like instead of sending "+{F7}" it's sending "+{F7}+"

 

Any ideas what could be going on here?

 

Thanks

 

Update:

 

I haven't figured out the original issue, but I was able to get an advance script working that controls media directly without involving Autohotkeys, funky pop-ups, or other third-party scripting.

 

Code is here for anybody interested: 

 

https://pastebin.com/3DLrZnkC

 



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

Dragon Professional Individual v15.6. Windows 10. Knowbrainer 2017.



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

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