KnowBrainer Speech Recognition
Decrease font size
Increase font size
Topic Title: Custom command for control left click
Topic Summary:
Created On: 04/17/2021 11:40 AM
Status: Post and Reply
Linear : Threading : Single : Branch
 Custom command for control left click   - Psithyros - 04/17/2021 11:40 AM  
 Custom command for control left click   - Edgar - 04/17/2021 04:18 PM  
 Custom command for control left click   - jacklenin - 05/28/2021 03:29 AM  
Keyword
 04/17/2021 11:40 AM
User is offline View Users Profile Print this message

Author Icon
Psithyros
Junior Member

Posts: 34
Joined: 01/30/2021

Hi all. Could someone please suggest an advanced script for DPI 15 to perform "control left click" with a shortened voice command?

Thanks.

 04/17/2021 04:18 PM
User is offline View Users Profile Print this message

Author Icon
Edgar
Top-Tier Member

Posts: 1265
Joined: 04/03/2009

Command name="Control Click" (the "Left" is assumed):

 

Type POINT

   x As Long

   y As Long

End Type

 

Declare Function GetCursorPos Lib "user32" Alias "GetCursorPos" (lpPoint As POINT) As Long

 

Sub Main

   Dim z As POINT

   GetCursorPos z

   SendKeys "^{ClickLeft " & z.x &"," & z.y &"}", 1

End Sub



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

-Edgar
DPI 15.3, 64-bit Windows 10 Pro, OpenOffice & Office 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 with 3 1920x1080 monitors

 05/28/2021 03:29 AM
User is offline View Users Profile Print this message

Author Icon
jacklenin
Power Member

Posts: 57
Joined: 02/25/2018

Thanks Edgar. Very useful.
Statistics
32307 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 423 guests browsing this forum, which makes a total of 424 users using this forum.

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