trigger_2309 (05-23-2020)
I belive is related to function call of MoveMouseRelative
from docs
Code:MoveMouseRelative The MoveMouseRelative() function is used to simulate relative mouse movement. NOTE: Calling GetMousePosition immediately afterwards, will likely return the previous state. It will take a few milliseconds for the operation to complete. MoveMouseRelative( x, y, ) Parameters x Movement along the x-axis Y Movement along the y-axis Return Values nil Remarks Positive x values simulate movement to right. Negative x values simulate movement to left. Positive y values simulate movement downwards. Negative y values simulate movement upwards. Example -- Simulate relative mouse movement upwards in 1 pixel increments for i = 0, 50 do MoveMouseRelative(0, -1) Sleep(8) end
trigger_2309 (05-23-2020)
What am I supposed to do with this text? Where do I put it? What program? I have a Logitech mouse. An explanation would be nice.
edit: nvm I found out
Last edited by vacmeister0; 05-24-2020 at 04:04 AM.
can you share us your setting?
just tried but notice nothing difference.
am i missing something?
and the script writing should i follow the spacing just like the one in your txt or move everything to the left like the one on this below?
sorry i'm just new to this.
i would be really helpful if you can share the LUA file
a lot of thanks!
EnablePrimaryMouseButtonEvents(true);
function OnEvent(event, arg)
if IsKeyLockOn("numlock" )then
if IsMouseButtonPressed(3)then
repeat
if IsMouseButtonPressed(1) then
repeat
--right
MoveMouseRelative(1,10)
Sleep(40)
--left
MoveMouseRelative(-1, 0)
Sleep(40)
until not IsMouseButtonPressed(1)
end
until not IsMouseButtonPressed(3)
end
end
end
isn't working for me, using it in lg hub with g pro mouse modern warfare. what do you mean by press left? left arrow?
how do i know if its active? doesn't do anything for me
[img]https://i1010.photobucke*****m/albums/af225/M-1103/popsingh.jpg[/img]
yes numlock on
edit: will be so greatful if someone can give me a tutorial, my script seems to load but my recoil seems to be not changed at all
Tested with num on and off
Last edited by popsingh123; 06-01-2020 at 03:35 AM.
[img]https://i1010.photobucke*****m/albums/af225/M-1103/popsingh.jpg[/img]
if you change the values on the right side it with go up and down
the values on the left for right and left
Example (0,0)
(-1,2) <---- the first number has to be minus or 0
this will make it do down and left but
if you want it down and right......
(1,0)
(0,2)
if you don't want it to go down change value "2" to 0
change values more or less
got it to work ingame but my cursor doesn't go down when im holding the fire button, it only goes down by 1 unit instead of keep going down when im holding the fire button
[img]https://i1010.photobucke*****m/albums/af225/M-1103/popsingh.jpg[/img]
which script you using? try this one.... its forward on the side of the mouse to active and deactivate
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)
end
if (event == "MOUSE_BUTTON_PRESSED" and arg == 5) then -- 3 = G3
recoil = not recoil
spot = not spot
end
if (event == "MOUSE_BUTTON_PRESSED" and arg == 1 and recoil) then -- 1 = G1
if recoil then
repeat
-- right
MoveMouseRelative(0,0)
Sleep(15)
-- left
MoveMouseRelative(-1, 2)
Sleep(15)
until not IsMouseButtonPressed(1)
end
end
end
Last edited by trigger_2309; 06-03-2020 at 11:37 AM.
Hey guys, i've never actually used a script before. I have a G502 and GHUB installed, how do i use this?
you have to load call of duty up then open call of duty on logitech software and make lua script in there not desktop
can anyone explain how to do this?
how to adapt to FAL with rapid fire?
Is there a link to a thread that walks me through exactly what I'm supposed to do with this script
i dont know this recoil script is for universal or not but it work pretty good on Hero&General, i use AVS gun and test your recoil and it working fine, also a little tweak gave me more stable aim . anyway thanks for sharing this simple amazing script.