Tutorial | Logitech | Make your own Lua No-Recoil | Part #1

preview_player
Показать описание
Welcome,
in this tutorial series I will be teaching you how to code your own Recoil script in Logitech using Lua.

★Links

★Timestamp:
Introduction: (00:00​​)
Open Logitech G Hub: (00:30)
Open script: (01:13)
Function OnEvent: (06:08)
Writing Conditionals: (09:20)
MoveMouseTo: (12:37) / Not the right function for the purpose of the video, however, is being shown to give you guys an idea of how to use other functions.
Fixing Errors: (13:20)
Understanding Repeat-Until: (14:50)
Fixing more Errors: (16:00)
Sleep: (20:20)
MoveMouseRelative: (21:15)
Finishing it up: (22:40)
Changing values: (23:15)
Thank you: (24:12​)

*Educational purpose ONLY*
I am not responsible with your actions with the knowledge given by this channel.
Thank you for watching, subscribe for more!
Рекомендации по теме
Комментарии
Автор

Hello guys, I will begin uploading videos again.
Got another warning from freaking PUBG corp.

kriptaep
Автор

Hello,
This is a pretty long tutorial but with the knowledge in this video you should be able to make your own simple script.

kriptaep
Автор

Hello, I need a Macro that clicks once, moves the mouse 3-4 centimeters to the left, then clicks again and repeats every 3-4 seconds. Can you help me with this?

Barkney
Автор

right at 7:20 I am having a problem. When I click control S, which I assume is the equivilant to save and run (have also tried) it tells me loaded then event provile_deativated args 0 and it doesnt' update when I click or anything. Seems like it is just done there. Any shuggestions?

paulsonhanel
Автор

thx bro, I hope u contiue in lua and give us more advanced tutorials
first comment first like

despradothegho
Автор

[string "LuaVM"]:246: attempt to call a nil value (field 'pow') Line Number:1
Can you help me fix it?

muhamedomerovic
Автор

I have a question, is posible to use insted MoveMouseRelative(0, 5) use MoveMouseRelative(0, 5.5745) is posble to use decimals?

pablozambrano
Автор

So I'm trying to set up a script to introduce a random delay between clicks on my keyboard, rather than a list of attempted random inputs on cycle I currently have for a macro. Right now, I have Press A (~100ms) Release A (~1200ms) Press Spacebar (~100ms) Release Spacebar (~12500 ms), and then repeat that cycle. Any idea how to set that up as a script so that the times, especially after Release A and Release Spacebar, becomes random times between 1150-1300 ms and 12000-14000 ms? So far, I have...

PressKey("a")
Sleep(math.random(70, 120))
ReleaseKey("a")
Sleep(math.random(1150, 1300))
PressKey("spacebar")
Sleep(math.random(70, 120))
ReleaseKey("spacebar")
Sleep(math.random(12000, 14000))

Thoughts?

soccerjonesy
Автор

thank you, you're a good teacher :)

roflbofl
Автор

Hey, I have a question, can I detect if the scroll wheel is being used? I wanted the script to press "LMB (left mouse button)" whenever I scroll with my scroll wheel.

lajm_
Автор

Hi Krip, the script seems is not working on latest G hub software. It seems can't detect the IsMouseButtonPresses(1) the left click of the mouse.

helloworld_
Автор

I think that in this script there is something wrong.
When I test "IsMouseButtonPressed()" function, this function can not accept "Physical Button".

Faded
Автор

How can I speed up my mouse on the horizontal axis?

jacksparrow
Автор

hello,
something wrong I put save when I finish when i"m on the game first shoot work but when i change weapons not working... why its going off ?

kaantek
Автор

Thanks for the tutorial. I have a G512 carbon keyboard and I want program to change colour while the Caps-Lock button is on. Do you have ideas or suggestions I could try? Thank you.

wikindog
Автор

How i make a general script like 1 button for increase and 1 button for decrease recoil....10 20, 30% per click higher or lower...

ThSecretLady
Автор

what i not understand how to assign the button for ON/OFF the script...can explain pls?

ionutmarian
Автор

Thanks for the tutorial, you help me a lot to start to know about that. i will wacht the next two tutorial! 👍

_gino
Автор

The script pasting/writing window doesnt open for some reason and it says to close it to save script even though it doesnt even open, please help

bipbopking
Автор

Other mice * (Razer, Redragon, Hyper-x ...) * can also be programmable with this type of script? If not with .lua, at least with another language?

IgorBasilius
join shbcf.ru