Best logitech macro for your logitech mouse v1 (never detectable)

Posts 115 of 140 · Page 1 of 10
Best logitech macro for your logitech mouse v1 (never detectable)



today im gonna show you how to create your own logitech mouse macro, scripted by yourself.

i searched many norecoil macros on the internet but they are not for siege, so they are strange af and hard to use. i found a new method to script it for siege, using the Sleep() trick.

i dont wanna type too much now so i will update this thread soon.

i found a thread here which just used other games' macro

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 on
end
if (event == "MOUSE_BUTTON_PRESSED" and arg == 4) then
recoil = not recoil
spot = not spot
end
if (event == "MOUSE_BUTTON_PRESSED" and arg == 1 and recoil) then
if recoil then
repeat

MoveMouseRelative(-2, 5)
Sleep(10)
MoveMouseRelative(2, -5)
Sleep(21)

until not IsMouseButtonPressed(1)
end
end
end

what im using:

1. set a var called Sleeptime
2.Sleep(Sleeptime)
3. mousebtn7 pressed -> Sleeptime + 1 // increase recoil
4. mousebtn8 pressed -> Sleeptime - 1 // decrease recoil

I dont know wtf im saying now my head is fucking painful, sorry, i will edit these shits later.

example code for G402 mouse: ( probably wont work on other mouses except g402)

Code:
--variable definition
sleeptime = 25
btn7down = false
btn8down = false

nextlean = "right"

--func def

function booltostring(mybool)

	if mybool then

		return "true"

	else

		return "false"
	end	

end

function leanleft()

	PressAndReleaseKey("e") 
	Sleep(5)
	PressAndReleaseKey("q")
	Sleep(5)

end

function leanright()

	PressAndReleaseKey("q") 
	Sleep(5)
	PressAndReleaseKey("e")
	Sleep(5)


end




function OnEvent(event, arg)

	--initialization
	OutputLogMessage("event = %s, arg = %d\n", event, arg)

	-- profile intialization
	if (event == "PROFILE_ACTIVATED") then
	OutputLogMessage("profile activated! recoil sleeptime: " .. sleeptime .. "\n")
	EnablePrimaryMouseButtonEvents(true)
	elseif event == "PROFILE_DEACTIVATED" then
	ReleaseMouseButton(2) -- to prevent it from being stuck on
	end


	--check if btn7 and btn8 down


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

			btn7down = true

			--OutputLogMessage("btn7 :" .. booltostring(btn7down) .. "\n")


		end



		if (event == "MOUSE_BUTTON_RELEASED" and arg == 7 ) then

			btn7down = false
			--OutputLogMessage("btn7 :" .. booltostring(btn7down) .. "\n")

		end



		if (event == "MOUSE_BUTTON_PRESSED" and arg == 8 ) then

			btn8down = true

			--OutputLogMessage("btn8 :" .. booltostring(btn8down) .. "\n")


		end



		if (event == "MOUSE_BUTTON_RELEASED" and arg == 8 ) then

			btn8down = false
			--OutputLogMessage("btn8 :" .. booltostring(btn8down) .. "\n")

		end




	-- set recoil
		
		--btn8 to increase

		if (event == "MOUSE_BUTTON_PRESSED" and arg == 8 ) then   

			sleeptime = sleeptime - 1

			OutputLogMessage("current recoil:" .. sleeptime .. "\n")



		end


		--btn7 to decrease

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

			sleeptime = sleeptime + 1

			OutputLogMessage("current recoil:" .. sleeptime .. "\n")



		end


	--reset recoil



		if (event == "MOUSE_BUTTON_PRESSED" and arg == 8 and IsModifierPressed("alt")) then 


			
			sleeptime = 25

			OutputLogMessage("current recoil:" .. sleeptime .. "\n")


		end



		if (event == "MOUSE_BUTTON_PRESSED" and arg == 7 and IsModifierPressed("alt")) then 


			
			sleeptime = 25

			OutputLogMessage("current recoil:" .. sleeptime .. "\n")


		end





	--handle recoil

	if (event == "MOUSE_BUTTON_PRESSED" and arg == 1 and IsMouseButtonPressed(3)) then
		
		repeat

		
		MoveMouseRelative(0, 1)
		Sleep(sleeptime)


		until not IsMouseButtonPressed(1)
		
	end














	--lean tool


		--[[if (event == "MOUSE_BUTTON_PRESSED" and arg == 5) then   
		if IsMouseButtonPressed(5) then

			if nextlean == "right" then
	
				PlayMacro("leanleft")
				
				nextlean = "left"

			else
	
				PlayMacro("leanright")

				nextlean = "right"

			end

		end]]



--test

