jasqueen.blogg.se

Logitech g hub tutorial
Logitech g hub tutorial




logitech g hub tutorial

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. The script is running a LGHUB macro while i want to attach mouse movement to that macro while it is running.

logitech g hub tutorial

Unfortunately the Lua-API is really restricted with debug, io and file not working (source: )

logitech g hub tutorial

I recently picked up Lua while making a macro script for my LG mouse.






Logitech g hub tutorial