logitech

Rapid fire with logitech lua script?

为君一笑 提交于 2021-02-19 07:42:13
问题 When writing lua scripts for my logitech g502, I've gotten rapid fire to work, but it will continue to execute mouse presses after the mouse one button is released as long as the ctrl key is held. I am wondering if there is any kind of iteration that would allow me to signal a function that presses and releases the mouse but under the conditional that the same mouse button is pressed.(For example, ctrl must be held and rapid fire only executes when mouse button 1 is held down, as opposed to

Rapid fire with logitech lua script?

泄露秘密 提交于 2021-02-19 07:42:07
问题 When writing lua scripts for my logitech g502, I've gotten rapid fire to work, but it will continue to execute mouse presses after the mouse one button is released as long as the ctrl key is held. I am wondering if there is any kind of iteration that would allow me to signal a function that presses and releases the mouse but under the conditional that the same mouse button is pressed.(For example, ctrl must be held and rapid fire only executes when mouse button 1 is held down, as opposed to

math.pow with Logitech G-Hub

坚强是说给别人听的谎言 提交于 2021-02-05 08:09:13
问题 Not to sure how to fix this error. I read there was a change but have no idea how to fix it. function convert_sens(unconvertedSens) return 0.002 * math.pow(10, unconvertedSens / 50) end The error code was: attempt to call a nil value (field 'pow') 回答1: math.pow is deprecated since Lua 5.3 and even if your framework doesn't provide any math library simply use the exponentiation operator ^ . So instead of math.pow(x, y) simply write x^y 来源: https://stackoverflow.com/questions/65664703/math-pow

Logitech Lua Sleep Behavior

▼魔方 西西 提交于 2021-01-29 17:14:39
问题 Since Egor always help, this is intended to show him the problem, but if you know how to solve, please help too! https://youtu.be/J2vRfnUplio <<< this is how the script should work. (look at the descripition for more info) https://youtu.be/HH_MmfXUdl8 <<< This is how it doing now, at windows newer versions. Having problems with Sleep() func on MouseMoveRelative on LUA ^^ This is the last question that shows the problem and you helped me there GHUB has the same version on both, so isnt GHUB

Having problems with Sleep() func on MouseMoveRelative on LUA

主宰稳场 提交于 2021-01-29 07:13:04
问题 got a new drive and installed a fresh windows. Before on old OS, i could use "Sleep" to make "MoveMouseRelative" work like it was natural movement. i have created a function were i can move the mouse calling it with how many times i want it to "move" and with the milliseconds between each "move" Example:(works well) function _move(x, range, time, range2) for i = 1, x do MoveMouseRelative(range,range2) Sleep(time) end end n If i set "Sleep(1)" beteween each "MoveMouseRelative" it moves like it

After table.getn got deprected in Logitech 5.4 LUA this code doesn't seems to work anymore

自闭症网瘾萝莉.ら 提交于 2021-01-27 07:08:38
问题 After Logitech API got updated for the 5.4 Lua version, table.getn got deprected and some guys that helped me said I could update the code with # but the logic of the code doesn't seems to work anymore with this replacement, I have tried making some workaround the code but I'm not very familiar with programming, how could I fix this code for Logitech API? Could someone guide me? Sense = 1.4; --Rate of FIRE (in seconds) G36ROF = 10 --600RPM. HKROF = 11.1 --666RPM. ROF = {G36ROF, HK417ROF} -

math library is missing in the latest update of Logitech G-Hub

和自甴很熟 提交于 2021-01-13 09:14:19
问题 local delay = math.random(25, 50) [string "LuaVM"]:5: attempt to index a nil value (global 'math') I can't use math.random anymore is there any way to fix this ? 回答1: If math library is missed you can insert the following code block at the beginning of your script. It will not fix the whole math library, but only some of the most frequently used functions (including math.random ). It will also fix the following errors: bad argument #1 to 'Sleep' (number has no integer representation) attempt

math library is missing in the latest update of Logitech G-Hub

好久不见. 提交于 2021-01-13 09:13:34
问题 local delay = math.random(25, 50) [string "LuaVM"]:5: attempt to index a nil value (global 'math') I can't use math.random anymore is there any way to fix this ? 回答1: If math library is missed you can insert the following code block at the beginning of your script. It will not fix the whole math library, but only some of the most frequently used functions (including math.random ). It will also fix the following errors: bad argument #1 to 'Sleep' (number has no integer representation) attempt

Logitech Lua combining Rapid Fire with spray

三世轮回 提交于 2020-08-10 22:04:59
问题 So basically, this is what my script looks like at the moment, it’s a rapid fire macro and reduces the recoil of the guns, however I can never spray with this script for some reason as it’s very slow because I guess it’s reducing the recoil. I was wondering if I could shoot like 4, 5 bullets without any recoil (only auto shoot while holding mouse 3 not while tapping.) and continue with spray like normal spray without any delays while already holding mouse3. So 4 bullets no recoil and rest the

Logitech Lua combining Rapid Fire with spray

让人想犯罪 __ 提交于 2020-08-10 22:02:17
问题 So basically, this is what my script looks like at the moment, it’s a rapid fire macro and reduces the recoil of the guns, however I can never spray with this script for some reason as it’s very slow because I guess it’s reducing the recoil. I was wondering if I could shoot like 4, 5 bullets without any recoil (only auto shoot while holding mouse 3 not while tapping.) and continue with spray like normal spray without any delays while already holding mouse3. So 4 bullets no recoil and rest the