Welcome to Code Forum!

Join a community that supports you and your coding journey from day one. We strive to be a friendly, supportive community that empowers everyone to be better developers. By registering with us, you'll be able to discuss, share and private message with other members of our community.

SignUp Now!

Recent content by Tato

  1. Tato

    Lua Simple filter for mouse button logitech

    Finally tested and with some small modification it works fine. X is a key and not a mouse button so i used PressKey instead of PressMouseButton I added also the press function that was missing. Now when i press the button 4 on my mouse - if i release before 500ms nothing happen - if i relaese...
  2. Tato

    Lua Simple filter for mouse button logitech

    For sure. Today I will test the code and mark it as a solution Thank you
  3. Tato

    Lua Simple filter for mouse button logitech

    Thank you !!! More professional and clean :)
  4. Tato

    Lua Simple filter for mouse button logitech

    Now I want to fix a problem. If I press the button for 0.3 seconds ok it's filtered. If I press for 0.5 seconds ok the function press and release. If I press for 3 seconds the script press and release @ 0.5 sec I'd like to filter if I release before 0.5sec but also I want not to release till I...
  5. Tato

    Lua Simple filter for mouse button logitech

    Finaly i found this solution: function OnEvent(event, arg) if (event == "MOUSE_BUTTON_PRESSED" and arg == 4) then Sleep(500) if (IsMouseButtonPressed(arg)) then PressAndReleaseKey("x") end end end
  6. Tato

    Lua Simple filter for mouse button logitech

    Tried, sleep modified in Sleep uppercase (not the script gived me an error) but nothing happen. Tried this without results: function OnEvent(event, arg) if (event == "MOUSE_BUTTON_PRESSED" and arg == 4) then Sleep(500) if (IsMouseButtonPressed(arg)) then return...
  7. Tato

    hi!

    Thank you @every1
  8. Tato

    Lua Simple filter for mouse button logitech

    First of all thank you !!! Tomorrow I will try and update the post here :)
  9. Tato

    hi!

    Ciao ! here to find a solution for a very simple code for my mouse software.
  10. Tato

    Lua Simple filter for mouse button logitech

    I'd like to add some info i found in the G-series API (link API) "(event == "MOUSE_BUTTON_PRESSED" and arg == 4)" is the button i'd like to use
  11. Tato

    Lua Simple filter for mouse button logitech

    Hi all, I am very noob and I'd like to ask you help for a script using lua. I have Gsuite program (Logitech) where is possible to script with LUA and I need to create a filter for the button of the mouse. I accidentally click a button and I simply want to add a filter, If I press the button...
Back
Top Bottom