KnowBrainer Speech Recognition
Decrease font size
Increase font size
Topic Title: Held down keys won't release
Topic Summary:
Created On: 11/16/2020 07:54 PM
Status: Post and Reply
Linear : Threading : Single : Branch
 Held down keys won't release   - TheCyborgManatee - 11/16/2020 07:54 PM  
 Held down keys won't release   - Edgar - 11/17/2020 11:17 AM  
 Held down keys won't release   - monkey8 - 11/21/2020 06:03 AM  
 Held down keys won't release   - monkey8 - 11/24/2020 02:32 PM  
 11/24/2020 02:32 PM
User is offline View Users Profile Print this message

Author Icon
Top-Tier Member

Posts: 3724
Joined: 01/14/2008

I just had another look at this with the existing KnowBrainerCommands set and there is a problem with the "<Keyname> Release>" command which is not obvious to see. If you open the command and then delete all the contents in the editor and replace with the following it should then work fine. It will be fixed with the next command set release, KB update.


' Script Lindsay Adam 2010
' 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
Const VK_SPACE = &h20

Sub Main
If ListVar1 = "WINDOWS Key" Then keybd_event(VK_LWIN,0,2,0)
If ListVar1 = "CONTROL Key" Then keybd_event(VK_CTRL,0,2,0)
If ListVar1 = "SHIFT Key" Then keybd_event(VK_SHIFT,0,2,0)
If ListVar1 = "ALT Key" Then keybd_event(VK_ALT,0,2,0)
If ListVar1 = "SPACE Key" Then keybd_event(VK_SPACE,0,2,0)
End Sub


KnowBrainer Speech Recognition » KnowBrainer Software and Support » Held down keys won't release

31981 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 458 guests browsing this forum, which makes a total of 459 users using this forum.

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