Logitech Macro Simple Norecoil

Posts 3145 of 46 · Page 3 of 4
still working?
is it still working? and what are the risks of getting banned?
Does this macro still work ?
this one only goes down, is there one with a sequence, so lets say RAM-7 weapon goes up then right so we need a sequence that goes down and left.

I can't make it go down and then left, its either all left or all down.

let me know.

also this one is my simple go down method:

--################################################## ################################################## ####
-- werther$ script collection
--################################################## ################################################## ####

--------------------------------------------------------------------------
---------------- how does it work? ---------------------------------------
--------------------------------------------------------------------------

--toggling the script STANDARD settings
----numlock
------enable / disable norecoil settings on the fly
--------basically every scipt is still working, it just stops pulling your mouse down
----scrollock
------toggle legit mode on / off

--legit mode settings
----if legit mode is activated, every action has a different sleep value, meaning the inputs aren't exact, thus legit
------lets say legit_mode_percent is 40
------in the script a button is pressed for 50ms (sleep value)
------the sleep value is changed to a random value between 50 and 50*1.40
--------instead of the mouse button being pressed for 50ms every time, it is pressed for a random value is generated between 50ms and 70ms
----this affectes pretty much every action in this script, including norecoil and how much the mouse is being pulled down
---->why would you even have a script if the numbers are random anyway
-------because it is not as unreliable as you think. especially if the the legit_mode_percent is really low

--norecoil
----hold down right mouse button
----press / hold left mouse button
------"q" is being pressed 1 time for battlefield tagging
--------this means that the next action is being delayed because of the sleep value
------depending on the settings, your mouse is pulled down
--------the lower the settings, the more legit and smoother it looks

--rapid fire
----hold down right mouse button
----press / hold left mouse4
------mouse 1 is being spammed
------depending on the settings, your mouse is pulled down
--------the lower the settings, the more legit and smoother it looks

--burst
----hold down right mouse button
----press / hold left mouse5
------mouse 1 is pushed for the configured time
------a delay sets in, causing the recoil to fall back
------repeat

--quickscope
-----press mouse5
-------mouse 2 and shift is pressed
-------delays for the set time
-------if it is released then it shoots and then resets itself

--------------------------------------------------------------------------
---------------- settings ------------------------------------------------
--------------------------------------------------------------------------

--scripttoggle settings to enable /disable the script on the fly
----setting to enable to toggle the script on the fly, if false, it will always be on
local scripttoggle = true
local scripttoggle_key = "numlock" --press this button to toggle the script

----legit mode settings
local legit_mode_toggle=true
local legit_mode_toggle_key="scrolllock"
local legit_mode=true
local legit_mode_percent=40
local legit_mode_percent_burst=10
local legit_mode_percent_quickscope=5

--basic setting, how long the left mousebutton is pressed
local lmouse_press =1

--norecoil settings
----disclaimer: since it only pulls your mouse down, it probably won't negate recoil perfectly
----it only pulls your mouse down if
------LEFT MOUSE is held down
------RIGHT MOUSE is pressed
----play around with these settings until perfect.
local no_recoil = 2 --how much the mouse is pulled down
local no_recoil_sleep = 50 --interval between how often the mouse gets pulled down
local no_recoil_predelay = 0 --change this if you only want to activate it after a certain amount of ms

local rapid_fire = 0 --how much the mouse is being pulled down while rapid fire
local rapid_fire_sleep = 40 --delay between every shot

local perfectburst_press = 150 --how long the the burst lasts
local perfectburst_sleep = 200 --delay between bursts

--dont touch these
local in_quickscope = 0
local in_scope = true

--quickscope settings
local quickscope_sleep = 250

--dont touch these
local in_quickscope = 0
local in_scope = true


--------------------------------------------------------------------------
---------------- functions -----------------------------------------------
--------------------------------------------------------------------------


function get_random(arg, rand)
local random_percentage=(100 + rand)/100
local result = math.random(arg, arg * random_percentage)
OutputLogMessage(result)
OutputLogMessage("\n")
return result
end

function norecoil()
--Automated tagging in Battlefield
----Remove PressKey and ReleaseKey to disable
--R PressKey("Q")
-- Sleep(no_recoil_predelay)
-- ReleaseKey("Q")

if(legit_mode==true)then
repeat
MoveMouseRelative(0,get_random(no_recoil, legit_mode_percent))
Sleep(get_random(no_recoil_sleep, legit_mode_percent))
until not IsMouseButtonPressed(1)
else
repeat
MoveMouseRelative(0,no_recoil)
Sleep(no_recoil_sleep)
until not IsMouseButtonPressed(1)
end
end

