vurbaby.blogg.se

Logitech g hub tutorial
Logitech g hub tutorial








logitech g hub tutorial

Let me explain first what is Logitech G Hub? If you’re using Logitech gaming peripherals, keyboard, mouse and headset, and want a better control of the gears, you’ll need to download Logitech G Hub to help you with that.

logitech g hub tutorial

Needed solution: some kind of workaround or use of other Lua functions to seperate the 1st onEvent execution from the 2nd onEvent.In this tutorial, how to download the latest version of Logitech G Hub on Windows PC or laptop. The variable change is triggered in the 2nd onEvent. But the 1st onEvent is designed to break on a variable change. This is not working due to a 2nd onEvent cannot be triggered until the 1st onEvent has finished. But otherwise i know to little about Lua and its behavior.Įdit1: Added "essential script" which only describes the needed core-functions. If i could somehow run a looping check on while still be able to trigger the onEvent-function, i can make this work. The script seems to get executed once at load (example on switching mouse-profiles) and then the onEvent-function listens. There would be also the possibility to transfer the LGHUB-macro (essentially its just pressButton A and leftclick for 40s then release the buttons) but that doesnt solve the problem (at least i cant find a solution within this) with the function being stuck in the loop and no way to break it.įor example, if MouseButton11 triggers a loop and i press MouseButton10, the $arg variable does not change to 10 but stays at 11 because the script-pointer(?) is still in the loop instead of triggering the onEvent function. The script doesnt stop and wait if it encounters 'PlayMacro()', also this API-Function has no return value to just attach lua actions to the PlayMacro-function. My current idea is to break that with a coroutine but iam not sure how to continue while no key-input is happening. I also want to break that macro if i hit another button while the macro is running.īUT if i loop the mouse-movement, i cannot trigger another onEvent-function because the script-pointer(?) is still stuck in my loop. So I'm looking for a possibility in Lua to 'run a loop independent' which does not stop the execution of the rest of my script (to check if a status variable has changed). There is no function for checking if a macro is currently running to just loop and stop the lua-side.

logitech g hub tutorial

The script is running a LGHUB macro while i want to attach mouse movement to that macro while it is running. Unfortunately the Lua-API is really restricted with debug, io and file not working (source: ) I recently picked up Lua while making a macro script for my LG mouse.










Logitech g hub tutorial