Logitech Macros and Scripts

Posts 3145 of 97 · Page 3 of 7
Is it still works for the new update ?? White noise
is it possible to have Rapid fire just by clicking left click?
Yes, but you have to edit the script
Anyone can help me ? h t t p s : / / i m g u r . c o m / a / u G R N y
Guys, help me please!!!

how to changw this script:
Code:
--variable definition
sleeptime = 18
btn7down = false
btn8down = false


--func def

function booltostring(mybool)

	if mybool then

		return "true"

	else

		return "false"
	end	

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 == 10 ) then

			btn7down = true

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


		end



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

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

		end



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

			btn8down = true

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


		end



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

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

		end

	


	
























	-- set recoil
		
		--btn8 to increase

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

			sleeptime = sleeptime - 0

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



		end


		--btn7 to decrease

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

			sleeptime = sleeptime + 0

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



		end


	--reset recoil



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


			
			sleeptime = 18

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


		end



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


			
			sleeptime = 18

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


		end





	--handle recoil

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

		

		MoveMouseRelative(9, -25)
		Sleep(sleeptime)

		MoveMouseRelative(-9, 25)
		Sleep(sleeptime)

		until not IsMouseButtonPressed(1)
		
	end













end
how to get in this script rapidfire by single pressing to set ON/OFF rapid fire????


it is possible?
Quote Originally Posted by LLIAMAH View Post
Guys, help me please!!!

how to changw this script:
Code:
--variable definition
sleeptime = 18
btn7down = false
btn8down = false


--func def

function booltostring(mybool)

	if mybool then

		return "true"

	else

		return "false"
	end	

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 == 10 ) then

			btn7down = true

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


		end



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

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

		end



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

			btn8down = true

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


		end



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

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

		end

	


	
























	-- set recoil
		
		--btn8 to increase

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

			sleeptime = sleeptime - 0

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



		end


		--btn7 to decrease

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

			sleeptime = sleeptime + 0

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



		end


	--reset recoil



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


			
			sleeptime = 18

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


		end



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


			
			sleeptime = 18

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


		end





	--handle recoil

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

		

		MoveMouseRelative(9, -25)
		Sleep(sleeptime)

		MoveMouseRelative(-9, 25)
		Sleep(sleeptime)

		until not IsMouseButtonPressed(1)
		
	end













end
how to get in this script rapidfire by single pressing to set ON/OFF rapid fire????


it is possible?
yes its possible
please help...

anything i've paste in this script... it says ERROR LINE
Quote Originally Posted by ahiddenmessi View Post
yes its possible
but how???
yea no idea
Mouse using?
Quote Originally Posted by ******013 View Post
cant get it to work how do i activate it i have g300s
I have the g300s aswell, works perfectly just follow instructions carefully

- - - Updated - - -

Quote Originally Posted by Ali Akbar View Post
Is it still works for the new update ?? White noise
Yes, still works fine, not sure about the pistols since there is a new recoil pattern but for me it still works good
Gonna try this, looks promosing.
Press the 5th Mousebutton and "alt" to switch the "Rapidfire" function on or off.
When you turn on the function you Need to press the 4th Mousebutton to make it run.
To stop the rapidfire function press the "shift" Button (it shoots automatically)

can you change it to HOLD mouse button 1 to make it run instead of auto firing?
ur the best :v
How i use it on Cooler Master's MM530,how to port it to Cooler Master Portal?
Posts 3145 of 97 · Page 3 of 7

Post a Reply

Similar Threads

Tags for this Thread

None

Need help?