首页 > 解决方案 > 如何获取手写笔按下级别值 - Autohotkey 脚本?

问题描述

如何使用 Autohotkey 脚本获取手写笔按下级别值?

我想制作一个脚本,可以在我的 Windows 台式计算机上继续监控手写笔按下级别值。

或者,如果压力水平值确实具有,例如 70% 的压力,那么它将执行自动热键操作。(执行脚本的一部分) - 考虑一下如果您使用它,然后结合 x,y 坐标,您可以制作自己的高级手势控件。

也许有一个确实有压力值的 Windows 注册表项。

触控笔压力值笔压

我现在可以获取手写笔单击值,(开/关)这与 [鼠标左键] 相同

有了这个 AHK 脚本。

;#notrayicon
#SingleInstance force

; + = Shift
; ! = Alt
; ^ = Ctrl
; # = Win (Windows logo key)

loop
{
sleep 50
GetKeyState, state, LButton
if state = D
{
MsgBox,, , The Stylus Pen is on the Touchscreen or [Left Mouse Button is Pressed], 2
} else {
;MsgBox,, , The Stylus is not on the Touchscreen, 5 
}
}

esc::exitapp 

标签: scriptingtouchautohotkeygesture

解决方案


推荐阅读