|
ScrtptOpen = true
xVibrationAmplitude = 8 --左右震动幅度
yVibrationAmplitude = 11 --垂直震动幅度
VibrationSpeed = 5 --震动速度
xWave = 0 --总体向右偏移方向
yWave = 0 --总体向下偏移方向
function OnEvent(event, arg)
EnablePrimaryMouseButtonEvents(true)
if (event == "MOUSE_BUTTON_PRESSED" and arg == 4) then --这里的arg==4是GPW鼠标的下侧键的代表数字,可以根据需要修改,下面有键位图
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
补充内容 (2022-8-1 15:30):
能不能用不知道啊,csdn上的 |
评分
-
查看全部评分
|