正如头衔所指出的那样,我想弄清楚如何使这笔被盗的代码起作用: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
无论我是否添加了睡眠微调器,我都无法按照我想要的方式工作:我想让一个按像素的像素完美地以180/360度旋转以履行职责,而不必按住mb5按钮就可以旋转] >
正如标题所指出的那样,试图弄清楚如何使这部分被盗代码起作用:p函数OnEvent(event,arg)OutputLogMessage(“ event =%s,arg =%d \ n”,event,arg)如果(event ==“ ...
当您按住mb5时,每隔2秒钟就会发生此行代码:
function OnEvent(event, arg)
OutputLogMessage("event = %s, arg = %d\n", event, arg)
if (event == "PROFILE_ACTIVATED") then
EnablePrimaryMouseButtonEvents(true)
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
local distance = 400 -- adjust this value
while distance > 0 do
local delta = math.min(100, distance)
distance = distance - delta
MoveMouseRelative(-delta, 0)
Sleep(15)
end
end
end