Your mouse will operate in data‑over‑cable mode whenever it is plugged in directly to a PC Full charge from empty requires around 2 hours plugged in to a PC USB port. To charge, disconnect the cable from the adapter and plug into the front of the mouse. Turn mouse on via the switch on the bottom of the mouse Needed solution: some kind of workaround or use of other Lua functions to seperate the 1st onEvent execution from the 2nd onEvent.A wireless receiver attached to the USB adapter can be found in the accessory box Plug one end of the cable into your PC, and the other end into the USB adapter and receiver – The receiver can also be used plugged directly into your PC However, using the cable and adapter when in wireless mode is recommended and allows for better connectivity and easy access to the cable for recharging. 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). CREATE GAME PROFILES DOWNLOAD AND SHARE WITH THE COMMUNITY CONTROL YOUR STREAM BUILT IN OBS AND THIRD PARTY APP INTEGRATION CONTROL AND SYNC LIGHTING ANIMATE 16.8 MILLION COLORS WITH LIGHTSYNC Mice Configure your mouse, including the optical sensor, DPI settings, scroll and acceleration, button programming, and onboard memory. 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. 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.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |