Results 1 to 7 of 7
  1. #1
    Dr.Hirsch's Avatar
    Join Date
    Jan 2022
    Gender
    male
    Posts
    1
    Reputation
    10
    Thanks
    3

    Post Universal No Recoil for Logitech

    Wanting to share what I have used for the last 2+ years.

    It is universal and works for any game. You can change the strength of the recoil reduction on the fly, by pressing MouseWheel left/right.
    Enjoy.

    Code:
    -- Universal_Simplified for Logitech GHUB
    -- only testet on G604
    
    -- some times you have to close GHUB through Taskmanager and launch it as admin, not my fault
    
    -- main feature :
    -- with mousewheel right you can increase NoRecoil strength, with mouse wheel left you can reduce strength
    -- change UP,DOWN if you mouse does not support this
    -- so you can use it in any game and with any weapon
    -- for use in games like PUBG,RainbowSix,SuperPeople...
    -- 2+ Years no ban
    
    -- to keep track of you strength values use 
    -- the console in LGHUB, 2nd screen required looks like this :
    -- https://imgur.com/qoiMpRi
    -- or https://docs.microsof*****m/en-us/sysinternals/downloads/debugview and filter for *NR*, can be used as overlay
    -- https://imgur.com/3P2GbW2
    
    --Settings--
    --General--
    UP = 13                     -- to increase NoRecoil strength, toggle Modify to change RapidFire strenght
    DOWN = 12                   -- to reduce NoRecoil strength, toggle Modify to change RapidFire strenght
    --NoRecoil
    NR = 4		                -- distance to pull down, (default) recoil reduction
    HorizontalRecoilModifier=0	-- unused, is for left right recoil	 
    Sleep_ = 10                    -- delay between pull down, less for smoother
    --BINDS--	
    --General--                 
    UP = 13                     -- to increase NoRecoil strength, + Modify to increase RapidFireNoRecoil
    DOWN = 12                   -- to reduce 	
    --NoRecoil 									
    RC = 3                        -- right click, when you press RC and LC it pulls down
    LC = 1                        -- Left click, key boud to shoot ingame 
    
    --FUNCTIONS--						
    EnablePrimaryMouseButtonEvents(true);   -- to capture primary (1) klick
    OutputDebugMessage("Profil Aktiv")
    function NoRecoil()
    	repeat
    	MoveMouseRelative(0,NR)
    	Sleep(Sleep_)
    until not IsMouseButtonPressed(LC)
    end
    --NoRecoilModify
    function Add()
        NR=NR+1 	
        if (NR>10) then
            NR=0
        end 		
        OutputLogMessage("NR %d\n", NR)
        OutputDebugMessage("NR %d\n", NR)
    end
    function Reduce()
        NR=NR-1 	
        if (NR<0) then
            NR=10
        end
        OutputLogMessage("NR %d\n", NR)
        OutputDebugMessage("NR %d\n", NR)
    end
    --increaseAndReduce
    function OnEvent(event, arg)	
    
        if (event == "MOUSE_BUTTON_PRESSED" and arg == UP) then
            Add() 
        end
        if (event == "MOUSE_BUTTON_PRESSED" and arg == DOWN) then
            Reduce()
        end
        if IsMouseButtonPressed(RC)then	                           
            repeat
                if IsMouseButtonPressed(LC)  then
                    NoRecoil()
                end
            until not IsMouseButtonPressed(RC)
        end
    end

  2. The Following 3 Users Say Thank You to Dr.Hirsch For This Useful Post:

    AHITMAN (02-19-2022),nikb81 (01-19-2023),Sqtuirtle (01-27-2022)

  3. #2
    filizao12's Avatar
    Join Date
    Sep 2020
    Gender
    male
    Posts
    8
    Reputation
    10
    Thanks
    0

    Help

    Quote Originally Posted by Dr.Hirsch View Post
    Wanting to share what I have used for the last 2+ years.

    It is universal and works for any game. You can change the strength of the recoil reduction on the fly, by pressing MouseWheel left/right.
    Enjoy.

    Code:
    -- Universal_Simplified for Logitech GHUB
    -- only testet on G604
    
    -- some times you have to close GHUB through Taskmanager and launch it as admin, not my fault
    
    -- main feature :
    -- with mousewheel right you can increase NoRecoil strength, with mouse wheel left you can reduce strength
    -- change UP,DOWN if you mouse does not support this
    -- so you can use it in any game and with any weapon
    -- for use in games like PUBG,RainbowSix,SuperPeople...
    -- 2+ Years no ban
    
    -- to keep track of you strength values use 
    -- the console in LGHUB, 2nd screen required looks like this :
    -- https://imgur.com/qoiMpRi
    -- or https://docs.microsof*****m/en-us/sysinternals/downloads/debugview and filter for *NR*, can be used as overlay
    -- https://imgur.com/3P2GbW2
    
    --Settings--
    --General--
    UP = 13                     -- to increase NoRecoil strength, toggle Modify to change RapidFire strenght
    DOWN = 12                   -- to reduce NoRecoil strength, toggle Modify to change RapidFire strenght
    --NoRecoil
    NR = 4		                -- distance to pull down, (default) recoil reduction
    HorizontalRecoilModifier=0	-- unused, is for left right recoil	 
    Sleep_ = 10                    -- delay between pull down, less for smoother
    --BINDS--	
    --General--                 
    UP = 13                     -- to increase NoRecoil strength, + Modify to increase RapidFireNoRecoil
    DOWN = 12                   -- to reduce 	
    --NoRecoil 									
    RC = 3                        -- right click, when you press RC and LC it pulls down
    LC = 1                        -- Left click, key boud to shoot ingame 
    
    --FUNCTIONS--						
    EnablePrimaryMouseButtonEvents(true);   -- to capture primary (1) klick
    OutputDebugMessage("Profil Aktiv")
    function NoRecoil()
    	repeat
    	MoveMouseRelative(0,NR)
    	Sleep(Sleep_)
    until not IsMouseButtonPressed(LC)
    end
    --NoRecoilModify
    function Add()
        NR=NR+1 	
        if (NR>10) then
            NR=0
        end 		
        OutputLogMessage("NR %d\n", NR)
        OutputDebugMessage("NR %d\n", NR)
    end
    function Reduce()
        NR=NR-1 	
        if (NR<0) then
            NR=10
        end
        OutputLogMessage("NR %d\n", NR)
        OutputDebugMessage("NR %d\n", NR)
    end
    --increaseAndReduce
    function OnEvent(event, arg)	
    
        if (event == "MOUSE_BUTTON_PRESSED" and arg == UP) then
            Add() 
        end
        if (event == "MOUSE_BUTTON_PRESSED" and arg == DOWN) then
            Reduce()
        end
        if IsMouseButtonPressed(RC)then	                           
            repeat
                if IsMouseButtonPressed(LC)  then
                    NoRecoil()
                end
            until not IsMouseButtonPressed(RC)
        end
    end





    Which version of ghub does this works? Also how can i change the binds for the recoil strenght ?

  4. #3
    LordAegis's Avatar
    Join Date
    Jan 2017
    Gender
    male
    Posts
    32
    Reputation
    10
    Thanks
    4
    My Mood
    Relaxed
    Quote Originally Posted by filizao12 View Post
    Which version of ghub does this works? Also how can i change the binds for the recoil strenght ?
    I wouldn't use G-Hub because the last Version of Logitech G-Hub doesn't work with LUA anymore.

    I switched back to Logitech Gaming Software.

  5. #4
    936814398's Avatar
    Join Date
    Oct 2019
    Gender
    male
    Posts
    1
    Reputation
    10
    Thanks
    0
    Quote Originally Posted by Dr.Hirsch View Post
    Wanting to share what I have used for the last 2+ years.

    It is universal and works for any game. You can change the strength of the recoil reduction on the fly, by pressing MouseWheel left/right.
    Enjoy.

    Code:
    -- Universal_Simplified for Logitech GHUB
    -- only testet on G604
    
    -- some times you have to close GHUB through Taskmanager and launch it as admin, not my fault
    
    -- main feature :
    -- with mousewheel right you can increase NoRecoil strength, with mouse wheel left you can reduce strength
    -- change UP,DOWN if you mouse does not support this
    -- so you can use it in any game and with any weapon
    -- for use in games like PUBG,RainbowSix,SuperPeople...
    -- 2+ Years no ban
    
    -- to keep track of you strength values use 
    -- the console in LGHUB, 2nd screen required looks like this :
    -- https://imgur.com/qoiMpRi
    -- or https://docs.microsof*****m/en-us/sysinternals/downloads/debugview and filter for *NR*, can be used as overlay
    -- https://imgur.com/3P2GbW2
    
    --Settings--
    --General--
    UP = 13                     -- to increase NoRecoil strength, toggle Modify to change RapidFire strenght
    DOWN = 12                   -- to reduce NoRecoil strength, toggle Modify to change RapidFire strenght
    --NoRecoil
    NR = 4		                -- distance to pull down, (default) recoil reduction
    HorizontalRecoilModifier=0	-- unused, is for left right recoil	 
    Sleep_ = 10                    -- delay between pull down, less for smoother
    --BINDS--	
    --General--                 
    UP = 13                     -- to increase NoRecoil strength, + Modify to increase RapidFireNoRecoil
    DOWN = 12                   -- to reduce 	
    --NoRecoil 									
    RC = 3                        -- right click, when you press RC and LC it pulls down
    LC = 1                        -- Left click, key boud to shoot ingame 
    
    --FUNCTIONS--						
    EnablePrimaryMouseButtonEvents(true);   -- to capture primary (1) klick
    OutputDebugMessage("Profil Aktiv")
    function NoRecoil()
    	repeat
    	MoveMouseRelative(0,NR)
    	Sleep(Sleep_)
    until not IsMouseButtonPressed(LC)
    end
    --NoRecoilModify
    function Add()
        NR=NR+1 	
        if (NR>10) then
            NR=0
        end 		
        OutputLogMessage("NR %d\n", NR)
        OutputDebugMessage("NR %d\n", NR)
    end
    function Reduce()
        NR=NR-1 	
        if (NR<0) then
            NR=10
        end
        OutputLogMessage("NR %d\n", NR)
        OutputDebugMessage("NR %d\n", NR)
    end
    --increaseAndReduce
    function OnEvent(event, arg)	
    
        if (event == "MOUSE_BUTTON_PRESSED" and arg == UP) then
            Add() 
        end
        if (event == "MOUSE_BUTTON_PRESSED" and arg == DOWN) then
            Reduce()
        end
        if IsMouseButtonPressed(RC)then	                           
            repeat
                if IsMouseButtonPressed(LC)  then
                    NoRecoil()
                end
            until not IsMouseButtonPressed(RC)
        end
    end
    I can't dynamically adjust the pressing strength with the mouse wheel. Please help me. G502 and G HUB

  6. #5
    ZoNkeN's Avatar
    Join Date
    Mar 2021
    Gender
    male
    Posts
    2
    Reputation
    10
    Thanks
    0

    LuvIt

    I have used this for a long time now and i love it. I just miss a on and off button. Would nice to be able to have Capslock as a on/off button for the macro. I have tried to make it myself but cant figure it out, would you like to help me?

  7. #6
    TunisDream's Avatar
    Join Date
    Dec 2016
    Gender
    male
    Posts
    18
    Reputation
    10
    Thanks
    4
    Quote Originally Posted by 936814398 View Post
    I can't dynamically adjust the pressing strength with the mouse wheel. Please help me. G502 and G HUB
    same for me and with the new version of g-hub lua scripts are working fine

    ok got it:

    You have to find out which button number you have for your mouse wheel klick right and left. for my G502x right wheel is 8 (for function add) and left is 7 (function reduce).

    add this line to display in the console which button you are pressing

    OutputLogMessage("Event: "..event.." Arg: "..arg.."\n")

    then before calling the function Add() or Reduce() change value for "arg == UP" to" arg == 8" or "arg==down" to "arg==7"
    Last edited by TunisDream; 12-18-2022 at 04:51 AM.

  8. #7
    ZoNkeN's Avatar
    Join Date
    Mar 2021
    Gender
    male
    Posts
    2
    Reputation
    10
    Thanks
    0

    Request

    Is it possible to have keyboard buttons to increase to change recoil control?
    Like, use page up or down to increase and reduce recoil control och num and scrollock?

    since i have the logitech G Pro, i dont have any mouse buttons to spare for these macro settings unfortunately

Similar Threads

  1. [Help Request] No recoil for g402 logitech
    By ricky122 in forum Rainbow Six: Siege Discussions & Help
    Replies: 9
    Last Post: 11-13-2019, 02:36 PM
  2. [Help] NO recoil or Macro for Logitech g402
    By mysterios29 in forum Rainbow Six: Siege Discussions & Help
    Replies: 6
    Last Post: 03-09-2019, 02:13 PM
  3. guys any Macro no-recoil for logitech that working?
    By Alexnoj in forum PUBG Discussions & Help
    Replies: 0
    Last Post: 03-07-2019, 02:24 PM
  4. [Unresolved] Latest no recoil for logitech G502 mouse
    By HKoKoOo in forum Counter-Strike 2 Help
    Replies: 3
    Last Post: 07-15-2017, 11:22 AM
  5. Black shot Global No Recoil Macros for Logitech
    By NeedHelpPles in forum Blackshot Help
    Replies: 3
    Last Post: 03-08-2017, 06:37 AM