As the title says I'm trying to figure out how to get this piece of stolen code to work :p
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(5) -- to prevent it from being stuck on
end
if (event == "MOUSE_BUTTON_PRESSED" and arg == 3) then
recoil = not recoil
spot = not spot
end
if (event == "MOUSE_BUTTON_PRESSED" and arg == 5 and recoil) then
if recoil then
repeat
Sleep(1)
MoveMouseRelative(-400, 0)
Sleep(1)
until not IsMouseButtonPressed(5)
end
end
end
No matter what sleep timer I add I can't get it to work the way I want : I want a single press pixel perfect 180/360 degree turn in call of duty and not have to hold down the mb5 button in order to turn.