Logitech G-Hub脚本无法检测到我的左键输入。 (Arg 1)

时间:2019-11-10 06:45:04

标签: lua logitech logitech-gaming-software

我昨天让它工作了,今天不再工作了。我尝试使用Logitech G Hub的默认脚本,但未显示3。它显示2-11很好,为什么会发生?

我试图以管理员身份运行,但仍然无法正常运行。如何解决这个问题?

我的所有按钮都工作得很好,只是G-Hub或LGS的Lua Script没有检测到左键单击输入。

MOUSE_BUTTON_PRESSED Arg: 1

输出:

function OnEvent(event, arg)
   OutputLogMessage("Event: "..event.." Arg: "..arg.."\n");
end

Original screenshot of the script and the logs

1 个答案:

答案 0 :(得分:2)

您应明确启用对LMB事件的处理:

def get_multiple_info(self,employees_ids):
    """Get info of multiple Employees in database"""
    try:
        for employee_id in employees_ids:
            kasaa().execute(
                 "SELECT * FROM ospos_employees WHERE ospos_employees.deleted = 0 AND ospos_employees.person_id = %s ",
                 employee_id
             )
            row = kasaa().fetchone()
            return row()
    except Exception as e:
        print(e)
    finally:
        kasaa().close()