function rapidfire()
if(legit_mode==false)then
repeat
PressMouseButton(1)
Sleep(lmouse_press)
ReleaseMouseButton(1)
MoveMouseRelative(0,rapid_fire)
Sleep(rapid_fire_sleep)
until not IsMouseButtonPressed(4)
else
repeat
PressMouseButton(1)
Sleep(get_random(lmouse_press, legit_mode_percent))
ReleaseMouseButton(1)
MoveMouseRelative(0,get_random(rapid_fire, legit_mode_percent))
Sleep(get_random(rapid_fire_sleep, legit_mode_percent))
until not IsMouseButtonPressed(4)
end
end

function perfectburst()
if(legit_mode==false)then
repeat
PressMouseButton(1)
Sleep(perfectburst_press)
ReleaseMouseButton(1)
Sleep(perfectburst_sleep)
until not IsMouseButtonPressed(5)
else
repeat
PressMouseButton(1)
Sleep(get_random(perfectburst_press, legit_mode_percent/5))
ReleaseMouseButton(1)
Sleep(get_random(perfectburst_sleep, legit_mode_percent/5))
until not IsMouseButtonPressed(5)
end
end

--------------------------------------------------------------------------
----------------OnEvent---------------------------------------------------
--------------------------------------------------------------------------

function OnEvent(event, arg)
if (IsKeyLockOn(scripttoggle_key) == false and scripttoggle) then
EnablePrimaryMouseButtonEvents(false)
else
EnablePrimaryMouseButtonEvents(true)
end

--legit_mode_toggle
if (IsKeyLockOn(legit_mode_toggle_key)) then
legit_mode=true
else
legit_mode=false
end

--function to check if mouse button 2 is pressed. necessary for quickscope and logging
if (event == "MOUSE_BUTTON_PRESSED" and arg == 2) then
ClearLog()

if(legit_mode) then

OutputLogMessage("legit mode enabled")
OutputLogMessage("\n")
end

in_scope = true
OutputLogMessage("in_scope: ")
OutputLogMessage(tostring(in_scope))
OutputLogMessage("\n")
end
if (event == "MOUSE_BUTTON_RELEASED" and arg == 2) then

in_scope = false
OutputLogMessage("in_scope: ")
OutputLogMessage(tostring(in_scope))
OutputLogMessage("\n")
end

--No Recoil Script and in_scope == true
if (IsMouseButtonPressed(1)) then
OutputLogMessage("no recoil; ")
norecoil()

--Rapid Fire Script
else if (IsMouseButtonPressed(4)) then
OutputLogMessage("rapid fire")
rapidfire()

--Perfect Burst
else if IsMouseButtonPressed(5) and in_scope==true then
OutputLogMessage("perfect burst")
perfectburst()
end
end
end

--(Quick) Scope
if (in_scope == false and event == "MOUSE_BUTTON_PRESSED" and arg == 5) then
ClearLog()
in_quickscope = 1
OutputLogMessage("quickscope in: ")
OutputLogMessage(in_quickscope)
PressMouseButton(3)
if(legit_mode) then Sleep(get_random(quickscope_sleep, legit_mode_percent_quickscope))
else Sleep(250) end
PressKey("lshift")
else if (event == "MOUSE_BUTTON_RELEASED" and arg == 5 and not in_scope and IsKeyLockOn("numlock")) then
PressMouseButton(1)
Sleep(lmouse_press)
ReleaseMouseButton(1)

ReleaseMouseButton(3)
ReleaseKey("lshift")
OutputLogMessage("quickscope out \n")
OutputLogMessage("\n \n")
in_quickscope=0
end
end
end

you can edit to your liking

- - - Updated - - -

this one only goes down, is there one with a sequence, so lets say RAM-7 weapon goes up then right so we need a sequence that goes down and left.

I can't make it go down and then left, its either all left or all down.

let me know.

- - - Updated - - -

you don't get banned no, been using this for months
Quote Originally Posted by seamaster11031 View Post
this one only goes down, is there one with a sequence, so lets say RAM-7 weapon goes up then right so we need a sequence that goes down and left.

I can't make it go down and then left, its either all left or all down.

let me know.

also this one is my simple go down method:

--################################################## ################################################## ####
-- werther$ script collection
--################################################## ################################################## ####

