Hi, I want to make a script to move the mouse down clicks and then moves to the right and click again when I click the G-shift do you think you can help me?
For people who have a problem like this "attempt to call a nil value (global 'IsMousebuttonPressed') Line Number:1" The simple solution is to change your Logitech G Hub language settings to english.
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.
You can use the love.graphics.setColor function to change the color in Lua. To do this, simply call the function with four arguments which are the RGB values: love.graphics.setColor(r, g, b, a) where r, g, b and a are the red, green, blue and alpha components respectively. Each of these arguments can have a value from 0.0 to 1.0. For example, to set the color to white you can use the following code: love.graphics.setColor(1.0, 1.0, 1.0, 1.0)
@@triplettjon Thanks the snipet code is work. but in the lastest G hub software, the middle mouse button is 3, right mouse button is 2, and there is the new 6 for the middle-bottom mouse. And, my mouse dones't work for the code in this video: EnablePrimaryMouseButtonEvents(true) function OnEvent(event, arg) OutputLogMessage("Event: "..event.." Arg: "..arg.." ") if IsMouseButtonPressed(3) then repeat if IsMouseButtonPressed(1) then repeat Sleep(10) MoveMouseto(150,150) until not IsMouseButtonPressed(1) end
@@triplettjon u r welcome, I appreciate ur information too. But the snippet code in this video is still work at nowaday G-hut software version? As I tried this code yesterday but it don't work for me.😣
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?
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.
Hello, This is a pretty long tutorial but with the knowledge in this video you should be able to make your own simple script. If you just wish to download the code: www.kriptaep.com/member -> Click on "Download" for Simple Recoil
I have a script that used to work then I deleted it but I try to use it again it says that [string "LuaVM"]:256: attempt to call a nil value (field 'pow') Line Number:1
actually i tried and i still have to press the button 3 to start it, i don't understand how to use it just with the button 1 and activate it with the numlock key
I wrote a script for instalocking in valorant I have no interest in no recoil, it was working perfectly and I was able to instantly select my character but the next day it stopped working I think valorant has blocked Lua scripts from working is there any way to bypass this? its strange bc it was just working last night.
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?
okay so i did everything you did and now i cant even play battlefeild.....my guy is just staring at the ground and cant get him to look up or down...tried deleting the script, uninstalling battlefield ands logitech g hub and nothing is working....PLEASE HELP ME
If this is on Battlfield 2042, and you cant look up or down while staring at the ground. Its either a controller is plugged in which is a known issue, or you have to blow away your battlefield 2042 folder in your documents folder and redo all your in game settings. Unfortunately these are the only fixes for this glitch
This is not working...I have it copied EXACTLY, but i keep getting [string "LuaVM"]:9: attempt to call a nil value (global 'IsMousebuttonPressed') Line Number:1
Hello i hope someone can help me with this lua script. I got a logictech g600 and i want a script that makes "press G12" "press G12" again but the second click is left mouse button to fire in a game. Hope you understand me and are willing to help me.
Hello! I have a problem. I have the g502 lightspeed mouse which has 11 buttons. I want the if condition to be pressing button 6 (sniper button) but it gives me an error. Excuse me if it is badly written but my native language is not English.
Hi, i'm trying to make this macro: In WarZone when you AIM with a sniper weapon you also need to hold another key to stabilize de AIM, i want to do this macro: Just pressing the *Right Click* Mouse it "AIM + Stabilize", in other words Right Click do 2 actions simultaneously: AIM + STABILIZE AIM. Can you teach how do this? Thx.
Same thing but change the x axis of MoveMouseRelative() function OnEvent(event, arg) OutputLogMessage("Event: "..event.." Arg: "..arg.." ") if IsKeyLockOn("numlock") then if IsMouseButtonPressed(3) then repeat if IsMouseButtonPressed(1) then repeat MoveMouseRelative(2, 0) Sleep(10) until not IsMouseButtonPressed(1) end until not IsMouseButtonPressed(3) end end end
function OnEvent(event, arg) OutputLogMessage("Event: "..event.." Arg: "..arg.." ") end not working for some reason! Output: Event: PROFILE_ACTIVATED Arg: 0
Hello guys, I will begin uploading videos again.
Got another warning from freaking PUBG corp.
Anyway.. new discord link: discord.gg/KWMGgPr
Hi, I want to make a script to move the mouse down clicks and then moves to the right and click again when I click the G-shift do you think you can help me?
how can i do the same thing but making recoil work only when click left click without right click ?
and if i want to to move to the left for 2 sec then go to right after 2 sec would it be possible ?
Thanks for the tutorial, you help me a lot to start to know about that. i will wacht the next two tutorial! 👍
thx bro, I hope u contiue in lua and give us more advanced tutorials
first comment first like
Thank you, I will
thank you, you're a good teacher :)
Thanks Mate 🙌
For people who have a problem like this "attempt to call a nil value (global 'IsMousebuttonPressed') Line Number:1" The simple solution is to change your Logitech G Hub language settings to english.
Mines is set to English and still having that problem
i appreciate you bud
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.
You can use the love.graphics.setColor function to change the color in Lua. To do this, simply call the function with four arguments which are the RGB values:
love.graphics.setColor(r, g, b, a)
where r, g, b and a are the red, green, blue and alpha components respectively. Each of these arguments can have a value from 0.0 to 1.0. For example, to set the color to white you can use the following code:
love.graphics.setColor(1.0, 1.0, 1.0, 1.0)
what i not understand how to assign the button for ON/OFF the script...can explain pls?
I have a question, is posible to use insted MoveMouseRelative(0, 5) use MoveMouseRelative(0, 5.5745) is posble to use decimals?
[string "LuaVM"]:246: attempt to call a nil value (field 'pow') Line Number:1
Can you help me fix it?
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.
EnablePrimaryMouseButtonEvents(true)
add this to the top of the script
@@triplettjon Thanks the snipet code is work. but in the lastest G hub software, the middle mouse button is 3, right mouse button is 2, and there is the new 6 for the middle-bottom mouse.
And, my mouse dones't work for the code in this video:
EnablePrimaryMouseButtonEvents(true)
function OnEvent(event, arg)
OutputLogMessage("Event: "..event.." Arg: "..arg.."
")
if IsMouseButtonPressed(3) then
repeat
if IsMouseButtonPressed(1) then
repeat
Sleep(10)
MoveMouseto(150,150)
until not IsMouseButtonPressed(1)
end
until not IsMouseButtonPressed(3)
end
end
@@ddw1518 thanks for the update 😉
@@triplettjon u r welcome, I appreciate ur information too. But the snippet code in this video is still work at nowaday G-hut software version? As I tried this code yesterday but it don't work for me.😣
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...
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?
Is there a function in LUA to detect whether the cursor/mouse is shown on screen?
How can I speed up my mouse on the horizontal axis?
Are you from Brazil?
incrivel como um brasileiro sabe detectar outro brasileiro falando em ingles UEHUEAHAUEHEAUH
@@TheWantedUnknown ahsuhwskkwd tem um sotaque de leve
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.
Other mice * (Razer, Redragon, Hyper-x ...) * can also be programmable with this type of script? If not with .lua, at least with another language?
any thoughts on this?
Ok cool!
Cool 😎
Hello,
This is a pretty long tutorial but with the knowledge in this video you should be able to make your own simple script.
If you just wish to download the code: www.kriptaep.com/member -> Click on "Download" for Simple Recoil
some of the scripts arent working, like endfunction, event and arg
and there's also an error on line 2
[string "LuaVM"]:3: attempt to call a nil value (global 'IsMousebuttonPressed') Line Number:1
i have the same problem
If a lua script is made for logitech mouse, is there any way to run that lua script without logitech mouse?
I copied this exactly and it does nothing at all even though there are no syntax errors did i do something wrong?
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 ?
Could you help me need to make a macro that quickly presses the "wheel up" key in a loop logitech
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
x2
minimize the current window, it should be underneath
is this recoil too harsh for CoD Vanguard guns or would this work?
You can modify it!
I have a script that used to work then I deleted it but I try to use it again it says that [string "LuaVM"]:256: attempt to call a nil value (field 'pow') Line Number:1
Thank you very much! It's really sad that Logitech didn't bother to add cursor movement to the UI, so we have to learn lua
Hi, I’m getting an error at 18mins in telling me profile activated arg:0 line 1/ any help?
Sometimes i have it on but sometimes its off,than its on again.. i past the same thing as u have.. any button im pressing that is turning off?
friend when I create the script and save it, the difference is not felt in the game and the lua comes out dark in color
Why sleep disable all function for all time?
Really interesting tutorial, thank you!
however, why doenst assigning to bottom 1 work?? Is this not allowed?
if IsMouseButtonPressed(1) then
repeat
MoveMouseRelative(0, 2)
Sleep(8)
until not IsMouseButtonPressed(1)
end
yeah would be easier, right?
actually i tried and i still have to press the button 3 to start it, i don't understand how to use it just with the button 1 and activate it with the numlock key
How to do it without logitech mouse?
ty
i only see when my mouse is pressed... why dont i see when my logitech g920 is pressed?
I make macro like you but but not working. What is problem?
I wrote a script for instalocking in valorant I have no interest in no recoil, it was working perfectly and I was able to instantly select my character but the next day it stopped working I think valorant has blocked Lua scripts from working is there any way to bypass this? its strange bc it was just working last night.
The script will work in PS4 with a Logitech G PRO HERO or It is impossible?
lmao
Just get a Cronus zen
new Ghub version can not save the script
Now you can!
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?
newer versions of HUB are Bugged, try downloading an older version like ( version: 2021.3.5264 )
@@LittleJT123 thanks
wow you back i thought your channel was reported
It was
okay so i did everything you did and now i cant even play battlefeild.....my guy is just staring at the ground and cant get him to look up or down...tried deleting the script, uninstalling battlefield ands logitech g hub and nothing is working....PLEASE HELP ME
If this is on Battlfield 2042, and you cant look up or down while staring at the ground. Its either a controller is plugged in which is a known issue, or you have to blow away your battlefield 2042 folder in your documents folder and redo all your in game settings. Unfortunately these are the only fixes for this glitch
is it possible to create a script for PUBG?
or is this compatible?
You can create a script for any game.
when i press edit script dosent openingthe second tab what can i do
This is not working...I have it copied EXACTLY, but i keep getting [string "LuaVM"]:9: attempt to call a nil value (global 'IsMousebuttonPressed') Line Number:1
IsMouseButtonPressed , the "b" needs to be capital
have a script in xml is possible convert in lua?
Hello i hope someone can help me with this lua script. I got a logictech g600 and i want a script that makes "press G12" "press G12" again but the second click is left mouse button to fire in a game. Hope you understand me and are willing to help me.
Scrap my last comment managed to get it working but it doesn’t work every time. Every suggestions ?
hi, i tried to install the script, in the logitech screen it works, the ursor moves down, but in the game not, why?
Run Logitech Gaming Hub as Administrator =)
@@kriptaep212 but is there a way to trigger this query?
@@kriptaep212 perfect
@@kriptaep212 hello sorry, could the ping have risen during games for entering the query?
what is the chance i get bannned
doen anyone know how to always have the recoil scrypt with the button 1 ? without have to press button 3? thanks
Change the 3 to something else, or just get rid of that initial function altogether and just keep the second one.
make one for rust
Hello! I have a problem. I have the g502 lightspeed mouse which has 11 buttons. I want the if condition to be pressing button 6 (sniper button) but it gives me an error. Excuse me if it is badly written but my native language is not English.
Is this applicable to deathadder essential
You can use a XML
On razers software
i have a g903 and dont work
Hi, i'm trying to make this macro:
In WarZone when you AIM with a sniper weapon you also need to hold another key to stabilize de AIM, i want to do this macro:
Just pressing the *Right Click* Mouse it "AIM + Stabilize", in other words Right Click do 2 actions simultaneously: AIM + STABILIZE AIM.
Can you teach how do this?
Thx.
Add keystrokes on macros section on same profile or record macro
@@ankit3375 whats ur discord maybe i can add u and u can show me how its done coz im after the same thing thanks
hello brother, thank you very much for your videos, it's what I was looking for, could you show us some autoclick code to add to the script..
I will try
WTF!!! I HAVE EXACTLY THE SAME MOUSE AND KEYBOARD111!!!11!1
Side ways recoil ?
Same thing but change the x axis of MoveMouseRelative()
function OnEvent(event, arg)
OutputLogMessage("Event: "..event.." Arg: "..arg.."
")
if IsKeyLockOn("numlock") then
if IsMouseButtonPressed(3) then
repeat
if IsMouseButtonPressed(1) then
repeat
MoveMouseRelative(2, 0)
Sleep(10)
until not IsMouseButtonPressed(1)
end
until not IsMouseButtonPressed(3)
end
end
end
O ok cool thanks will try that
@@oofin4304 how can i do the same thing but making recoil work only when click left click without right click ?
@@oofin4304 and if i want to to move to the left for 2 sec then go to right after 2 sec would it be possible ?
any pubg latest patchs LUA for sale?
i dont see an edit script button pls help
nvm inm stupid
I dont se it?
please make one for valorant recoil
ooooo here are all the pro players from Pubg:))))) 1234 1234 1234 :)))) NOOOOOOBBBBBBSSSSSSSSS
One question how can I make a macro I need for warface but I play on ps4
function OnEvent(event, arg)
OutputLogMessage("Event: "..event.." Arg: "..arg.."
")
end
not working for some reason!
Output: Event: PROFILE_ACTIVATED Arg: 0
Can anyone make make me a lua zero recoil for PUBG so I can use any gun with any scope plz
dude i got banned with out even using these damn scripts. Only like opened the app once and nothing else now i got to answer for it lol.
Zero games ban people for having Logitech software.
cool cool lamo
siempre pensando en el dinero
Vai Brasilllll
Mouse movements are being blocked by anticheats lately so.. Yea.
_Spoiler Alert_ - Sadly this guy is only doing these Lua videos for 💰 income. Meh...
discord link dosent work ?