scripting - 如何获取手写笔按下级别值 - 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
解决方案
推荐阅读
- signals - 注销Signal账户失败
- xml - 基于 XSD 文件(所有节点)和动态客户端 XML(只有 50% 节点和值)创建 XSLT 模板
- salesforce - 我希望每个帐户获得一个案例
- anylogic - 存放到托盘架时托盘消失
- javascript - 如何使用 Javascript 云功能从 Firebase 实时数据库中随机获取子键名称
- angular - Angular 8:服务中的属性返回未定义
- java - 如何正确使用 Java 中的 Apollo Client 的 RxJava2 库进行同步调用?
- flutter - 启用或禁用通知颤动
- android - 为什么我的获取请求在反应本机时出现问题网络请求错误
- redis - Airflow 是否支持通过 TLS 连接代理 url?