KnowBrainer Speech Recognition
Decrease font size
Increase font size
Topic Title: Keystroke & mouse click together
Topic Summary: Is it possible to create a command that combines a keystroke and mouseclick
Created On: 05/21/2020 10:25 AM
Status: Post and Reply
Linear : Threading : Single : Branch
 Keystroke & mouse click together   - awomanonwheels - 05/21/2020 10:25 AM  
 Keystroke & mouse click together   - Edgar - 05/21/2020 03:03 PM  
 Keystroke & mouse click together   - Lunis Orcutt - 05/21/2020 07:35 PM  
Keyword
 05/21/2020 10:25 AM
User is offline View Users Profile Print this message

Author Icon
awomanonwheels
Senior Member

Posts: 124
Joined: 09/21/2014

Hello all,
I was wondering if it is possible to create a command that combines a keystroke and mouseclick.

If so, how do I go about accomplishing it.

Maritza

 05/21/2020 03:03 PM
User is offline View Users Profile Print this message

Author Icon
Edgar
Top-Tier Member

Posts: 788
Joined: 04/03/2009

Short answer "yes", specifics will be based on the keystroke and whether you want a right, left or middle ButtonClick.

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

-Edgar
DPI 15.3, 64-bit Windows 10 Pro, OpenOffice & Word 365, Norton Security, Shure X2U XLR to USB mic adapter with Audio Technica DB135 vocal mic, Asus X299-Deluxe Prime, Intel Core i9-7940X (14 core, 4.3 GHz overclocked to 4.9 GHz), G.SKILL TridentZ Series 64GB (4 x 16GB) DDR4 3333 (PC4 26600) F4-3333C16Q-64GTZ, NVIDIA GIGABYTE GeForce GTX 1060 GV-N1060G1 GAMING-6GD REV 2.0 6GB graphics card

 05/21/2020 07:35 PM
User is offline View Users Profile Print this message

Author Icon
Lunis Orcutt
Top-Tier Member

Posts: 37465
Joined: 10/01/2006

You will find several examples in your KnowBrainer 2017. If you can't find any, here's an edited example of one we wrote a couple of days ago.


Sub Main
ButtonClick 1,2 'double clicks a word where the cursor is hovering
Wait 0.5 'wait 1/2 second
SendKeys "%{Tab}" 'swiches to previous window
Wait 1
SendKeys "^v" 'paste the contents of Windows clipboard
Wait 0.5
If ListVar1 = "Right" Then SendKeys "{Tab}" moves the cursore to the next field in any direction
If ListVar1 = "Tab" Then SendKeys "{Tab}"
If ListVar1 = "Left" Then SendKeys "+{Tab}"
If ListVar1 = "Up" Then SendKeys "{Up}"
If ListVar1 = "Down" Then SendKeys "{Down}"
Wait 1
SendKeys "%{Tab}" 'swiches to previous window
End Sub


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

Forum Mission Statement
Trial Downloads
Dragon/Sales@KnowBrainer.com 
(615) 884-4558 ext 1

Statistics
31594 users are registered to the KnowBrainer Speech Recognition forum.
There are currently 0 users logged in.
The most users ever online was 3936 on 09/08/2015 at 11:44 AM.
There are currently 882 guests browsing this forum, which makes a total of 882 users using this forum.

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