KnowBrainer Speech Recognition
Decrease font size
Increase font size
Topic Title: Keyboard + mouse command
Topic Summary: keyboard and mouse commands
Created On: 11/18/2011 02:04 PM
Status: Post and Reply
Linear : Threading : Single : Branch
 Keyboard + mouse command   - cripp7 - 11/18/2011 02:04 PM  
 Keyboard + mouse command   - Larry Allen - 11/27/2011 12:43 PM  
 Keyboard + mouse command   - monkey8 - 11/27/2011 05:14 PM  
 Keyboard + mouse command   - Lunis Orcutt - 11/27/2011 09:10 PM  
 Keyboard + mouse command   - cripp7 - 11/28/2011 08:23 AM  
 Keyboard + mouse command   - monkey8 - 11/28/2011 01:41 PM  
 Keyboard + mouse command   - mdl - 03/17/2012 01:55 AM  
Keyword
 11/18/2011 02:04 PM
User is offline View Users Profile Print this message

Author Icon
cripp7
Junior Member

Posts: 22
Joined: 07/31/2010

I searched the forums but couldn't find anything, but I'm want to create a command that will do a ctrl-left click, alt-left click, shift-right click, etc..  I'm using Dragon 9.5 Pro.

cripp  



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

 


 11/27/2011 12:43 PM
User is offline View Users Profile Print this message


Larry Allen
Advanced Member

Posts: 181
Joined: 09/04/2007

The easiest way for most to create these is using the Macro Recorder.

Advanced Scripting can also be used, but looks a lot more intimidating to non-programmers.



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

Larry Allen
Softnet Systems, Inc.
http://www.pcspeak.com

 11/27/2011 05:14 PM
User is offline View Users Profile Print this message

Author Icon
monkey8
Top-Tier Member

Posts: 1987
Joined: 01/14/2008

For the control left click at least this command is already built into Dragon, just say:

"Press control left click"
"Press shift left click"
"Press shift right click"


Lindsay



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


www.pcbyvoice.com
www.pcbyvoice.co.uk

 11/27/2011 09:10 PM
User is offline View Users Profile Print this message

Author Icon
Lunis Orcutt
Top-Tier Member

Posts: 22599
Joined: 10/01/2006

Your member profile states that you're using Premium 11 which doesn't include Macro Recorder or Advanced-Scripting command options. Would you like us to update your profile or are you using both Pro 9.5 and Premium 11?

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


Click KB 2012 REV D to Download a 30 Day Evaluation of KnowBrainer 2012 


 


 


 

 11/28/2011 08:23 AM
User is offline View Users Profile Print this message

Author Icon
cripp7
Junior Member

Posts: 22
Joined: 07/31/2010

Yes, update my profile.  I'm using KnowBrainer+DNS 11 on one machine and just 9.5 Pro on the other.

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

 


 11/28/2011 01:41 PM
User is offline View Users Profile Print this message

Author Icon
monkey8
Top-Tier Member

Posts: 1987
Joined: 01/14/2008

Incidentally I just noticed you are using 9.5 and it may be possible that the voice commands I gave you are not available with that version. In that case you can create the commands you want using the following type of script:

Declare Function keybd_event Lib "user32.dll" (ByVal vKey As _
Long, bScan As Long, ByVal Flag As Long, ByVal exInfo As Long) As Long
Const VK_CTRL = 17
Const VK_SHIFT = 16
Const Vk_ALT = 18
Sub Main
keybd_event(VK_CTRL,0,0,0)
ButtonClick 1,1
keybd_event(VK_CTRL,0,2,0)
End Sub

the example I have given you is for a control left click. If you want to use a different keythen just change the key name in the keyboard events. I have added the values of the other keys for you to see. If you need to do right clicks then just change the parameters on the button click. Info in the help file.

Lindsay

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


www.pcbyvoice.com
www.pcbyvoice.co.uk

 03/17/2012 01:55 AM
User is offline View Users Profile Print this message


mdl
Senior Member

Posts: 130
Joined: 04/18/2009

is ShiftKeys still working with DNS Advanced Scripting?  if so, this is much easier with that.  The Vocola version (easily translated to DNS advanced scripting) is:

 

<modifier> := ( shift=1 | control=2 | alt=3 );

<touch>    := ( touch=1 | right touch=2 | middle touch=4 );


           <touch>                =            ButtonClick($1, 1);
double <touch>                =            ButtonClick($1, 2);
           <touch> times 1..50    = Repeat($2, ButtonClick($1, 1) Wait(50));


                 <modifier> <touch> =              ShiftKey($1) ButtonClick(1, 1);
<modifier> <modifier> <touch> = ShiftKey($1) ShiftKey($2) ButtonClick(1, 1);

 

Statistics
27364 users are registered to the KnowBrainer Speech Recognition forum.
There are currently 1 users logged in.
The most users ever online was 2028 on 04/05/2013 at 07:36 PM.
There are currently 131 guests browsing this forum, which makes a total of 132 users using this forum.

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