GHUB LUA脚本 压枪脚本 推荐APEX用 | 您所在的位置:网站首页 › apex抖枪宏原理 › GHUB LUA脚本 压枪脚本 推荐APEX用 |
如果脚本没效果请使用旧版的GHUB,我用的是2021.3.5164这个版本 ScrtptOpen = false xVibrationAmplitude = 15 --左右震动幅度 yVibrationAmplitude = 18 --垂直震动幅度 VibrationSpeed = 5 --震动速度 xWave = 0 --总体向右偏移方向 yWave = 0 --总体向下偏移方向 function OnEvent(event, arg) EnablePrimaryMouseButtonEvents(true) if (event == "MOUSE_BUTTON_PRESSED" and arg == 7) then --这里的arg==7是G502鼠标的一个键的代表数字,可以根据需要修改,下面有键位图 ScrtptOpen = not ScrtptOpen end if ScrtptOpen then if IsMouseButtonPressed(1) then repeat Sleep(VibrationSpeed) MoveMouseRelative(0,-yVibrationAmplitude) --up Sleep(VibrationSpeed) MoveMouseRelative(xVibrationAmplitude,yVibrationAmplitude) --right Sleep(VibrationSpeed) MoveMouseRelative(-xVibrationAmplitude,yVibrationAmplitude) --down Sleep(VibrationSpeed) MoveMouseRelative(-xVibrationAmplitude,-yVibrationAmplitude) --left Sleep(VibrationSpeed) MoveMouseRelative(xVibrationAmplitude,0) --mid Sleep(VibrationSpeed) MoveMouseRelative(xWave,yWave) --总体偏移方向 until not IsMouseButtonPressed(1) end end end |
CopyRight 2018-2019 实验室设备网 版权所有 |