Register for your free account! | Forgot your password?

You last visited: Today at 13:28

  • Please register to post and access all features, it's quick, easy and FREE!

 

Logitech Macro Layouts

Reply
 
Old   #1
 
elite*gold: 125
Join Date: Nov 2008
Posts: 80
Received Thanks: 10
Logitech Macro Layouts

Layout 1
Code:
function OnEvent(event, arg)
    OutputLogMessage("event = %s, arg = %d\n", event, arg)
    if (event == "PROFILE_ACTIVATED") then
        EnablePrimaryMouseButtonEvents(true)
    elseif event == "PROFILE_DEACTIVATED" then
        ReleaseMouseButton(2)  -- to prevent it from being
                               -- stuck(suck) on give a fuck ^^ ;)
end

if (event == "MOUSE_BUTTON_PRESSED" and arg == 7) then
        recoil = not recoil

    else if (event == "MOUSE_BUTTON_PRESSED" and arg == 11) then
        recoilhard = not recoilhard

    end

    if event == "MOUSE_BUTTON_PRESSED" and arg == 1 and recoil then
        if recoil then
            repeat
                Sleep(60)
                MoveMouseRelative(0, 35)                
                Sleep(60)
                MoveMouseRelative(0, 35)
-- VSS Unmodded
            until not IsMouseButtonPressed(1)
end

    else if event == "MOUSE_BUTTON_PRESSED" and arg == 1 and recoilhard then
        if recoilhard then
            repeat
                Sleep(60)
                MoveMouseRelative(0, 31)                
                Sleep(60)
                MoveMouseRelative(0, 31)
-- General

                until not IsMouseButtonPressed(1)
                              
        end
    end
end
end
end
Layout 2
Code:
function OnEvent(event, arg)
    OutputLogMessage("event = %s, arg = %s\n", event, arg)
end
    local recoil = false local aim = false
     sleep_duration = 66
     MaxBreak = 200
     TimeStamp = -MaxBreak-1    -- it's negative 2 seconds
     recoil_coords1 = {
         { x = 18, y = 27 },        
         { x = 16, y = 38 },        
         { x = -16, y = 38 },        
         { x = -28, y = 33 },        
         { x = -26, y = 58 },
         { x = 30, y = 38 },        
         { x = 30, y = -36 },        
         { x = 38, y = 58 },                             
         }
recoil_count = # recoil_coords1
     LastIndex = 1

sleep_duration2 = 66     
recoil_coords = {
         { x = 0, y = 50 },        
         { x = 0, y = 50 },        
         { x = 0, y = 50 },        
         { x = -28, y = 33 },        
         { x = -26, y = 58 },
         { x = 30, y = 38 },        
         { x = 30, y = -36 },        
         { x = 38, y = 58 },                             
     }
     recoil_count = # recoil_coords
     LastIndex = 1
     function OnEvent(event, arg)    
         if event == "PROFILE_ACTIVATED" then
             EnablePrimaryMouseButtonEvents(true)
         end
     
     
         
         if (event == "MOUSE_BUTTON_PRESSED" and arg == 11) then
             recoil1 = not recoil1 
             if (recoil1 == false) then
                 OutputLogMessage("RecoilScript turned OFF AK\n")
             else 
                 OutputLogMessage("RecoilScript turned ON AK\n")
     end
       else if (event == "MOUSE_BUTTON_PRESSED" and arg == 10) then
             recoil2 = not recoil2 
             if (recoil2 == false) then
                 OutputLogMessage("RecoilScript turned OFF\n")
             else 
                 OutputLogMessage("RecoilScript turned ON\n")
             end


            else if (event == "MOUSE_BUTTON_PRESSED" and arg == 7) then
            recoilhard = not recoilhard
     end
         
     
     
         if (event == "MOUSE_BUTTON_PRESSED" and arg == 1) and recoil1  then
                          
             if (GetRunningTime() - TimeStamp < MaxBreak) and (LastIndex <= recoil_count) then
                 i = LastIndex
             else
                 i = 1
             end
             while i <= recoil_count do
                 Sleep(sleep_duration)
                 if not IsMouseButtonPressed(1) then
                     LastIndex = i
                     TimeStamp = GetRunningTime()
                     break
                 end
                 MoveMouseRelative( recoil_coords1[i].x, recoil_coords1[i].y )
                 if not IsMouseButtonPressed(1) then break end
                 i = i + 1
             end

        else if (event == "MOUSE_BUTTON_PRESSED" and arg == 1) and recoil2  then
                          
             if (GetRunningTime() - TimeStamp < MaxBreak) and (LastIndex <= recoil_count) then
                 i = LastIndex
             else
                 i = 1
             end
             while i <= recoil_count do
                 Sleep(sleep_duration2)
                 if not IsMouseButtonPressed(1) then
                     LastIndex = i
                     TimeStamp = GetRunningTime()
                     break
                 end
                 MoveMouseRelative( recoil_coords[i].x, recoil_coords[i].y )
                 if not IsMouseButtonPressed(1) then break end
                 i = i + 1
             end
          
            else if event == "MOUSE_BUTTON_PRESSED" and arg == 1 and recoilhard then
            if recoilhard then
            repeat
                Sleep(60)
                MoveMouseRelative(0, 35)                
                Sleep(60)
                MoveMouseRelative(0, 35)

                until not IsMouseButtonPressed(1)
             end

         end
     end 
end
end
end
end
Feel free to post your own..



hannes93 is offline  
Thanks
1 User
Old   #2
 
elite*gold: 0
Join Date: Dec 2009
Posts: 1
Received Thanks: 0
how to use it sir


dhiedotz is offline  
Old   #3
 
elite*gold: 0
Join Date: Dec 2012
Posts: 28
Received Thanks: 3
For what weapon is that macro for? I don't get it.
S0nY__ is offline  
Reply

Tags
macro, pubg



« Previous Thread | Next Thread »

Similar Threads
Logitech X-530 oder Logitech Z506?
^ Topic Hier das erste: Logitech X-530 5.1 PC-Lautsprechersystem: Amazon.de: Computer & Zubehör hier das zweite: Logitech Z506 5.1...
3 Replies - Hardware Discussions / Questions
S4 League Reload Cancel Macro Logitech Timing
Hello, I am looking for a "macro" to pass the reload cancel. I do not want a bot but a "macro" for mouse. I use the software "Logitech" gaming mouse...
11 Replies - S4 League
Logitech G110 keyboard macro
b4 admins swap this , this rly is AL related so when i set up the macro everything is good i can edit stuff in the profiler but when i launch AL...
15 Replies - Archlord



All times are GMT +1. The time now is 13:28.


Powered by vBulletin®
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Abuse
Copyright ©2017 elitepvpers All Rights Reserved.