Luaスクリプトで、マウスカーソルを小さな円を刻むように動かしたいです。以下のスクリプトを組み替えてください。可能であればマウスの左クリックと右クリックを同時に押している場合のみ動作するように組み替えてほしいです。
function OnEvent(event, arg)
if (event == "PROFILE_ACTIVATED") then
EnablePrimaryMouseButtonEvents(true)
end
if IsKeyLockOn("scrolllock")then
if (event == "MOUSE_BUTTON_PRESSED" and arg == 1)then
if IsMouseButtonPressed(3)then
repeat
MoveMouseRelative(-10, 12)
Sleep(10)
MoveMouseRelative(10, -10)
Sleep(10)
until not IsMouseButtonPressed(1)
end
end
end
end

あなたの回答
tips
プレビュー