--------------------------------------------------------------------------
---------------- how does it work? ---------------------------------------
--------------------------------------------------------------------------

--toggling the script STANDARD settings
----numlock
------enable / disable norecoil settings on the fly
--------basically every scipt is still working, it just stops pulling your mouse down
----scrollock
------toggle legit mode on / off

--legit mode settings
----if legit mode is activated, every action has a different sleep value, meaning the inputs aren't exact, thus legit
------lets say legit_mode_percent is 40
------in the script a button is pressed for 50ms (sleep value)
------the sleep value is changed to a random value between 50 and 50*1.40
--------instead of the mouse button being pressed for 50ms every time, it is pressed for a random value is generated between 50ms and 70ms
----this affectes pretty much every action in this script, including norecoil and how much the mouse is being pulled down
---->why would you even have a script if the numbers are random anyway
-------because it is not as unreliable as you think. especially if the the legit_mode_percent is really low

--norecoil
----hold down right mouse button
----press / hold left mouse button
------"q" is being pressed 1 time for battlefield tagging
--------this means that the next action is being delayed because of the sleep value
------depending on the settings, your mouse is pulled down
--------the lower the settings, the more legit and smoother it looks

--rapid fire
----hold down right mouse button
----press / hold left mouse4
------mouse 1 is being spammed
------depending on the settings, your mouse is pulled down
--------the lower the settings, the more legit and smoother it looks

--burst
----hold down right mouse button
----press / hold left mouse5
------mouse 1 is pushed for the configured time
------a delay sets in, causing the recoil to fall back
------repeat

--quickscope
-----press mouse5
-------mouse 2 and shift is pressed
-------delays for the set time
-------if it is released then it shoots and then resets itself

--------------------------------------------------------------------------
---------------- settings ------------------------------------------------
--------------------------------------------------------------------------

--scripttoggle settings to enable /disable the script on the fly
----setting to enable to toggle the script on the fly, if false, it will always be on
local scripttoggle = true
local scripttoggle_key = "numlock" --press this button to toggle the script

----legit mode settings
local legit_mode_toggle=true
local legit_mode_toggle_key="scrolllock"
local legit_mode=true
local legit_mode_percent=40
local legit_mode_percent_burst=10
local legit_mode_percent_quickscope=5

--basic setting, how long the left mousebutton is pressed
local lmouse_press =1

--norecoil settings
----disclaimer: since it only pulls your mouse down, it probably won't negate recoil perfectly
----it only pulls your mouse down if
------LEFT MOUSE is held down
------RIGHT MOUSE is pressed
----play around with these settings until perfect.
local no_recoil = 2 --how much the mouse is pulled down
local no_recoil_sleep = 50 --interval between how often the mouse gets pulled down
local no_recoil_predelay = 0 --change this if you only want to activate it after a certain amount of ms

local rapid_fire = 0 --how much the mouse is being pulled down while rapid fire
local rapid_fire_sleep = 40 --delay between every shot

local perfectburst_press = 150 --how long the the burst lasts
local perfectburst_sleep = 200 --delay between bursts

--dont touch these
local in_quickscope = 0
local in_scope = true

--quickscope settings
local quickscope_sleep = 250

--dont touch these
local in_quickscope = 0
local in_scope = true


--------------------------------------------------------------------------
---------------- functions -----------------------------------------------
--------------------------------------------------------------------------


function get_random(arg, rand)
local random_percentage=(100 + rand)/100
local result = math.random(arg, arg * random_percentage)
OutputLogMessage(result)
OutputLogMessage("\n")
return result
end

function norecoil()
--Automated tagging in Battlefield
----Remove PressKey and ReleaseKey to disable
--R PressKey("Q")
-- Sleep(no_recoil_predelay)
-- ReleaseKey("Q")

if(legit_mode==true)then
repeat
MoveMouseRelative(0,get_random(no_recoil, legit_mode_percent))
Sleep(get_random(no_recoil_sleep, legit_mode_percent))
until not IsMouseButtonPressed(1)
else
repeat
MoveMouseRelative(0,no_recoil)
Sleep(no_recoil_sleep)
until not IsMouseButtonPressed(1)
end
end

