如何在键盘设备上使用触摸手势-自动热键脚本?

时间:2019-02-12 10:58:28

标签: scripting touch autohotkey gesture

我如何在键盘设备上使用触摸手势-自动热键脚本?

我想通过智能手势键移动在我的标准键盘设备上更智能地工作

这样我就不需要将双手移到我的键盘设备上了。 (通过这种方法,我可以始终将手放在鼠标设备上)

在触摸屏上,您具有手势工具,可以在其中进行多指点击以执行任何类型的计算机运动(键盘快捷键宏),为什么在键盘设备上不执行此操作。

AHK脚本必须可以执行以下操作:

1-[点击c] =发送c

2-[Click 5x c] =执行脚本第5部分

3-[右键单击v] + [向左点击c] =发送^ c; Ctrl + c

4-[左击c] + [右击v] =发送^ v; Ctrl + v

5-[右握v] + [左轻按c] =执行脚本第1部分

7-[左保持c] + [右击v] =执行脚本第2部分

8-[一起单击c + v(同时)] =执行脚本第3部分

9-[同时单击x + c + v] =执行脚本第4部分

touch gestures for keyboard

gestures left tap gestures right tap

我的Ahk多次点击脚本是:

Example1.ahk

#NoEnv
#SingleInstance force
;#NoTrayIcon

a1 := -1
b1 := 0

esc::exitapp ;You can click the (esc) key to stop the script. 

;Use character ($) if you want to send hotkey itself ($c::send c)
;Click 5x C Key on keyboard, to Execute Ahk Code Part 5
$c::
if(a1 = -1)
{
a1 := 4
#Persistent
SetTimer, CountClicks, 100
}
else
{
a1 := 3
}
return

CountClicks:
if(a1 = 3)
{
b1 := b1 + 1
}
if(a1 = 0)
{
msgbox you did Click <C> Key > %b1%x times
if (b1=1) 
{
;if Click 1x - Then Execute Ahk Code Part 1 
;Here you can put any code for Part 1
;send c     
} 
if (b1=2) 
{
;if Click 2x - Then Execute Ahk Code Part 2  
;Here you can put any code for Part 2       
} 
if (b1=3) 
{
;if Click 3x - Then Execute Ahk Code Part 3 
;Here you can put any code for Part 3  
Send {Volume_Mute} ;Send, Volume_Mute     
} 
if (b1=4) 
{
;if Click 4x - Then Execute Ahk Code Part 4 
;Here you can put any code for Part 4       
} 
if (b1=5) 
{
;if Click 5x - Then Execute Ahk Code Part 5 
;Here you can put any code for Part 5       
} 
b1 := 0
SetTimer, CountClicks , off
reload ; restart script
}
a1 := a1 - 1
return

0 个答案:

没有答案
相关问题