EnablePrimaryMouseButtonEvents(true); kaiguan = false function OnEvent(event, arg) --OutputLogMessage("Event: "..event.." Arg: "..arg.."\n") if (event == "MOUSE_BUTTON_PRESSED" and arg == 4) then -- Mouse Button 6 has been pressed kaiguan = not kaiguan if kaiguan then OutputLogMessage("kai \n") else OutputLogMessage("guan \n") end end if (event == "MOUSE_BUTTON_RELEASED" and arg == 4) then -- Mouse Button 6 has been released end if kaiguan then if IsMouseButtonPressed(1) then repeat Sleep(10) MoveMouseRelative(0,3) --这个是下压力度尾号三往上加就行了加到满意的力度为止 until not IsMouseButtonPressed(1) end end end