boy (10-04-2017),dasmer998 (10-23-2017),kiki563308 (10-04-2017),OkieDokie:D (02-27-2018),zyrazi (10-13-2017)
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
boy (10-04-2017),dasmer998 (10-23-2017),kiki563308 (10-04-2017),OkieDokie:D (02-27-2018),zyrazi (10-13-2017)
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 ?
update : increase the sleeptime if you have higher sensitivity. ( in variable definition and reset)
Man do one for the G502, will be great
niqqaforever (01-29-2019)
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)
Last edited by f00re; 10-09-2017 at 11:38 AM.
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
Last edited by Ali Akbar; 10-10-2017 at 12:57 PM. Reason: adding a note
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
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
Last edited by ahiddenmessi; 10-11-2017 at 07:40 AM.
1150ny (01-27-2018),akaysama (10-11-2017),bf1xxx (11-28-2017),code1391 (02-28-2018),cykablyat1998 (06-17-2020),dimabuhna1996 (03-23-2019),haxorleet (08-16-2018),huge223029 (01-08-2018),katerin (05-13-2020),mangmum (08-17-2020),mckoy1925 (01-30-2018),momyxx (09-06-2019),promo123 (05-22-2018),saolusb (11-26-2017),smegol-noob (11-17-2017),zenvox (01-05-2018),zhz950107 (10-28-2017)
Hi, Possible for Logitech G502 Proteus Spectrum ? Thanks
AHITMAN (11-15-2017),akaysama (10-11-2017),alfredogb (03-22-2018),Allen Smithee (12-17-2017),Apex777 (08-14-2018),bard.exe (04-26-2018),DePemy (11-15-2017),Dobrido (11-13-2017),face100 (10-11-2017),harliem (08-25-2018),Jeander (11-29-2017),johan87 (08-12-2020),Kvothe-_- (11-26-2017),lorexa (11-23-2017),Me Gusta (10-23-2017),momyxx (09-06-2019),PauloPaulo123 (10-11-2017),pazze_X (10-21-2017),pkdauto (03-20-2018),shiuan (07-27-2019),VCloud (08-14-2018)