function rapidfire()
if(legit_mode==false)then
repeat
PressMouseButton(1)
Sleep(lmouse_press)
ReleaseMouseButton(1)
MoveMouseRelative(0,rapid_fire)
Sleep(rapid_fire_sleep)
until not IsMouseButtonPressed(4)
else
repeat
PressMouseButton(1)
Sleep(get_random(lmouse_press, legit_mode_percent))
ReleaseMouseButton(1)
MoveMouseRelative(0,get_random(rapid_fire, legit_mode_percent))
Sleep(get_random(rapid_fire_sleep, legit_mode_percent))
until not IsMouseButtonPressed(4)
end
end

function perfectburst()
if(legit_mode==false)then
repeat
PressMouseButton(1)
Sleep(perfectburst_press)
ReleaseMouseButton(1)
Sleep(perfectburst_sleep)
until not IsMouseButtonPressed(5)
else
repeat
PressMouseButton(1)
Sleep(get_random(perfectburst_press, legit_mode_percent/5))
ReleaseMouseButton(1)
Sleep(get_random(perfectburst_sleep, legit_mode_percent/5))
until not IsMouseButtonPressed(5)
end
end

--------------------------------------------------------------------------
----------------OnEvent---------------------------------------------------
--------------------------------------------------------------------------

function OnEvent(event, arg)
if (IsKeyLockOn(scripttoggle_key) == false and scripttoggle) then
EnablePrimaryMouseButtonEvents(false)
else
EnablePrimaryMouseButtonEvents(true)
end

--legit_mode_toggle
if (IsKeyLockOn(legit_mode_toggle_key)) then
legit_mode=true
else
legit_mode=false
end

--function to check if mouse button 2 is pressed. necessary for quickscope and logging
if (event == "MOUSE_BUTTON_PRESSED" and arg == 2) then
ClearLog()

if(legit_mode) then

OutputLogMessage("legit mode enabled")
OutputLogMessage("\n")
end

in_scope = true
OutputLogMessage("in_scope: ")
OutputLogMessage(tostring(in_scope))
OutputLogMessage("\n")
end
if (event == "MOUSE_BUTTON_RELEASED" and arg == 2) then

in_scope = false
OutputLogMessage("in_scope: ")
OutputLogMessage(tostring(in_scope))
OutputLogMessage("\n")
end

--No Recoil Script and in_scope == true
if (IsMouseButtonPressed(1)) then
OutputLogMessage("no recoil; ")
norecoil()

--Rapid Fire Script
else if (IsMouseButtonPressed(4)) then
OutputLogMessage("rapid fire")
rapidfire()

--Perfect Burst
else if IsMouseButtonPressed(5) and in_scope==true then
OutputLogMessage("perfect burst")
perfectburst()
end
end
end

--(Quick) Scope
if (in_scope == false and event == "MOUSE_BUTTON_PRESSED" and arg == 5) then
ClearLog()
in_quickscope = 1
OutputLogMessage("quickscope in: ")
OutputLogMessage(in_quickscope)
PressMouseButton(3)
if(legit_mode) then Sleep(get_random(quickscope_sleep, legit_mode_percent_quickscope))
else Sleep(250) end
PressKey("lshift")
else if (event == "MOUSE_BUTTON_RELEASED" and arg == 5 and not in_scope and IsKeyLockOn("numlock")) then
PressMouseButton(1)
Sleep(lmouse_press)
ReleaseMouseButton(1)

ReleaseMouseButton(3)
ReleaseKey("lshift")
OutputLogMessage("quickscope out \n")
OutputLogMessage("\n \n")
in_quickscope=0
end
end
end

you can edit to your liking

- - - Updated - - -

this one only goes down, is there one with a sequence, so lets say RAM-7 weapon goes up then right so we need a sequence that goes down and left.

I can't make it go down and then left, its either all left or all down.

let me know.

- - - Updated - - -

you don't get banned no, been using this for months
this script is for BF4 and I don't think it will work for COD WZ
I need help
Hello, excuse a question, why does it happen to me that on the desktop the script works perfectly for me but within the game it only works for me if I click by click and not keeping the left button pressed? Thanks
Quote Originally Posted by liric0fff View Post
Hello, excuse a question, why does it happen to me that on the desktop the script works perfectly for me but within the game it only works for me if I click by click and not keeping the left button pressed? Thanks
Try changing the pre-delay variable like to this?

local no_recoil_predelay = 20
How can I activate or deactivate it with the keyboard?
This is so smart, I would never have thought about using simple macros to compensate recoil. Thanks I will try to make one that fits to my setup.
Thank you
I will try after this, very hope i can do it
Posts 3145 of 46 · Page 3 of 4

Post a Reply

Similar Threads

Tags for this Thread

None

Need help?