诸神助我,简单的几何学!怎么把鼠标的连续点击变成鼠标移动就可
lua吧
全部回复
仅看楼主
level 2
诸神助我,简单的几何学!
怎么把鼠标的连续点击变成鼠标移动就可以,就是不需要点击,按住鼠标左键的时候仅进行位移
EnablePrimaryMouseButtonEvents (true)
gun=0
function OnEvent(event, arg, family)
if (event == "PROFILE_ACTIVATED") then
EnablePrimaryMouseButtonEvents(true)
click = 0
end
if (event == "MOUSE_BUTTON_PRESSED" and arg == 5) then
if (gun ==1) then
gun=0
else
gun=1
end
end
if (event == "MOUSE_BUTTON_PRESSED" and arg == 4) then
if (gun ==2) then
gun=0
else
gun=2
end
end
if (event == "MOUSE_BUTTON_PRESSED" and arg == 1 and gun>0) then
click = 1
i=1;
if (gun==1) then Click() end
if (gun==2) then Click2() end
end
if (event == "M_RELEASED" and arg == 3) then
if (gun==1) then Click() end
if (gun==2) then Click2() end
end
if (event == "MOUSE_BUTTON_RELEASED" and arg == 1 and gun>0) then
Stopclick()
end
end
offset={0,12}
function Click()
PressAndReleaseMouseButton(1)
Sleep (25)
MoveMouseRelative(0,offset[i])
i=i+1
if (i>
#offset) then i=#
offset end
if (click==1) then SetMKeyState(3) end
end
offset2={0,24}
function Click2()
PressAndReleaseMouseButton(1)
Sleep (30)
MoveMouseRelative(0,offset2[i])
i=i+1
if (i>
#offset2) then i=#
offset2 end
if (click==1) then SetMKeyState(3) end
end
function Stopclick()
click = 0
end
2018年02月12日 01点02分 1
level 2
有木有大神
2018年02月12日 02点02分 2
level 2
我现在在瑟瑟发抖
2018年02月12日 02点02分 3
1