--[[btn5keydown = false

if (event == "MOUSE_BUTTON_PRESSED" and arg == 5) then   

btn5keydown = true

OutputLogMessage(booltostring(btn5keydown) .. "\n")

end




if (event == "MOUSE_BUTTON_RELEASED" and arg == 5) then  


btn5keydown = false

OutputLogMessage(booltostring(btn5keydown) .. "\n")

end

]]














end

how to use it :

press G8 button once to reduce recoil by 1
press G7 button once to increase recoil by 1
(test them in custom games)
(default recoil : 25)
Alt + G8 or Alt + G7 = reset recoil to 25

aim and shoot will activate it ( right mouse btn + left mouse btn pressed together)

there is a lot of trash code sorry.

this is the first version so i will continue improving it soon( like special recoil helper for suppressor )

Good bye im gonna sleep first











- - - Updated - - -

how to install it :

dl logitech gaming software , right click your profile icon, scripting, delete everycode there and paste the new one.

if you are using other logitech mouses, comment here i will customize the code for ya
Quote Originally Posted by Matheus Migliani View Post
i have g402
how to use this?
Bruh I wrote it. Use Logitech gaming software

- - - Updated - - -

Quote Originally Posted by mir47253 View Post
dude best one yet..thnk u so much..btw i am EaglEyes
<3
Wait I will diskord you I miss you so much
dude best one yet..thnk u so much..btw i am EaglEyes
<3
I'm going to buy Logitech G300S can u make this working on it ?
Quote Originally Posted by Ali Akbar View Post
I'm going to buy Logitech G300S can u make this working on it ?
Sure I can. Just tell me how you want to customise the btns
update : increase the sleeptime if you have higher sensitivity. ( in variable definition and reset)
Man do one for the G502, will be great
Quote Originally Posted by akaysama View Post
Man do one for the G502, will be great
Sure , what btns do you want to adjust the recoil? And what's your sensitivity?
Nvm, all this script does it to drag the mouse down. Not really no recoil. Tried with both g403 and g502(Which is the more advanced version of g402)
Quote Originally Posted by f00re View Post
Nvm, all this script does it to drag the mouse down. Not really no recoil. Tried with both g403 and g502(Which is the more advanced version of g402)
I don't get your meaning of 'advanced' . Even g900 loads scripts in same way

- - - Updated - - -

And btw this is what a macro does. Not hacking
Hello Buddy ..
So I Bought The G300s now i want u to make a favor for me and customize the buttons like this :

- G7 to increase the recoil
- G6 to decrease the recoil
- My Sensitivity : 40 - 40 - 50

and put in mind that i used G4 for gadget and G5 for PTT ..
Appreciate your work and waiting for you to response ..

Thanks
g300s
Quote Originally Posted by Ali Akbar View Post
Hello Buddy ..
So I Bought The G300s now i want u to make a favor for me and customize the buttons like this :

- G7 to increase the recoil
- G6 to decrease the recoil
- My Sensitivity : 40 - 40 - 50

and put in mind that i used G4 for gadget and G5 for PTT ..
Appreciate your work and waiting for you to response ..

Thanks


there you go.

event 7 = increase recoil
event 6 = decrease recoil
alt + event 7 = reset recoil
alt + event 6 = reset recoil

this might not fit you at first. (cuz we use different DPI )
after testing tell me if you want more default recoil or less ( the recoil set before you adjust it )

go to logitech gaming software, siege profile, script, file, import.

try both 50 and 25. they have different default recoil

sooner u may tell me the recoil you want for ash or jagger

then i can set : shift + g7 = ash recoil

shift + g6 = jagger recoil



Quote Originally Posted by Matheus Migliani View Post
i have g402
how to use this?



same for you ,

there you go.

event 7 = increase recoil
event 8 = decrease recoil
alt + event 7 = reset recoil
alt + event 8 = reset recoil

this might not fit you at first. (cuz we use different DPI )
after testing tell me if you want more default recoil or less ( the recoil set before you adjust it )

go to logitech gaming software, siege profile, script, file, import.

try both 50 and 25. they have different default recoil

sooner u may tell me the recoil you want for ash or jagger

then i can set : shift + g7 = ash recoil

shift + g8 = jagger recoil

g300s_mpgh.net.zip2 KB · 79 downloads Clean
g402_mpgh.net.zip2 KB · 110 downloads Clean
Hi, Possible for Logitech G502 Proteus Spectrum ? Thanks
Quote Originally Posted by face100 View Post
Hi, Possible for Logitech G502 Proteus Spectrum ? Thanks
gimme the G key you wanna increase, decrease recoil

- - - Updated - - -



try this, same with g402, i think g7 g8 is the best btn for it
g502 ( same with g402)_mpgh.net.zip2 KB · 260 downloads Clean
Posts 115 of 140 · Page 1 of 10

Post a Reply

Similar Threads

Tags for this Thread

None

Need help?