为什么g_pressed在Logitech G Hub中不起作用?
经过一些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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
在GHUB中(与LGS不同)
G_Pressed
事件仅适用于具有修改的绑定的G-Keys。该事件不是针对具有残疾绑定和具有标准绑定的G-Key的G-Keys生成的。换句话说,您应该修改分配给G1键的标准命令。
如果要保留G1键的原始操作(按
f1
键),则需要创建新的宏(如:按下:按f1
,WAIT,WAIT,Release Releasef1
)并将其分配给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: pressF1
, wait, releaseF1
) and assign it to G1 key.