外連至此bilibili影片連結
G502 滑鼠巨集腳本
腳本如下:
- function OnEvent(event, arg)
- --OutputLogMessage("Event: "..event.." Arg: "..arg.."\n")
- if (event == "MOUSE_BUTTON_PRESSED" and arg == 7)then
- while IsKeyLockOn("capslock") do
- Sleep(700)
- PressAndReleaseKey("f")
- Sleep(800)
- MoveMouseTo(25702, 49664);Sleep(500)PressMouseButton(1)Sleep(100)MoveMouseTo(27452, 49588)Sleep(50)MoveMouseTo(25830, 49588)Sleep(50)MoveMouseTo(26299, 50119)Sleep(50)MoveMouseTo(26897, 50119)Sleep(50)MoveMouseTo(27367, 49664)Sleep(500)MoveMouseTo(39193, 17846);Sleep(1000)ReleaseMouseButton(1)PressKey("x")PressMouseButton(1)MoveMouseTo(65535, 35995)Sleep(800)ReleaseKey("x")ReleaseMouseButton(1)
- Sleep(800)
- PressAndReleaseKey("Tab")
- Sleep(800)
- MoveMouseTo(22457, 45259) Sleep(50)PressMouseButton(1)Sleep(10)ReleaseMouseButton(1)
- Sleep(800)
- PressAndReleaseKey("Tab")
- Sleep(800)
- PressKey("f")
- Sleep(5000)
- ReleaseKey("f")
- Sleep(400)
- end
- end
- end
-
複製代碼
|