How do i add this script to my mouse?
- - - Updated - - -
How do i add this script into my mouse?
- - - Updated - - -
How do i add this script into my mouse?
Hey all,
After reading through the comments and seeing alot of questions about mouse compatibility I will throw this out there real quick. I have tested this with three different Logitech products and here are my findings.
Logitech G203 Prodigy - works great and also works with the 4x and 8x with very little changes.
Logitech G402 Hyperion - works great as well although the 4x scope does have some issues with jumping left or right depending on the lean, not sure why as it is the same setup as above.
Logitech G600 - works great but not the ideal mouse for a fps/tps, like.... it was so bad for what I am used to that I had a hard time getting a kill even with the reduced recoil. (Personal opinion, some people may prefer)
So what I gather is that it pretty much works for any logitech gaming mouse but like everyrhing the code is setup for preference and does require some tweaking.
That being said if you are still unsure just PM me your mouse and I will test your model.
*edit* works with Death Adder Chroma
*edit* DOES NOT work with 320c
hey wondering how you did it since u cant use any scripts with razer mice
Did anyone get it to work with 4x or 8x?
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
--Sleep(35)
Sleep(8)
MoveMouseRelative(0, 2)
until not IsMouseButtonPressed(1)
end
end
if (event == "MOUSE_BUTTON_PRESSED" and arg == 5) then
recoil = not recoil
spot = not spot
end
if (event == "MOUSE_BUTTON_PRESSED" and arg == 1 and recoil) then
if recoil then
repeat
--Sleep(35)
Sleep(8)
MoveMouseRelative(0, 6)
Sleep(8)
MoveMouseRelative(-2, 4)
until not IsMouseButtonPressed(1)
end
end
end
My mouse does nothing with the script? I am using a G502 Proteus Spectrum.
Here's my setup:
Somehow when I attempt to toggle it with Mouse 4 or any other ARG it does nothing. Mouse doesn't move.
Anyone know about this?
I have the profile enabled by default and persistent.
MoveMouseToVirtual functions.
MoveMouseRelative doesnt...
Searching online doesn't give much information. I tried with that simple script to no avail.
function OnEvent(event, arg)
OutputLogMessage("event = %s, arg = %s\n", event, arg)
if event == "PROFILE_ACTIVATED" then
EnablePrimaryMouseButtonEvents(true);
end
if (event == "MOUSE_BUTTON_PRESSED" and arg == 5) then
repeat
MoveMouseRelative (20,10)
Sleep(60)
until not IsMouseButtonPressed(1)
end
end
![]()
Last edited by LordAzuRa; 06-17-2017 at 05:07 PM.
Alguien me podrķa ayudar, xq me sale un error al cargar ese Script.
y que me esplique bien como configurarlo en battlefield 3, desde ya gracias.
Someone could help me, xq I get an error loading that script.
And that I splice well how to configure it in battlefield 3, from now thank you
Even though i C+P your scripts. I can't use it. Its not working. haha. I hope someone will help us all.
To make it work you must disable of one of other to make it work:
For example: if "MB4" activate, to make MB5 work you must press MB4 again to disable it.
and your code had a little conflict. Look at the word "recoil" I added recoilx2 for MB4 and recoilx4 for MB5.
Hope it help.
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 recoilx2 = not recoilx2 spot = not spot end if (event == "MOUSE_BUTTON_PRESSED" and arg == 1 and recoilx2) then if recoilx2 then repeat --Sleep(8) Sleep(8) MoveMouseRelative(0, 2) until not IsMouseButtonPressed(1) end end if (event == "MOUSE_BUTTON_PRESSED" and arg == 5) then recoilx4 = not recoilx4 spot = not spot end if (event == "MOUSE_BUTTON_PRESSED" and arg == 1 and recoilx4) then if recoilx4 then repeat --Sleep(8) Sleep(8) MoveMouseRelative(0, 6) Sleep(8) MoveMouseRelative(8, 0) Sleep(8) MoveMouseRelative(-8, 0) Sleep(8) MoveMouseRelative(0, 6) until not IsMouseButtonPressed(1) end end end
Last edited by asscold1; 06-20-2017 at 11:37 PM.
Я прошу помощи !!! подскажи какая в игре должна быть чувствительность ? а так же в Windows и конечно dpi мышки,очень хочу правильно все настроить ! отдельное спасибо за такую хорошую работу !!!
I ask for help !!! Tell me what the game should be sensitivity? As well as in Windows and of course dpi mice, I really want to set everything up correctly! Special thanks for such a good job !!!