为什么g_pressed在Logitech G Hub中不起作用?

发布于 2025-01-26 05:33:11 字数 162 浏览 1 评论 0原文

经过一些G中心更新后,此脚本停止工作。为什么?

function OnEvent(event, arg)

if (event == "G_PRESSED" and arg == 1) then
PressAndReleaseKey("i")
end

end

After some of the G HUB updates, this script stopped working. Why?

function OnEvent(event, arg)

if (event == "G_PRESSED" and arg == 1) then
PressAndReleaseKey("i")
end

end

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

遥远的绿洲 2025-02-02 05:33:11

在GHUB中(与LGS不同)G_Pressed事件仅适用于具有修改的绑定的G-Keys。该事件不是针对具有残疾绑定和具​​有标准绑定的G-Key的G-Keys生成的。
换句话说,您应该修改分配给G1键的标准命令。
如果要保留G1键的原始操作(按f1键),则需要创建新的宏(如:按下:按f1,WAIT,WAIT,Release Release f1)并将其分配给G1密钥。

In GHUB (unlike LGS) G_PRESSED event is generated only for G-keys having modified bindings. The event is not generated for G-keys with disabled binding and for G-keys with standard binding.
In other words, you should modify the standard command assigned to G1 key.
If you want to preserve the original action (pressing of F1 key) for G1 key, you need to create new macro (something like: press F1, wait, release F1) and assign it to G1 key.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文