To activate a function by simultaneously pressing the right and left buttons using LUA with Logitech Gaming Software, you can follow these steps:
Open Logitech Gaming Software and click on the gear icon on the top right corner to open the settings.
Click on the 'Scripting' tab and select the profile you want to edit.
In the Lua script editor, create a function that will be called when both right and left buttons are pressed simultaneously. For example:
function OnComboPress() -- code here end
function OnEvent(event, arg) if event == "MOUSEBUTTONPRESSED" and arg == 1 then pressedleft = true elseif event == "MOUSEBUTTONPRESSED" and arg == 2 then pressedright = true elseif event == "MOUSEBUTTONRELEASED" and arg == 1 then pressedleft = false elseif event == "MOUSEBUTTONRELEASED" and arg == 2 then pressedright = false end
if pressedleft and pressedright then OnComboPress() end end
Save your Lua script and assign it to your desired button in your Logitech Gaming Software profile.
Test the function by simultaneously pressing the right and left buttons on your mouse. The 'OnComboPress' function should be executed.
Please start posting anonymously - your entry will be published after you log in or create a new account. This space is reserved only for answers. If you would like to engage in a discussion, please instead post a comment under the question or an answer that you would like to discuss
Asked: 2021-12-10 11:00:00 +0000
Seen: 11 times
Last updated: Apr 17 '21
What are the components that explain the state of ECMAScript execution context specification?
How can OMNET++ be used to simulate M/M/c/c?
How can I use oversampling to address a problem?
What is the method to determine the most precise categorization of data using Self Organizing Map?
Does the ZXing Android Embedded library have support for GS-1?
What are the steps required to utilize the LFW dataset in CNN-based face verification using Keras?
What is the reason for not being able to include CURDATE() in a check?